Ejemplo n.º 1
0
 Boolean kiemtratontai(string Frmname)
 {
     foreach (Form Frm in this.MdiChildren)
     {
         if (Frm.Name.Equals(Frmname))
         {
             Frm.Activate();
             return(true);
         }
     }
     return(false);
 }
Ejemplo n.º 2
0
        private void BarraTareas_ItemClicked(object sender, ToolStripItemClickedEventArgs e)
        {
            int  FormId   = ((int)e.ClickedItem.Tag);
            bool Encontre = false;

            foreach (Form Frm in this.MdiChildren)
            {
                Lui.Forms.ChildForm Frm2 = Frm as Lui.Forms.ChildForm;
                if (Frm2 != null && Frm2.Uid == FormId)
                {
                    Encontre    = true;
                    Frm.Visible = true;
                    Frm.Show();
                    Frm.Activate();
                    break;
                }
            }
            if (Encontre == false)
            {
                BarraTareas.Items.Remove(e.ClickedItem);
            }
        }