// Author Create Method private void BtnCreate_Click(object sender, EventArgs e) { if (TxtName.Text == "") { MessageBox.Show("Name daxil edin."); } if (TxtSurname.Text == "") { MessageBox.Show("Surname daxil edin"); } if (RdBtnActive.Checked == false && RdBtnDisabled.Checked == false) { MessageBox.Show("Status sechin"); } if (!string.IsNullOrEmpty(TxtName.Text) && !string.IsNullOrEmpty(TxtSurname.Text) && (RdBtnActive.Checked || RdBtnDisabled.Checked)) { Author author = new Author(); author.Name = TxtName.Text; author.Status = RdBtnActive.Checked ? true : false; author.Surname = TxtSurname.Text; _db.Authors.Add(author); _db.SaveChanges(); MessageBox.Show("Author Added:" + TxtName.Text, TxtSurname.Text + "New Author"); TxtSurname.Clear(); TxtName.Clear(); RdBtnActive.Checked = false; RdBtnDisabled.Checked = false; FillAuthors(); } }
//(Reset)Returning everything back to its original// private void Reset() { TxtName.Clear(); TxtSurname.Clear(); CreateBtn.Visibility = Visibility.Visible; BtnDelete.Visibility = Visibility.Hidden; BtnUpdate.Visibility = Visibility.Hidden; }
//Reseting means clearing information// private void Reset() { TxtName.Clear(); TxtSurname.Clear(); BtnCreate.Visibility = Visibility.Visible; BtnDelete.Visibility = Visibility.Hidden; BtnUpdate.Visibility = Visibility.Hidden; FillManagers(); }
//reset method private void Reset() { TxtName.Clear(); TxtSurname.Clear(); TxtPhone.Clear(); TxtEmail.Clear(); TxtIdCard.Clear(); BtnUpdate.Visibility = Visibility.Hidden; BtnDelete.Visibility = Visibility.Hidden; BtnRead.Visibility = Visibility.Hidden; }
//reset method private void Reset() { TxtName.Clear(); TxtSurname.Clear(); TxtUsername.Clear(); TxtPassword.Clear(); CbxPosition.SelectedItem = null; BtnUpdate.Visibility = Visibility.Hidden; BtnDelete.Visibility = Visibility.Hidden; BtnRead.Visibility = Visibility.Hidden; }
private void Reset() { TxtName.Clear(); TxtSurname.Clear(); TxtLogin.Clear(); TxtPassword.Clear(); BtnCreate.Visibility = Visibility.Visible; BtnUpdate.Visibility = Visibility.Hidden; BtnDelete.Visibility = Visibility.Hidden; FillUsers(); }
public void ResetForm() { TxtName.Clear(); TxtSurname.Clear(); if (RdBtnActive.Checked) { RdBtnDisabled.Checked = false; } if (RdBtnDisabled.Checked) { RdBtnActive.Checked = false; } }
private void Reset() { TxtName.Clear(); TxtSurname.Clear(); CmbGroups.SelectedItem = null; DtpBirthday.SelectedDate = null; BtnCreate.Visibility = Visibility.Visible; BtnUpdate.Visibility = Visibility.Hidden; BtnDelete.Visibility = Visibility.Hidden; FillStudents(); }
//Textbox Value Reset private void Reset() { TxtName.Clear(); TxtSurname.Clear(); TxtPhone.Clear(); TxtEmail.Clear(); TxtPassword.Clear(); BtnCreate.Visibility = Visibility.Visible; BtnUpdate.Visibility = Visibility.Hidden; BtnDelete.Visibility = Visibility.Hidden; FillCustomerData(); }
// TextBox Reset private void Reset() { TxtEmail.Clear(); TxtName.Clear(); TxtPassword.Clear(); TxtPhoneNumber.Clear(); TxtSurname.Clear(); BtnCreate.Visibility = Visibility.Visible; BtnUpdate.Visibility = Visibility.Hidden; BtnDelete.Visibility = Visibility.Hidden; FillManagers(); }
private void BtnClear_Click(object sender, EventArgs e) { TxtTcnumber.Clear(); TxtName.Clear(); TxtSurname.Clear(); TxtAddress.Clear(); TxtDays.Clear(); MskTxtPhoneNumber.Clear(); TxtEmail.Clear(); TxtPayment.Clear(); TxtRoomNumber.Clear(); dateTimePicker1.ResetText(); DtpCheckin.ResetText(); DtpCheckout.ResetText(); }