コード例 #1
0
        private void Add_Injury_Click(object sender, EventArgs e)
        {
            Add_Edit_Injury_Type AddInjType = new Add_Edit_Injury_Type(1, CurrentUser);

            AddInjType.ShowDialog();
            this.Refresh();
        }
コード例 #2
0
 private void Edit_Injury_Click(object sender, EventArgs e)
 {
     if (this.Injury_Type_List_View.SelectedRows.Count == 1)
     {
         Add_Edit_Injury_Type EditInjType = new Add_Edit_Injury_Type(2, CurrentUser);
         EditInjType.SetDataBeforeEdit(this.Injury_Type_List_View, this.Injury_Type_List_View.CurrentRow.Index);
         EditInjType.ShowDialog();
         this.Refresh();
     }
     else
     {
         MessageBox.Show("Select ONE Record To Edit");
     }
 }