Beispiel #1
0
        protected override void OnStartup(StartupEventArgs e)
        {
            base.OnStartup(e);
            System.Windows.Forms.Form frmAutoUpdate = (System.Windows.Forms.Form)Assembly.LoadFrom("AutoUpdate.dll").CreateInstance("AutoUpdate.FrmUpdate");
            MainFrame.LoginWindow     lw            = new MainFrame.LoginWindow();

            if (lw.ShowDialog() == true)
            {
                Window w = new MainFrame.MainWindow();

                lw.Close();
                w.Show();
            }

            lw = null;
        }
Beispiel #2
0
        static void Main(string[] args)
        {
            //  Form frmAutoUpdate = (Form)Assembly.LoadFrom("AutoUpdate.dll").CreateInstance("AutoUpdate.FrmUpdate");
            MainFrame.LoginWindow lw = new MainFrame.LoginWindow();

            if (lw.ShowDialog() == true)
            {
                App    app = new App();
                Window w   = new MainFrame.MainWindow();
                app.Run(w);
                lw.Close();
            }

            lw = null;


            //if (lw.DialogResult == true)
            //{
            //    App app = new App();
            //    app.Run(new MainFrame.MainWindow() { });
            //    lw.Close();
            //}
            //lw = null;
        }