コード例 #1
0
 private void mnuNewData_Click(object sender, EventArgs e)
 {
     using (frmNewData datafrm = new frmNewData(ref game, null))
     {
         if (datafrm.ShowDialog() == DialogResult.OK)
         {
             this.changed = true;
             this.PopulateListview();
             this.SetTitleCaption();
         }
     }
 }
コード例 #2
0
        private void lvwDataLocations_DoubleClick(object sender, EventArgs e)
        {
            if (lvwDataLocations.SelectedItems.Count > 0)
            {
                int id = Convert.ToInt32(lvwDataLocations.SelectedItems[0].Tag);

                using (frmNewData datafrm = new frmNewData(ref game, id))
                {
                    if (datafrm.ShowDialog() == DialogResult.OK)
                    {
                        this.changed = true;
                        this.PopulateListview();
                        this.SetTitleCaption();
                    }
                }
            }
        }