private void button1_Click(object sender, EventArgs e) { Haupt frmHaupt = new Haupt(); frmHaupt.Show(); this.Hide(); }
private void Kontakt_FormClosing(object sender, FormClosingEventArgs e) { if (Program.frmHaupt == null) { Haupt frmHaupt = new Haupt(); Program.frmHaupt = frmHaupt; frmHaupt.Show(); } else { Program.frmHaupt.Show(); } }
private void Termin_FormClosing(object sender, FormClosingEventArgs e) { if (Program.frmHaupt == null) { Haupt frmHaupt = new Haupt(); Program.frmHaupt = frmHaupt; frmHaupt.Show(); } else { Program.frmHaupt.Show(); } }