diff --git a/ComparisonOfFuelsPrice/SampleDemo.sln b/ComparisonOfFuelsPrice/SampleDemo.sln new file mode 100644 index 0000000..a7551f3 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo.sln @@ -0,0 +1,27 @@ + +Microsoft Visual Studio Solution File, Format Version 12.00 +# Visual Studio Version 17 +VisualStudioVersion = 17.7.34202.233 +MinimumVisualStudioVersion = 10.0.40219.1 +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "SampleDemo", "SampleDemo\SampleDemo.csproj", "{CF30E96A-687E-47B8-AFA0-85AA9DD747BC}" +EndProject +Global + GlobalSection(SolutionConfigurationPlatforms) = preSolution + Debug|Any CPU = Debug|Any CPU + Release|Any CPU = Release|Any CPU + EndGlobalSection + GlobalSection(ProjectConfigurationPlatforms) = postSolution + {CF30E96A-687E-47B8-AFA0-85AA9DD747BC}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {CF30E96A-687E-47B8-AFA0-85AA9DD747BC}.Debug|Any CPU.Build.0 = Debug|Any CPU + {CF30E96A-687E-47B8-AFA0-85AA9DD747BC}.Debug|Any CPU.Deploy.0 = Debug|Any CPU + {CF30E96A-687E-47B8-AFA0-85AA9DD747BC}.Release|Any CPU.ActiveCfg = Release|Any CPU + {CF30E96A-687E-47B8-AFA0-85AA9DD747BC}.Release|Any CPU.Build.0 = Release|Any CPU + {CF30E96A-687E-47B8-AFA0-85AA9DD747BC}.Release|Any CPU.Deploy.0 = Release|Any CPU + EndGlobalSection + GlobalSection(SolutionProperties) = preSolution + HideSolutionNode = FALSE + EndGlobalSection + GlobalSection(ExtensibilityGlobals) = postSolution + SolutionGuid = {A09CE0C9-C618-4261-A4AC-5D0AACCE5BC6} + EndGlobalSection +EndGlobal diff --git a/ComparisonOfFuelsPrice/SampleDemo/App.xaml b/ComparisonOfFuelsPrice/SampleDemo/App.xaml new file mode 100644 index 0000000..ec2e0a1 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/App.xaml @@ -0,0 +1,14 @@ + + + + + + + + + + + diff --git a/ComparisonOfFuelsPrice/SampleDemo/App.xaml.cs b/ComparisonOfFuelsPrice/SampleDemo/App.xaml.cs new file mode 100644 index 0000000..e041a7b --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/App.xaml.cs @@ -0,0 +1,12 @@ +namespace SampleDemo +{ + public partial class App : Application + { + public App() + { + InitializeComponent(); + + MainPage = new AppShell(); + } + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/AppShell.xaml b/ComparisonOfFuelsPrice/SampleDemo/AppShell.xaml new file mode 100644 index 0000000..ee5a96c --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/AppShell.xaml @@ -0,0 +1,12 @@ + + + + + + diff --git a/ComparisonOfFuelsPrice/SampleDemo/AppShell.xaml.cs b/ComparisonOfFuelsPrice/SampleDemo/AppShell.xaml.cs new file mode 100644 index 0000000..0835f78 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/AppShell.xaml.cs @@ -0,0 +1,10 @@ +namespace SampleDemo +{ + public partial class AppShell : Shell + { + public AppShell() + { + InitializeComponent(); + } + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/MainPage.xaml b/ComparisonOfFuelsPrice/SampleDemo/MainPage.xaml new file mode 100644 index 0000000..808a0f3 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/MainPage.xaml @@ -0,0 +1,118 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/MainPage.xaml.cs b/ComparisonOfFuelsPrice/SampleDemo/MainPage.xaml.cs new file mode 100644 index 0000000..2207b28 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/MainPage.xaml.cs @@ -0,0 +1,14 @@ +using Syncfusion.Maui.Charts; +using System.Collections.ObjectModel; + +namespace SampleDemo +{ + public partial class MainPage : ContentPage + { + public MainPage() + { + InitializeComponent(); + } + + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/MauiProgram.cs b/ComparisonOfFuelsPrice/SampleDemo/MauiProgram.cs new file mode 100644 index 0000000..ebce9c8 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/MauiProgram.cs @@ -0,0 +1,27 @@ +using Microsoft.Extensions.Logging; +using Syncfusion.Maui.Core.Hosting; + +namespace SampleDemo +{ + public static class MauiProgram + { + public static MauiApp CreateMauiApp() + { + var builder = MauiApp.CreateBuilder(); + builder + .UseMauiApp() + .ConfigureSyncfusionCore() + .ConfigureFonts(fonts => + { + fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular"); + fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold"); + }); + +#if DEBUG + builder.Logging.AddDebug(); +#endif + + return builder.Build(); + } + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Model/Model.cs b/ComparisonOfFuelsPrice/SampleDemo/Model/Model.cs new file mode 100644 index 0000000..a43fd3c --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Model/Model.cs @@ -0,0 +1,23 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SampleDemo +{ + public class Model + { + public DateTime Date { get; set; } + public double NegativePetrolPrice { get; set; } + public double DieselPrice { get; set; } + + public Model(DateTime date, double petrolPrice, double dieselPrice) + { + Date = date; + NegativePetrolPrice = -petrolPrice; + DieselPrice = dieselPrice; + } + + } +} diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/Android/AndroidManifest.xml b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Android/AndroidManifest.xml new file mode 100644 index 0000000..bdec9b5 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Android/AndroidManifest.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/Android/MainActivity.cs b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Android/MainActivity.cs new file mode 100644 index 0000000..b17bc34 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Android/MainActivity.cs @@ -0,0 +1,11 @@ +using Android.App; +using Android.Content.PM; +using Android.OS; + +namespace SampleDemo +{ + [Activity(Theme = "@style/Maui.SplashTheme", MainLauncher = true, ConfigurationChanges = ConfigChanges.ScreenSize | ConfigChanges.Orientation | ConfigChanges.UiMode | ConfigChanges.ScreenLayout | ConfigChanges.SmallestScreenSize | ConfigChanges.Density)] + public class MainActivity : MauiAppCompatActivity + { + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/Android/MainApplication.cs b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Android/MainApplication.cs new file mode 100644 index 0000000..45b8ede --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Android/MainApplication.cs @@ -0,0 +1,16 @@ +using Android.App; +using Android.Runtime; + +namespace SampleDemo +{ + [Application] + public class MainApplication : MauiApplication + { + public MainApplication(IntPtr handle, JniHandleOwnership ownership) + : base(handle, ownership) + { + } + + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/Android/Resources/values/colors.xml b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Android/Resources/values/colors.xml new file mode 100644 index 0000000..5cd1604 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Android/Resources/values/colors.xml @@ -0,0 +1,6 @@ + + + #512BD4 + #2B0B98 + #2B0B98 + \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/MacCatalyst/AppDelegate.cs b/ComparisonOfFuelsPrice/SampleDemo/Platforms/MacCatalyst/AppDelegate.cs new file mode 100644 index 0000000..eec7502 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/MacCatalyst/AppDelegate.cs @@ -0,0 +1,10 @@ +using Foundation; + +namespace SampleDemo +{ + [Register("AppDelegate")] + public class AppDelegate : MauiUIApplicationDelegate + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/MacCatalyst/Info.plist b/ComparisonOfFuelsPrice/SampleDemo/Platforms/MacCatalyst/Info.plist new file mode 100644 index 0000000..0690e47 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/MacCatalyst/Info.plist @@ -0,0 +1,30 @@ + + + + + UIDeviceFamily + + 1 + 2 + + UIRequiredDeviceCapabilities + + arm64 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + XSAppIconAssets + Assets.xcassets/appicon.appiconset + + diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/MacCatalyst/Program.cs b/ComparisonOfFuelsPrice/SampleDemo/Platforms/MacCatalyst/Program.cs new file mode 100644 index 0000000..55e9115 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/MacCatalyst/Program.cs @@ -0,0 +1,16 @@ +using ObjCRuntime; +using UIKit; + +namespace SampleDemo +{ + public class Program + { + // This is the main entry point of the application. + static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, typeof(AppDelegate)); + } + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/Tizen/Main.cs b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Tizen/Main.cs new file mode 100644 index 0000000..e6930ac --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Tizen/Main.cs @@ -0,0 +1,17 @@ +using Microsoft.Maui; +using Microsoft.Maui.Hosting; +using System; + +namespace SampleDemo +{ + internal class Program : MauiApplication + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + + static void Main(string[] args) + { + var app = new Program(); + app.Run(args); + } + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/Tizen/tizen-manifest.xml b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Tizen/tizen-manifest.xml new file mode 100644 index 0000000..0368907 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Tizen/tizen-manifest.xml @@ -0,0 +1,15 @@ + + + + + + maui-appicon-placeholder + + + + + http://tizen.org/privilege/internet + + + + \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/Windows/App.xaml b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Windows/App.xaml new file mode 100644 index 0000000..9e45d4d --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Windows/App.xaml @@ -0,0 +1,8 @@ + + + diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/Windows/App.xaml.cs b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Windows/App.xaml.cs new file mode 100644 index 0000000..424772a --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Windows/App.xaml.cs @@ -0,0 +1,24 @@ +using Microsoft.UI.Xaml; + +// To learn more about WinUI, the WinUI project structure, +// and more about our project templates, see: http://aka.ms/winui-project-info. + +namespace SampleDemo.WinUI +{ + /// + /// Provides application-specific behavior to supplement the default Application class. + /// + public partial class App : MauiWinUIApplication + { + /// + /// Initializes the singleton application object. This is the first line of authored code + /// executed, and as such is the logical equivalent of main() or WinMain(). + /// + public App() + { + this.InitializeComponent(); + } + + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/Windows/Package.appxmanifest b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Windows/Package.appxmanifest new file mode 100644 index 0000000..5a62b82 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Windows/Package.appxmanifest @@ -0,0 +1,46 @@ + + + + + + + + + $placeholder$ + User Name + $placeholder$.png + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/Windows/app.manifest b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Windows/app.manifest new file mode 100644 index 0000000..3265ea0 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/Windows/app.manifest @@ -0,0 +1,15 @@ + + + + + + + + true/PM + PerMonitorV2, PerMonitor + + + diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/iOS/AppDelegate.cs b/ComparisonOfFuelsPrice/SampleDemo/Platforms/iOS/AppDelegate.cs new file mode 100644 index 0000000..eec7502 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/iOS/AppDelegate.cs @@ -0,0 +1,10 @@ +using Foundation; + +namespace SampleDemo +{ + [Register("AppDelegate")] + public class AppDelegate : MauiUIApplicationDelegate + { + protected override MauiApp CreateMauiApp() => MauiProgram.CreateMauiApp(); + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/iOS/Info.plist b/ComparisonOfFuelsPrice/SampleDemo/Platforms/iOS/Info.plist new file mode 100644 index 0000000..358337b --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/iOS/Info.plist @@ -0,0 +1,32 @@ + + + + + LSRequiresIPhoneOS + + UIDeviceFamily + + 1 + 2 + + UIRequiredDeviceCapabilities + + arm64 + + UISupportedInterfaceOrientations + + UIInterfaceOrientationPortrait + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + UISupportedInterfaceOrientations~ipad + + UIInterfaceOrientationPortrait + UIInterfaceOrientationPortraitUpsideDown + UIInterfaceOrientationLandscapeLeft + UIInterfaceOrientationLandscapeRight + + XSAppIconAssets + Assets.xcassets/appicon.appiconset + + diff --git a/ComparisonOfFuelsPrice/SampleDemo/Platforms/iOS/Program.cs b/ComparisonOfFuelsPrice/SampleDemo/Platforms/iOS/Program.cs new file mode 100644 index 0000000..55e9115 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Platforms/iOS/Program.cs @@ -0,0 +1,16 @@ +using ObjCRuntime; +using UIKit; + +namespace SampleDemo +{ + public class Program + { + // This is the main entry point of the application. + static void Main(string[] args) + { + // if you want to use a different Application Delegate class from "AppDelegate" + // you can specify it here. + UIApplication.Main(args, null, typeof(AppDelegate)); + } + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Properties/launchSettings.json b/ComparisonOfFuelsPrice/SampleDemo/Properties/launchSettings.json new file mode 100644 index 0000000..c16206a --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Properties/launchSettings.json @@ -0,0 +1,8 @@ +{ + "profiles": { + "Windows Machine": { + "commandName": "MsixPackage", + "nativeDebugging": false + } + } +} \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Resources/AppIcon/appicon.svg b/ComparisonOfFuelsPrice/SampleDemo/Resources/AppIcon/appicon.svg new file mode 100644 index 0000000..5f04fcf --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Resources/AppIcon/appicon.svg @@ -0,0 +1,4 @@ + + + + \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Resources/AppIcon/appiconfg.svg b/ComparisonOfFuelsPrice/SampleDemo/Resources/AppIcon/appiconfg.svg new file mode 100644 index 0000000..62d66d7 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Resources/AppIcon/appiconfg.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Resources/Fonts/OpenSans-Regular.ttf b/ComparisonOfFuelsPrice/SampleDemo/Resources/Fonts/OpenSans-Regular.ttf new file mode 100644 index 0000000..8a58a8d Binary files /dev/null and b/ComparisonOfFuelsPrice/SampleDemo/Resources/Fonts/OpenSans-Regular.ttf differ diff --git a/ComparisonOfFuelsPrice/SampleDemo/Resources/Fonts/OpenSans-Semibold.ttf b/ComparisonOfFuelsPrice/SampleDemo/Resources/Fonts/OpenSans-Semibold.ttf new file mode 100644 index 0000000..7affba1 Binary files /dev/null and b/ComparisonOfFuelsPrice/SampleDemo/Resources/Fonts/OpenSans-Semibold.ttf differ diff --git a/ComparisonOfFuelsPrice/SampleDemo/Resources/Images/tank.png b/ComparisonOfFuelsPrice/SampleDemo/Resources/Images/tank.png new file mode 100644 index 0000000..0f13386 Binary files /dev/null and b/ComparisonOfFuelsPrice/SampleDemo/Resources/Images/tank.png differ diff --git a/ComparisonOfFuelsPrice/SampleDemo/Resources/Raw/AboutAssets.txt b/ComparisonOfFuelsPrice/SampleDemo/Resources/Raw/AboutAssets.txt new file mode 100644 index 0000000..50b8a7b --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Resources/Raw/AboutAssets.txt @@ -0,0 +1,15 @@ +Any raw assets you want to be deployed with your application can be placed in +this directory (and child directories). Deployment of the asset to your application +is automatically handled by the following `MauiAsset` Build Action within your `.csproj`. + + + +These files will be deployed with you package and will be accessible using Essentials: + + async Task LoadMauiAsset() + { + using var stream = await FileSystem.OpenAppPackageFileAsync("AboutAssets.txt"); + using var reader = new StreamReader(stream); + + var contents = reader.ReadToEnd(); + } diff --git a/ComparisonOfFuelsPrice/SampleDemo/Resources/Splash/splash.svg b/ComparisonOfFuelsPrice/SampleDemo/Resources/Splash/splash.svg new file mode 100644 index 0000000..62d66d7 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Resources/Splash/splash.svg @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Resources/Styles/Colors.xaml b/ComparisonOfFuelsPrice/SampleDemo/Resources/Styles/Colors.xaml new file mode 100644 index 0000000..d183ec4 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Resources/Styles/Colors.xaml @@ -0,0 +1,44 @@ + + + + + #512BD4 + #DFD8F7 + #2B0B98 + White + Black + #E1E1E1 + #C8C8C8 + #ACACAC + #919191 + #6E6E6E + #404040 + #212121 + #141414 + + + + + + + + + + + + + + + #F7B548 + #FFD590 + #FFE5B9 + #28C2D1 + #7BDDEF + #C3F2F4 + #3E8EED + #72ACF1 + #A7CBF6 + + \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/Resources/Styles/Styles.xaml b/ComparisonOfFuelsPrice/SampleDemo/Resources/Styles/Styles.xaml new file mode 100644 index 0000000..050b36c --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/Resources/Styles/Styles.xaml @@ -0,0 +1,405 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ComparisonOfFuelsPrice/SampleDemo/SampleDemo.csproj b/ComparisonOfFuelsPrice/SampleDemo/SampleDemo.csproj new file mode 100644 index 0000000..e0eb16e --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/SampleDemo.csproj @@ -0,0 +1,59 @@ + + + + net7.0-android;net7.0-ios;net7.0-maccatalyst + $(TargetFrameworks);net7.0-windows10.0.19041.0 + + + Exe + SampleDemo + true + true + enable + + + SampleDemo + + + com.companyname.sampledemo + dd30f976-69a9-471c-9af6-0e3ddbf2130d + + + 1.0 + 1 + + 11.0 + 13.1 + 21.0 + 10.0.17763.0 + 10.0.17763.0 + 6.5 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/ComparisonOfFuelsPrice/SampleDemo/SampleDemo.csproj.user b/ComparisonOfFuelsPrice/SampleDemo/SampleDemo.csproj.user new file mode 100644 index 0000000..87d9374 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/SampleDemo.csproj.user @@ -0,0 +1,38 @@ + + + + False + net7.0-windows10.0.19041.0 + Windows Machine + Emulator + pixel_5_-_api_34 + + + ProjectDebugger + + + + Designer + + + Designer + + + Designer + + + Designer + + + Designer + + + Designer + + + + + Designer + + + \ No newline at end of file diff --git a/ComparisonOfFuelsPrice/SampleDemo/ViewModel/ViewModel.cs b/ComparisonOfFuelsPrice/SampleDemo/ViewModel/ViewModel.cs new file mode 100644 index 0000000..5894405 --- /dev/null +++ b/ComparisonOfFuelsPrice/SampleDemo/ViewModel/ViewModel.cs @@ -0,0 +1,31 @@ +using System; +using System.Collections.Generic; +using System.Collections.ObjectModel; +using System.Linq; +using System.Text; +using System.Threading.Tasks; + +namespace SampleDemo +{ + public class ViewModel + { + public ObservableCollection FuelsPriceDetails { get; set; } + + public ViewModel() + { + + FuelsPriceDetails = new ObservableCollection() + { + new Model (new DateTime(2014,01,01), 127.50, 133.46), + new Model (new DateTime(2015,01,01), 111.13, 114.90), + new Model (new DateTime(2016,01,01), 108.85, 110.13), + new Model (new DateTime(2017,01,01), 117.59, 120.15), + new Model (new DateTime(2018,01,01), 125.20, 129.98), + new Model (new DateTime(2019,01,01), 124.88, 131.48), + new Model (new DateTime(2020,01,01), 113.95, 119.14), + new Model (new DateTime(2021,01,01), 131.27, 134.94), + new Model (new DateTime(2022,01,01), 164.73, 177.66) + }; + } + } +}