Exemplo n.º 1
0
 public static RegDlg Instance()
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new RegDlg();
     }
     return(instance);
 }
        /// <summary>
        /// 如果用户没有注册,提示用户注册
        /// </summary>
        public void ShowRegDlg()
        {
            RegDlg myRegdlg = RegDlg.Instance();

            myRegdlg.StartPosition = FormStartPosition.CenterScreen;
            myRegdlg.TopMost       = true;
            myRegdlg.Hide();
            myRegdlg.Show();
            myRegdlg.BringToFront();
        }
Exemplo n.º 3
0
        private void lnkRegister_Click(object sender, EventArgs e)
        {
            RegDlg myRegdlg = RegDlg.Instance();

            myRegdlg.ShowDialog();
        }