Ejemplo n.º 1
0
 public void clear()
 {
     id.Clear();
     Nam.Clear();
     login.Clear();
     pass.Clear();
     checkBox1.Checked = false;
 }
Ejemplo n.º 2
0
 private void DG_CellClick(object sender, DataGridViewCellEventArgs e)
 {
     id.Text    = DG.CurrentRow.Cells[0].Value.ToString();
     Nam.Text   = DG.CurrentRow.Cells[1].Value.ToString();
     login.Text = DG.CurrentRow.Cells[2].Value.ToString();
     pass.Text  = DG.CurrentRow.Cells[3].Value.ToString();
     if (DG.CurrentRow.Cells[4].Value.ToString() == "" && DG.CurrentRow.Cells[3].Value.ToString() == "" && DG.CurrentRow.Cells[2].Value.ToString() == "" && DG.CurrentRow.Cells[1].Value.ToString() == "" && DG.CurrentRow.Cells[0].Value.ToString() == "")
     {
         id.Clear();
         Nam.Clear();
         login.Clear();
         pass.Clear();
         checkBox1.Checked = false;
     }
     else
     if ((bool)(DG.CurrentRow.Cells[4].Value) == true)
     {
         checkBox1.Checked = true;
     }
     else
     {
         checkBox1.Checked = false;
     }
 }