void SOPList_CancelSOP(object sender, CancelSOPEventArgs e) { try { FinishSOP(sopViewModel); } catch (Exception ex) { Utility.WriteLog(ex); MessageBox.Show(Utility.GetErrorMessage()); Utility.LogOut(); } }
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(); } }