예제 #1
0
 private void editToolStripMenuItem_Click(object sender, EventArgs e)
 {
     if (this.objectListView1.SelectedObject != null)
     {
         Guest     nGuest = (Guest)this.objectListView1.SelectedObject;
         InputForm nInput = new InputForm(nGuest);
         nInput.ShowDialog();
         if (nInput.DialogResult == DialogResult.OK)
         {
             nGuest.Copy(nInput.NewGuest);
             this.objectListView1.RefreshObject(nGuest);
             this.RefreshGuestsCount();
         }
     }
 }