| | |
| | | using DevExpress.LookAndFeel; |
| | | using DevExpress.Skins; |
| | | using DevExpress.UserSkins; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System; |
| | | using System.Diagnostics; |
| | | using System.Linq; |
| | | using System.Windows.Forms; |
| | | |
| | | namespace Gs.DevApp |
| | |
| | | { |
| | | Application.EnableVisualStyles(); |
| | | Application.SetCompatibleTextRenderingDefault(false); |
| | | // Application.Run(new Gs.DevApp.UserControl.ShowFilter()); |
| | | DevFrm.FrmLogin fmLogin = new DevFrm.FrmLogin(); |
| | | if (fmLogin.IsDisposed == false) |
| | | { |
| | | fmLogin.ShowDialog(); |
| | | if (fmLogin.DialogResult == DialogResult.OK) |
| | | { |
| | | Application.Run(new DevFrm.FrmMain()); |
| | | } |
| | | } |
| | | else |
| | | Application.Exit(); |
| | | _startLogin(); |
| | | } |
| | | } |
| | | /// <summary> |
| | | /// 登录页启动 |
| | | /// </summary> |
| | | private static void _startLogin() |
| | | { |
| | | DevFrm.FrmLogin fmLogin = new DevFrm.FrmLogin(); |
| | | if (fmLogin.IsDisposed == false) |
| | | { |
| | | fmLogin.ShowDialog(); |
| | | if (fmLogin.DialogResult == DialogResult.OK) |
| | | { |
| | | Application.Run(new DevFrm.FrmMain()); |
| | | } |
| | | } |
| | | else |
| | | Application.Exit(); |
| | | } |
| | | } |
| | | |
| | | |
| | | } |