示例#1
0
 public Frm_Login(MDI_Parent frm = null, frm_connection frmConn=null)
 {
     InitializeComponent();
     _frmMain = frm;
     _frmConn = frmConn;
 }
示例#2
0
        private void Frm_Login_Load(object sender, EventArgs e)
        {
            try
            {
                IUserLayer LayerUser = new UserLayer();
                lstUser = LayerUser.GetAllUsers();
            }
            catch (Exception)
            {

                if (clsWin.QuestionMessage("Connection to database failed, are you want to sett the connection?", "Lost Connection"))
                {

                    frm_connection connect = new frm_connection();
                    // Find_Part.MdiParent = Frm_Menu;
                    connect.StartPosition = FormStartPosition.CenterScreen;
                    connect.ShowDialog();
                    this.Refresh();
                }
                else
                {
                    Application.Exit();
                }

            }
        }
示例#3
0
 private void pictureBox2_Click(object sender, EventArgs e)
 {
     frm_connection connect = new frm_connection();
     // Find_Part.MdiParent = Frm_Menu;
     connect.StartPosition = FormStartPosition.CenterScreen;
     connect.ShowDialog();
 }