Example #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            AppInitializer.CheckNumberOfInstances(programInstancesCount);

            AppInitializer.InitializeDomain();
            AppInitializer.InitialzeTaskbarIcon((s, ev) => Current.MainWindow.Show());
            AppInitializer.InitializeCulture();
            AppInitializer.InitializeConfig();
            AppInitializer.InitializeFileWatcher(async(s, ev) =>
            {
                FileWatcher.EnableRaisingEvents = false;
                await RecivePackDetailsDataAsync();
                FileWatcher.EnableRaisingEvents = true;
            });
        }
        public App()
        {
            InitializeComponent();

            AppInitializer = new AppInitializer();
            AppInitializer.InitalizeDatabase();
            AppInitializer.InitalizeGlobalObjects();
            AppInitializer.InitializeConfig();

            /* Set css theme version */
            ViewHelper.SetAppGlobalTheme(Resources, "1");

            //old
            MainPage = new NavigationPage(new LoginView());
        }