コード例 #1
0
 private void abilityToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //Abilities are assigned to Type = 3
     CreateObjectDialog dialog = new CreateObjectDialog(CreateObjectDialog.DotaType.Ability);
     dialog.ShowDialog();
     if (dialog.DialogResult == DialogResult.OK)
     {
         RefreshTreeView();
     }
 }
コード例 #2
0
 private void unitToolStripMenuItem_Click(object sender, EventArgs e)
 {
     //Units are assigned to Type = 2
     CreateObjectDialog dialog = new CreateObjectDialog(CreateObjectDialog.DotaType.Unit);
     dialog.ShowDialog();
     if (dialog.DialogResult == DialogResult.OK)
     {
         RefreshTreeView();
     }
     
 }