private void mnuInfoST_Click(object sender, EventArgs e) { ScriptType st = SelectedScriptType(); var tts = FilterTeamTypes(st); object tt = UseInfoBox.Show("Used by Teams", tts); if (tt != null) { tabControl1.SelectedIndex = 2; olvTT.SelectedObject = tt; olvTT.EnsureVisible(); } }
private void mnuInfoTF_Click(object sender, EventArgs e) { TaskForce tf = SelectedTaskForce(); var tts = FilterTeamTypes(tf); object tt = UseInfoBox.Show("Used by Teams", tts); if (tt != null) { tabControl1.SelectedIndex = 2; olvTT.SelectedObject = tt; olvTT.EnsureVisible(); } }
private void mnuInfoTT_Click(object sender, EventArgs e) { TeamType tt = SelectedTeamType(); var trs = from tre in triggerTypes.Items where tre.HasTeamType(tt) select tre; object tr = UseInfoBox.Show("Used by Triggers", trs); if (tr != null) { tabControl1.SelectedIndex = 3; olvTr.SelectedObject = tr; olvTr.EnsureVisible(); } }