示例#1
0
        private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            MyHome h = MyHome.getInstance();

            h.Show();
            this.Hide();
        }
示例#2
0
文件: Form1.cs 项目: AminaJaved/MP
        private void homeToolStripMenuItem1_Click(object sender, EventArgs e)
        {
            MyHome l = MyHome.getInstance();

            l.Show();
            this.Hide();
        }
示例#3
0
文件: MyHome.cs 项目: AminaJaved/MP
 public static MyHome getInstance()
 {
     if (h == null)
     {
         h = new MyHome();
         h.Show();
         return(h);
     }
     else
     {
         return(h);
     }
 }