private void button4_Click(object sender, EventArgs e) { AddStaff asf = new AddStaff(this); asf.Show(); this.Hide(); }
private void _btnNewStaff_Click(object sender, RoutedEventArgs e) { AddStaff win = new AddStaff(); win.ShowDialog(); _datagridStaff.ItemsSource = db.Staffs.ToList(); }
public void TestAddStaff() { AddStaff Adds = new AddStaff(); Adds.Show(); Adds.family.Text = "Иванов"; Adds.name.Text = "Иван"; Adds.surname.Text = "Иванович"; Adds.gender.SelectedItem = "Мужской(M)"; Adds.dateTimePicker1.Value = DateTime.Now; Adds.id_marital_status.SelectedItem = "Женат"; Adds.having_child.SelectedItem = "Нет"; Adds.id_position.SelectedItem = "Научный сотрудник"; Adds.id_academic_degree.SelectedItem = "Без ученой степени"; Adds.buttonSave.PerformClick(); LaboratoryStaff Lb = new LaboratoryStaff(); Lb.Show(); foreach (DataGridViewRow item in Lb.dataGridView1.Rows) { if (item.Cells["Фамилия"].Value.ToString().Equals("Иванов") && item.Cells["Имя"].Value.ToString().Equals("Иван") && item.Cells["Отчество"].Value.ToString().Equals("Иванович") && item.Cells["Должность"].Value.ToString().Equals("Научный сотрудник") && item.Cells["Ученая степень"].Value.ToString().Equals("б/с")) { return; } } Assert.Fail(); }
public void TestButtonBack() { AddStaff Adds = new AddStaff(); Adds.Show(); try { Adds.buttonBack.PerformClick(); } catch { Assert.Fail(); } }
public StaffBagLocal() { StaffDetails = new AddStaff(); }
private void button1_Click(object sender, EventArgs e) { AddStaff addStaff = new AddStaff(); addStaff.Show(); }
private void AddButon_Click (object sender, RoutedEventArgs e) { _BUSY_INDICATOR.IsBusy=false; var wind = new AddStaff(Guid.Empty) { Owner=Window.GetWindow(this) }; wind.ShowDialog(); UpdateData(); }
private void Modifier_OnClick (object sender, RoutedEventArgs e) { var menuItem = (MenuItem)e.Source; var menu = (ContextMenu)menuItem.Parent; var list = (ListBox)menu.PlacementTarget; if(list?.SelectedValue==null) return; _BUSY_INDICATOR.IsBusy=false; var wind = new AddStaff((Guid) list.SelectedValue) { Owner=Window.GetWindow(this) }; wind.ShowDialog(); UpdateData(); }
public StaffBag() { StaffDetails = new AddStaff(); }
public PresenterThemNhanVien(AddStaff _addStaffView) { addStaffView = _addStaffView; }