コード例 #1
0
 private void buttonAdd_Click(object sender, EventArgs e)
 {
     RestController.AddWorker(textBoxName.Text, textBoxPassportID.Text, textBoxEmail.Text,
                              Convert.ToInt32(comboBoxPosition.SelectedItem.ToString().Split(' ')[0]));
     RestController.RefreshStaff(dataGridView1);
     RestController.FillPositionComboBox(comboBoxPosition);
 }
コード例 #2
0
 private void buttonDelete_Click(object sender, EventArgs e)
 {
     RestController.DeleteSelectedWorker(dataGridView1);
     RestController.RefreshStaff(dataGridView1);
     RestController.FillPositionComboBox(comboBoxPosition);
 }
コード例 #3
0
 private void Staff_Load(object sender, EventArgs e)
 {
     RestController.RefreshStaff(dataGridView1);
     RestController.FillPositionComboBox(comboBoxPosition);
 }