Exemplo n.º 1
0
        public static object Show(string title, IEnumerable objects)
        {
            UseInfoBox frm = new UseInfoBox();

            frm.Text = title;
            frm.olvUses.SetObjects(objects);
            frm.olvUses.Sort();
            frm.olvUses.SelectedIndex = 0;
            frm.ShowDialog();

            return(frm.selectedObject);
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
        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();
            }
        }
Exemplo n.º 4
0
        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();
            }
        }