Ejemplo n.º 1
0
 //buttons
 private void buttonDetails_Click(object sender, EventArgs e)
 {
     DetailsForm soldierForm = new DetailsForm( (Soldier)listViewSoldiers.SelectedItems[0].Tag , false,this);
     soldierForm.Show();
 }
Ejemplo n.º 2
0
 private void listViewSoldiers_DoubleClick(object sender, EventArgs e)
 {
     if(listViewSoldiers.SelectedItems.Count == 1)
     {
         DetailsForm soldierForm = new DetailsForm((Soldier)listViewSoldiers.SelectedItems[0].Tag, false, this);
         soldierForm.Show();
     }
 }
Ejemplo n.º 3
0
 private void buttonAddSoldier_Click(object sender, EventArgs e)
 {
     //DetailsForm soldierForm = new DetailsForm(new Soldier() , true,this);
     DetailsForm soldierForm = new DetailsForm(this);
     soldierForm.Show();
 }