Esempio n. 1
0
 private void showForm(bool isShow)
 {
     if (this.InvokeRequired)
     {
         this.Invoke(new Action <bool>(showForm), new object[] { isShow });
     }
     else
     {
         if (form != null)
         {
             if (isShow)
             {
                 form.Show();
             }
             else
             {
                 zedgraph = null;
                 form     = null;
             }
         }
     }
 }
Esempio n. 2
0
        private void createZedgraph(GoBasicNode node)
        {
            LogHelper.Debug("create node:" + node.Text);
            form                            = new Form();
            form.WindowState                = FormWindowState.Maximized;
            zedgraph                        = new ZedgraphDemo(node.Text, logHelper);
            zedgraph.Ip                     = ip;
            zedgraph.Port                   = port;
            zedgraph.sendResult            += new ZedgraphDemo.SendResult(zedgraph_sendResult);
            zedgraph.Dock                   = DockStyle.Fill;
            zedgraph.RequestSvrId           = node.Text;
            zedgraph.IsPrintFillPage        = false;
            zedgraph.IsPrintKeepAspectRatio = false;
            zedgraph.IsPrintScaleAll        = false;
            zedgraph.IsShowCopyMessage      = false;


            form.Controls.Add(zedgraph);
            zedgraph.connect();
            form.Width  = 100;
            form.Height = 100;
            //form.Show(this);
        }