private void newToolStripMenuItem_Click(object sender, EventArgs e) { NewClient newClient = new NewClient(); newClient.MdiParent = this; newClient.Show(); }
private void Edit_Click(object sender, RoutedEventArgs e) { if (lb.SelectedItem != null) { NewClient win = new NewClient(lb.SelectedItem as DB.Kunde); win.Show(); } }
private void barButtonItem8_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e) { if (newcl == null) { newcl = new NewClient(); newcl.MdiParent = Accueil.ActiveForm; newcl.Show(); newcl.BringToFront(); } else { newcl.MdiParent = Accueil.ActiveForm; newcl.Show(); newcl.BringToFront(); } }
private void New_Click(object sender, RoutedEventArgs e) { NewClient NewClient = new NewClient(); NewClient.Show(); }