Ejemplo n.º 1
0
 private void CmbDiem_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (Program.mGroup.Equals("PGV"))
     {
         try
         {
             Program.servername = cmbDiem.SelectedValue.ToString();
             if (Program.servername.Equals(Program.tenServerDN))
             {
                 Program.mlogin   = Program.mloginDN;
                 Program.password = Program.passwordDN;
                 DataConnection dc = new DataConnection();
                 dal = new DiemSinhVienDAL();
             }
             else
             {
                 Program.mlogin   = Program.remotelogin;
                 Program.password = Program.remotepassword;
                 DataConnection dc = new DataConnection();
                 //MessageBox.Show(Program.servername);
                 dal = new DiemSinhVienDAL();
             }
         }
         catch (Exception)
         {
         }
     }
 }
Ejemplo n.º 2
0
 public DiemSinhVien()
 {
     InitializeComponent();
     dal = new DiemSinhVienDAL();
 }