Example #1
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            WpfApp1.MainWindow wnd = new WpfApp1.MainWindow();
///            if (e.Args.Length == 1)
///                MessageBox.Show("Now opening file: \n\n" + e.Args[0]);
            wnd.Show();
        }
        void startWin(object sender, StartupEventArgs arg)
        {
            MainWindow win8082 = new WpfApp1.MainWindow(8082);

            win8082.Show();

            //   MainWindow win8084 = new WpfApp1.MainWindow(8084);
            //   win8084.Show();
        }
Example #3
0
        private void Application_Startup(object sender, StartupEventArgs e)
        {
            MainWindow window = new WpfApp1.MainWindow();

            window.Show();

            //Open the file of filepath stated with default application
            if (e.Args.Length > 0)
            {
                System.Diagnostics.Process.Start(e.Args[0]);
            }
        }
Example #4
0
 private void Application_Startup(object sender, StartupEventArgs e)
 {
     WpfApp1.MainWindow mwin = new WpfApp1.MainWindow();
     if (e.Args.Length != 0)
     {
         mwin.setEndPoint(e.Args[0]);
         mwin.Show();
         mwin.testR1();
         mwin.testR2();
         mwin.testR3();
         mwin.testR4();
     }
 }