/// <summary> /// 加载带参数tab页或者模块 /// </summary> /// <param name="ctrl"></param> /// <param name="args"></param> public void ChangeForm(String caption, GpControlBase ctrl, params Object[] args) { GpChildForm form = GetChildForm(ctrl.FormId, args) as GpChildForm; if (form != null) { ShowChildForm(ctrl.FormId, args); } else { ctrl.FInfor.GForm.FormId = ctrl.FormId; ctrl.FInfor.GForm.Parameter = args; ctrl.FInfor.GForm.Controls.Add(ctrl); ctrl.Dock = DockStyle.Fill; ctrl.FInfor.GForm.MdiParent = AppForm.CurrentForm; ctrl.FInfor.GForm.Text = caption; ctrl.FInfor.GForm.Show(); ctrl.FInfor.GForm.LoadParameter(args); } }
public void ChangeForm(String caption, GpControlBase ctrl) { ChangeForm(caption, ctrl, null); }