private void Reset()//reset the all changes on textboxes
 {
     TxtFullname.Text = string.Empty;
     TxtPhone.Text    = string.Empty;
     BtnAdd.Show();
     BtnDeactive.Hide();
     BtnUpdate.Hide();
     BtnCancel.Hide();
 }
Esempio n. 2
0
 private void Reset()//reset the all changes on textboxes and numericupdown
 {
     TxtTitle.Text   = string.Empty;
     NumPrice.Value  = 0;
     TxtAuthor.Text  = string.Empty;
     NmrcCount.Value = 0;
     BtnAdd.Show();
     BtnDeactive.Hide();
     BtnUpdate.Hide();
     BtnCancel.Hide();
 }
 private void Reset()//reset the all changes on textboxes
 {
     TxtName.Text             = string.Empty;
     TxtSurname.Text          = string.Empty;
     TxtPhone.Text            = string.Empty;
     TxtUsername.Text         = string.Empty;
     TxtPassword.Text         = string.Empty;
     TxtNewPassword.Text      = string.Empty;
     CmbPosition.SelectedItem = null;
     BtnAdd.Show();
     BtnDeactive.Hide();
     BtnUpdate.Hide();
     BtnCancel.Hide();
     TxtNewPassword.Hide();
     LblPassword.Text = "password";
     TxtPassword.Show();
     LblComment.Hide();
 }