private void linkLabel1_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e) { MyHome h = MyHome.getInstance(); h.Show(); this.Hide(); }
private void homeToolStripMenuItem1_Click(object sender, EventArgs e) { MyHome l = MyHome.getInstance(); l.Show(); this.Hide(); }
public static MyHome getInstance() { if (h == null) { h = new MyHome(); h.Show(); return(h); } else { return(h); } }