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(); } }
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(); } }