public App() { //var x = new SngRegistratorManager(); //x.Start(); //return; RegisterHook(); TableTileManager = new TableTileManager(); PokerTypeManager = new PokerTypeManager(); RandomizerManager = new RandomizerManager(); HandHistoryManager = new HandHistoryManager(); Handler = new Handler(); TableManager = new TableManager(); Config.LoadXml(); WindowMain = new WindowMain(); WindowMain.Show(); if (!CheckGnuGplV3Agreement()) { return; } HandHistoryManager.ObserverStatus = WindowMain.UcStatusBar; HandHistoryManager.ObserverHands = WindowMain.UCHands; TableManager.ObserverTableManagerTableList = WindowMain.UCTables; TableManager.ObserverTableManagerTableCount = WindowMain.UcStatusBar; ReleaseOnly(); }
public async void Start() { var watch = new Stopwatch( ); watch.Start( ); var taskList = new List <Task> { _container.Resolve <ResourcePlayer>( ).InitializeAsync( ), //=> Loading Player Resources _container.Resolve <ResourceAlly>( ).InitializeAsync( ), //=> Loading Ally Resources _container.Resolve <ResourceVillage>( ).InitializeAsync( ), //=> Loading Village Resources _container.Resolve <ResourceConquer>( ).InitializeAsync( ), //=> Loading Conquer Resources _container.Resolve <ResourceBashpointAlly>( ).InitializeAsync( ), //=> Loading Bashpoint Ally Resources _container.Resolve <ResourceBashpointPlayer>( ).InitializeAsync( ), //=> Loading Bashpoint Player Resources _container.Resolve <ResourceTroup>( ).Load( ) //=> Loading Troup Saves }; await Task.WhenAll(taskList); watch.Stop( ); TrayIcon.ShowInfo("Welcome to Venom!", "Loading finished in " + watch.ElapsedMilliseconds + "ms"); //WindowStart.Close( ); //=> Loading finished, close main window WindowMain.Show( ); //=> Show main window }
private void continue_Click(object sender, RoutedEventArgs e) { Properties.Settings.Default.projectDiameter = false; Properties.Settings.Default.projectWeb = false; Properties.Settings.Default.projectTension = false; Properties.Settings.Default.projectTransmitter = false; Properties.Settings.Default.Save(); if (diameter.IsChecked == true) { Properties.Settings.Default.projectDiameter = true; MainPage mainPage = new MainPage(); mainPage.Show(); } else if (web.IsChecked == true) { HomeScreen homeScreen = new HomeScreen(); homeScreen.Show(); } else if (tension.IsChecked == true) { Properties.Settings.Default.projectTension = true; MainWindow mainWindow = new MainWindow(); mainWindow.Show(); } else if (transmitter.IsChecked == true) { Properties.Settings.Default.projectTransmitter = true; WindowMain mainWindow = new WindowMain(); mainWindow.Show(); } Properties.Settings.Default.signedIn = true; Properties.Settings.Default.userFirstTime = false; Properties.Settings.Default.Save(); this.Close(); }
private void openSelectedProject() { if (Properties.Settings.Default.projectDiameter) { MainPage mainPage = new MainPage(); mainPage.Show(); } else if (Properties.Settings.Default.projectWeb) { HomeScreen homeScreen = new HomeScreen(); homeScreen.Show(); } else if (Properties.Settings.Default.projectTension) { MainWindow mainWindow = new MainWindow(); mainWindow.Show(); } else if (Properties.Settings.Default.projectTransmitter) { WindowMain mainWindow = new WindowMain(); mainWindow.Show(); } welcomeScreen.Close(); }