Beispiel #1
0
 public static Inform getInstance()
 {
     if (inf == null || inf.IsDisposed)
     {
         inf = new Inform();
         inf.FormBorderStyle = FormBorderStyle.None;
         inf.Dock            = DockStyle.Fill;
         inf.MdiParent       = Cat.ActiveForm;
         inf.WindowState     = FormWindowState.Maximized;
     }
     return(inf);
 }
Beispiel #2
0
        private void 发布通知ToolStripMenuItem_Click(object sender, EventArgs e)
        {
            Form active = this.ActiveMdiChild;

            if (active != null)
            {
                active.Dispose();
            }
            if (inform == null || inform.IsDisposed)
            {
                inform        = Inform.getInstance();
                inform.sender = username;
                inform.Show();
            }
            //if (inform == null)
            //{
            //    inform = Inform.getInstance();
            //    inform.Show();
            //}
            //inform.StartPosition = FormStartPosition.Manual;
            //inform.BringToFront();
        }