using BPA.Helper; using BPASmart.Model; using System; using System.Collections.Generic; using System.Configuration; using System.Data; using System.Linq; using System.Threading.Tasks; using System.Windows; using BPA.Communication; using System.IO; using System.Diagnostics; namespace BPASmart.ConfigurationSoftware { /// /// Interaction logic for App.xaml /// public partial class App : Application { protected override void OnStartup(StartupEventArgs e) { base.OnStartup(e); Json.Read(); if (e.Args != null && e.Args.Length == 1) { var res = e.Args[0]; Json.Read(res); var pages = Json.Data.Pages.OrderBy(p => p.Key).ToDictionary(p => p.Key, s => s.Value); } MainWindow window = new MainWindow(); window.Show(); } protected override void OnExit(ExitEventArgs e) { base.OnExit(e); Json.Save(); } } }