Example #1
0
File: Cat.cs Project: ShinEDL/Spyer
 //窗体第一次出现时
 private void Cat_Shown(object sender, EventArgs e)
 {
     if (welcome == null)
     {
         welcome = WelCome.getInstance();
         welcome.Show();
     }
 }
Example #2
0
 public static WelCome getInstance()
 {
     if (welcome == null || welcome.IsDisposed)
     {
         welcome = new WelCome();
         welcome.FormBorderStyle = FormBorderStyle.None;
         welcome.Dock            = DockStyle.Fill;
         welcome.MdiParent       = Cat.ActiveForm;
         welcome.WindowState     = FormWindowState.Maximized;
     }
     return(welcome);
 }
Example #3
0
File: Cat.cs Project: ShinEDL/Spyer
        //首页
        private void toolStripMenuItem1_Click(object sender, EventArgs e)
        {
            Form active = this.ActiveMdiChild;

            if (active != null)
            {
                active.Dispose();
            }
            if (welcome == null || welcome.IsDisposed)
            {
                welcome = WelCome.getInstance();
                welcome.Show();
            }
        }