Example #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            try
            {
                this.startupEntry();
                if (e.Args.Count() > 0 && e.Args[0].ToString().Equals("-h"))
                {
                    MainWindow sysTryMainWindo = new MainWindow();

                    sysTryMainWindo.Show();
                    sysTryMainWindo.WindowState = WindowState.Minimized;
                }
                else
                {
                    new MainWindow().Show();
                }
            }
            catch(Exception ex)
            {
                MessageBox.Show(ex.Message, Variables.ERROR_MESSAGES[0], MessageBoxButton.OK, MessageBoxImage.Error);
            }
        }
 public static void sysTryStart()
 {
     MainWindow systrayMainWindow = new MainWindow();
 }