Example #1
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Application.ThreadException += Application_ThreadException;
     if (CJia.PEIS.Tools.Help.SystemInitConfig())
     {
         UI.LoginView loginView = new UI.LoginView();
         CJia.PEIS.Tools.Help.NewNoBorderForm(loginView);//窗体关闭继续执行
         if (User.IsLoginSuccess)
         {
             UI.HomePageView home = new UI.HomePageView();
             CJia.PEIS.Tools.Help.NewNoBorderForm(home);//窗体关闭继续执行
             MainForm mainForm = new MainForm();
             Application.Run(mainForm);
         }
     }
     //if (CJia.PEIS.Tools.Help.SystemInitConfig())
     //{
     //    UI.InteAssManView ui = new UI.InteAssManView();
     //    UI.DeptView ui = new UI.DeptView();
     //    CJia.PEIS.Tools.Help.NewNoBorderForm(ui);
     //}
 }
Example #2
0
 //起始页
 private void PnlHome_Click(object sender, EventArgs e)
 {
     UI.HomePageView home = new UI.HomePageView();
     CJia.PEIS.Tools.Help.NewBorderForm(home);
 }