private void btnNew_Click(object sender, EventArgs e) { CustName.Clear(); CustPass.Clear(); txtFirstName.Clear(); txtLastName.Clear(); txtTel.Clear(); txtEmail.Clear(); CustName.Focus(); btnAdd.Enabled = true; btnNew.Enabled = false; btnEdit.Enabled = false; btnDelete.Enabled = false; button1.Enabled = false; txtFirstName.ReadOnly = false; txtLastName.ReadOnly = false; txtTel.ReadOnly = false; txtEmail.ReadOnly = false; CustName.ReadOnly = false; CustPass.ReadOnly = false; }
private void Window_Loaded(object sender, RoutedEventArgs e) { CustName.Focus(); }