Ejemplo n.º 1
0
        private void toolStripMenuItem_Window_Item_Click(object sender, EventArgs e)
        {
            ToolStripMenuItem _toolStripMenuItem_mdiChild = (ToolStripMenuItem)sender;
            Form_MainBase     _form_MainBase = (Form_MainBase)_toolStripMenuItem_mdiChild.Tag;

            //če je to naša forma, potem je seveda aktivna!
            if (_form_MainBase != this)
            {
                _form_MainBase.Activate();
            }
        }
Ejemplo n.º 2
0
        private void ActivateItem()
        {
            foreach (ListViewItem _listViewItem in listView1.SelectedItems)
            {
                if (_listViewItem.Focused)
                {
                    Form_MainBase _form_MainBase = (Form_MainBase)_listViewItem.Tag;
                    if (!_form_MainBase.Focused)
                    {
                        _form_MainBase.Activate();
                        lastActivatedForm = _form_MainBase;
                    }

                    break;
                }
            }
        }