コード例 #1
0
 private void deleteButton_Click(object sender, EventArgs e)
 {
     if (listBox1.SelectedItem != null)
     {
         DialogResult dr = MessageBox.Show(String.Format(Rekod.Properties.Resources.EGO_DeleteGroup, (listBox1.SelectedItem as itemObj).Name_o),
                                           Rekod.Properties.Resources.EGO_DeletingGroup, MessageBoxButtons.YesNo);
         if (dr == DialogResult.Yes)
         {
             _groupFunct.DeleteGroup((listBox1.SelectedItem as itemObjOrdered).Id_o);
             reloadGroups();
         }
     }
 }
コード例 #2
0
 public void DeleteGroup(int id)
 {
     gf.DeleteGroup(id);
     reloadGroups();
 }