Пример #1
0
 private void ReadXML()
 {
     try
     {
         ArrayList Arr = new ArrayList();
         Arr = Unit.ReadDatabaseXML();
         string ServerName = Arr[0].ToString();
         string DatabaseName = Arr[1].ToString();
         string UserName = Arr[2].ToString();
         string Password = Arr[3].ToString();
         if (Logon(ServerName, DatabaseName, UserName, Password))
         {
             this.Hide();
             fTerm _form = new fTerm();
             _form.ShowDialog();
             this.Close();
         }
     }
     catch(Exception ex) { MessageBox.Show(ex.Message); }
 }
Пример #2
0
 private void btnLogon_Click(object sender, EventArgs e)
 {
     if (Logon(txtNameServer.Text, cboNameDatabase.Text, txtUser.Text, txtPassword.Text))
     {
         this.Hide();
         Unit.WriteDatabaseXML(txtNameServer.Text, cboNameDatabase.Text, txtUser.Text, txtPassword.Text);
         fTerm _form = new fTerm();
         _form.ShowDialog();
         this.Close();
     }
     else {
         MessageBox.Show("Tài khoản và mật khẩu không đúng!", "Thông báo", MessageBoxButtons.OK, MessageBoxIcon.Warning);
     }
 }
Пример #3
0
 private void btnChuyenQuaThangKhac_DoubleClick(object sender, EventArgs e)
 {
     _IdAction = 112233;
     fTerm f = new fTerm();
     f.ShowDialog();
     f.Dispose();
 }