public static AddClient GetAddClient() { if (add_client == null) { add_client = new AddClient(); } add_client.Activate(); return(add_client); }
private void Window_Closed(object sender, EventArgs e) { add_client = null; }
private void Add_Click(object sender, RoutedEventArgs e) { AddClient window = new AddClient(); window.Show(); }
//Клієнти private void AddClient_Click(object sender, RoutedEventArgs e) { add_client = AddClient.GetAddClient(); add_client.Show(); }