Ejemplo n.º 1
0
 private void EditMilitaries()
 {
     MilitaryList list = new MilitaryList();
     for (int i = 0; i < this.dgvMilitaries.SelectedRows.Count; i++)
     {
         list.Add(this.Militaries[this.dgvMilitaries.SelectedRows[i].Index]);
     }
     if (list.Count != 0)
     {
         frmEditMilitary military = new frmEditMilitary();
         military.Militaries = list;
         military.ShowDialog();
         this.dgvMilitaries.Invalidate();
     }
 }
 private void clbMilitaries_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     if (this.editingArchitecture != null)
     {
         frmEditMilitary military = new frmEditMilitary();
         MilitaryList list = new MilitaryList();
         list.AddMilitary(this.clbMilitaries.SelectedItem as Military);
         military.Militaries = list;
         military.CurrentArchitecture = this.editingArchitecture;
         military.ShowDialog();
     }
 }