public override void OpenForm() { if (_form == null) { _form = new DisplayForm(this); } UpdateForm(); _form.ShowDeviceParameters(_baseAddress); _form.Show(); }
private void InitWindowsForm() { Form = new DisplayForm { SearchActionAgentCallback = SearchInformations }; PrintInfomation = Form.AddTextLine; Form.Show(); }
/// Открывает форму, если она закрыта или закрывает, если открыта public void ChangeFormState() { if (_form == null) { _form = new DisplayForm(this); _form.Show(); UpdateForm(); } else { _form.Close(); } }
private void ShowHideDisplayForm() { try { if (isDisplayFormHide) { isDisplayFormHide = false; displayForm.Show(); } else { isDisplayFormHide = true; displayForm.Hide(); } } catch (Exception e) { } }
static void Main() { Application.EnableVisualStyles(); Application.SetCompatibleTextRenderingDefault(false); var main = new MainWindow(); var test = new TestWindow(); test.MdiParent = main; test.Show(); var form = new DisplayForm(); form.Model.LoadFromModel(HiyoriModel.CreateModel()); form.MdiParent = main; form.Show(); Application.Run(main); }
/******************************************** * 函数名称:Display() * 功能:创建数据显示窗口,动态显示数据信息 * 参数:this 表示显示窗口对应的组件 * 返回值:无 * ******************************************/ public void Display() { Form fm = new DisplayForm(this); fm.Show(); }