Exemple #1
0
 public void StartShowLoginThread()
 {
     try
     {
         SetMessage("窗口加载中...");
         ThreadPool.QueueUserWorkItem((a) =>
         {
             FrmLogin login = new FrmLogin();
             login.ShowFrm();
         });
     }
     catch (Exception ex)
     { }
 }
Exemple #2
0
        private void 登录ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (isLogin)
            {
                DialogResult dr;
                dr = MessageBox.Show(Program.mainForm, "您确定要更换帐号吗?", "提醒", MessageBoxButtons.YesNoCancel,
                                     MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
                if (dr != DialogResult.Yes)
                {
                    return;
                }
                //登录ToolStripMenuItem.Text = "登录";
            }
            //Process.GetInstance().StartShowLoginThread();
            FrmLogin login = new FrmLogin();

            login.ShowFrm();
        }
Exemple #3
0
 private void 登录ToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (isLogin)
     {
         DialogResult dr;
         dr = MessageBox.Show(Program.mainForm, "您确定要更换帐号吗?", "提醒", MessageBoxButtons.YesNoCancel,
                  MessageBoxIcon.Warning, MessageBoxDefaultButton.Button1);
         if (dr != DialogResult.Yes)
         {
             return;
         }
         //登录ToolStripMenuItem.Text = "登录";
     }
     //Process.GetInstance().StartShowLoginThread();
     FrmLogin login = new FrmLogin();
     login.ShowFrm();
 }