Beispiel #1
0
 public void ShowExtForm(ExtendFormCate formCate)
 {
     for (int i = 0; i < this.pl_ExterProParent.Controls.Count; i++)
     {
         Form fm = (Form)this.pl_ExterProParent.Controls[i];
         if (fm == null)
         {
             continue;
         }
         fm.Visible = false;
     }
     if (formCate == ExtendFormCate.外部)
     {
         if (this.expandForm == null)
         {
             return;
         }
         this.expandForm.Visible = true;
         this.expandForm.Show();
         this.gb_Model.Text = this.expandForm.Text;
     }
     else//内部,暂时没有内部扩展窗体
     {
     }
 }
Beispiel #2
0
 public void ShowExtForm(ExtendFormCate formCate)
 {
     //for (int i = 0; i < this.pl_ExterProParent.Controls.Count; i++)
     //{
     //    Form fm = (Form)this.pl_ExterProParent.Controls[i];
     //    if (fm == null)
     //    {
     //        continue;
     //    }
     //    fm.Visible = false;
     //}
     if (formCate == ExtendFormCate.外部)
     {
         if (expandForm == null)
         {
             return;
         }
         this.expandForm.Visible = true;
         this.expandForm.Show();
         this.gb_Model.Text = this.expandForm.Text;
     }
     else
     {
         if (this.innerForm == null)
         {
             return;
         }
         this.innerForm.Visible = true;
         this.innerForm.Show();
         this.gb_Model.Text = this.innerForm.Text;
     }
 }