public static AddContract GetAddContract()
 {
     if (add_contract == null)
     {
         add_contract = new AddContract();
     }
     add_contract.Activate();
     return(add_contract);
 }
 private void Window_Closed(object sender, EventArgs e)
 {
     add_contract = null;
 }
Esempio n. 3
0
 //Договори
 private void AddContract_Click(object sender, RoutedEventArgs e)
 {
     add_contract = AddContract.GetAddContract();
     add_contract.Show();
 }