Exemple #1
0
 public LoginWindow()
 {
     try
     {
         ClientManager.CloseClient();
         client = ClientManager.GetClient();
         InitializeComponent();
     }
     catch (Exception ex)
     {
         MessageBox.Show(Application.Current.Resources["defaultErrorMessage"].ToString(),
                         "Грешка", MessageBoxButton.OK, MessageBoxImage.Error);
     }
 }
 private void Window_Closing(object sender, System.ComponentModel.CancelEventArgs e)
 {
     ClientManager.CloseClient();
 }