public void dataClose(String naam) { if (naam == "klant") { this.klanten = null; } if (naam == "prospecties") { this.prospecties = null; } if (naam == "offertes") { this.offertes = null; } if (naam == "calculator") { this.calculator = null; } if (naam == "orders") { this.orders = null; } if (naam == "kalender") { this.kalender = null; } if (naam == "facturen") { this.facturen = null; } }
private void offertesToolStripMenuItem_Click(object sender, EventArgs e) { if (offertes == null) { Laden.ShowSplashScreen(); offertes = new Offertes(this, codeUser); offertes.MdiParent = this; Laden.CloseForm(); } offertes.BringToFront(); offertes.Show(); }