コード例 #1
0
 public static Web_Flow getInstance()
 {
     if (flow == null || flow.IsDisposed)
     {
         flow = new Web_Flow();
         flow.FormBorderStyle = FormBorderStyle.None;
         flow.Dock            = DockStyle.Fill;
         flow.MdiParent       = Cat.ActiveForm;
         flow.WindowState     = FormWindowState.Maximized;
     }
     return(flow);
 }
コード例 #2
0
ファイル: Cat.cs プロジェクト: ShinEDL/Spyer
        private void 网络流量ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form active = this.ActiveMdiChild;

            if (active != null)
            {
                active.Close();
                active.Dispose();
            }
            if (wf == null || wf.IsDisposed)
            {
                wf = Web_Flow.getInstance();
                wf.Show();
            }
            //if (active != null)
            //{
            //    active.SendToBack();
            //wf.StartPosition = FormStartPosition.Manual;
            //wf.BringToFront();
            //    wf.Activate();
            //}
        }