Example #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     try
     {
         m_lab_error.Text = "";
         if ((m_txt_id.Text == "") || (m_txt_pass.Text == ""))
             m_lab_error.Text = "Tên truy cập và password không được để trống.";
         else
         {
             if (check_login())
             {
                 this.Hide();
                 f999_main_form v_f = new f999_main_form();
                 v_f.WindowState = FormWindowState.Maximized;
                 us_user.trang_thai_dang_nhap = true;
                 v_f.ShowDialog();
                 if (us_user.trang_thai_dang_nhap == false)
                 {
                     m_txt_pass.Text = "";
                     this.Show();
                 }
                 else this.Close();
             }
             else m_lab_error.Text = "Tên đăng nhập hoặc mật khẩu không đúng.";
         }
     }
     catch (Exception v_e)
     {
         CSystemLog_301.ExceptionHandle(v_e);
     }
 }
Example #2
0
        private void GetAllControl(f999_main_form c, List <Control> list)
        {
            foreach (Control control in c.Controls)
            {
                list.Add(control);

                if (control.GetType() == typeof(Panel))
                {
                    GetAllControl(c, list);
                }
            }
        }
Example #3
0
        private void GetAllControl(f999_main_form c, List<Control> list)
        {
            foreach (Control control in c.Controls)
            {
                list.Add(control);

                if (control.GetType() == typeof(Panel))
                    GetAllControl(c, list);
            }
        }