void SOPList_CancelSOP(object sender, CancelSOPEventArgs e)
 {
     try
     {
         FinishSOP(sopViewModel);
     }
     catch (Exception ex)
     {
         Utility.WriteLog(ex);
         MessageBox.Show(Utility.GetErrorMessage());
         Utility.LogOut();
     }
 }
Example #2
0
 protected virtual void OnCancelSOP(CancelSOPEventArgs E)
 {
     try
     {
         var handler = CancelSOP;
         if (handler != null)
         {
             handler(this, E);
         }
     }
     catch (Exception ex)
     {
         Utility.WriteLog(ex);
         MessageBox.Show(Utility.GetErrorMessage());
         Utility.LogOut();
     }
 }