Beispiel #1
0
        public override void Run()
        {
            Fm_Login fm = new Fm_Login();
            if (fm.ShowDialog() != DialogResult.OK)
            {

                try
                {
                    if (!isLogin)
                    {
                        System.Environment.Exit(0);
                    }
                }
                catch { }
                return;

            }
            if (isLogin)
            {

                WorkbenchSingleton.Workbench.CloseAllViews();
                WorkbenchSingleton.Workbench.RedrawAllComponents();
                //IdeModViewSingleton.IdeModView.Show(Main.Gui.Pads.IdeModPad.IdeModPad.NavBarControl.IdeModState);
                //ShowStartPageCommand startpage = new ShowStartPageCommand();
                //startpage.Run();
            }

            StatusBarService.SetLoginUser(AttnObjects.PSWD.LoginUser.LoginComp.NAME + "   " + AttnObjects.PSWD.LoginUser.NAME);
            isLogin = true;
        }
Beispiel #2
0
 private void button1_Click(object sender, EventArgs e)
 {
     MES_Car.Fm_Login fm = new MES_Car.Fm_Login();
     fm.ShowDialog();
 }