110,533
社区成员
发帖
与我相关
我的任务
分享
[STAThread]
static void Main()
{
Application.Run(new frmLogin()); //运行登陆窗体
if(isLogined) //登陆成功标志
{
isLogined = false;
Application.Run(new frmMain(ds)); //运行主窗体
if(frmMain.isReLogin) //判断是否是重新登陆
{
frmMain.isReLogin = false;
frmLogin.Main(); //重新运行主函数
}
}
}
[STAThread]
static void Main(string[] arg)
{
Form1 _Form1 = new Form1();
if (_Form1.ShowDialog() == DialogResult.OK)
{
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(new MainForm());
}
}