Example #1
0
        private void buttonAddDLC_Click(object sender, EventArgs e)
        {
            DLC     dlc  = new DLC();
            FormDLC form = new FormDLC(dlc, versions);

            if (form.ShowDialog() == DialogResult.OK)
            {
                dlcs.Add(dlc);
                DrawDLCs();
                RefreshOthers();
            }
        }
Example #2
0
 private void buttonChangeDLC_Click(object sender, EventArgs e)
 {
     if (listViewDLCs.SelectedIndices.Count == 1)
     {
         DLC     dlc  = (DLC)listViewDLCs.SelectedItems[0].Tag;
         FormDLC form = new FormDLC(dlc, versions);
         if (form.ShowDialog() == DialogResult.OK)
         {
             DrawDLCs();
             RefreshOthers();
         }
     }
 }