Ejemplo n.º 1
0
 private async void Window_Closing(object sender, CancelEventArgs e)
 {
     if (!confirmed && mainWindowViewModel.AuthenticatedUserModel.Agent.ID != 0 && mainWindowViewModel.AuthenticatedUserModel.TxtStatus.Equals(EStatus.Active.ToString()))
     {
         e.Cancel = true;
         if (await mainWindowViewModel.DisposeAsync())
         {
             confirmed = true;
             this.Close();
         }
     }
 }