예제 #1
0
 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();
        }
예제 #3
0
 /// Открывает форму, если она закрыта или закрывает, если открыта
 public void ChangeFormState()
 {
     if (_form == null)
     {
         _form = new DisplayForm(this);
         _form.Show();
         UpdateForm();
     }
     else
     {
         _form.Close();
     }
 }
예제 #4
0
 private void ShowHideDisplayForm()
 {
     try
     {
         if (isDisplayFormHide)
         {
             isDisplayFormHide = false;
             displayForm.Show();
         }
         else
         {
             isDisplayFormHide = true;
             displayForm.Hide();
         }
     }
     catch (Exception e)
     {
     }
 }
예제 #5
0
        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);
        }
예제 #6
0
        /********************************************
        *  函数名称:Display()
        *  功能:创建数据显示窗口,动态显示数据信息
        *  参数:this 表示显示窗口对应的组件
        *  返回值:无
        * ******************************************/

        public void Display()
        {
            Form fm = new DisplayForm(this);

            fm.Show();
        }