Example #1
0
 private void disassociateFunction(PCIDViewModel pcid)
 {
     ActivityLogService.Logger.LogFunctionCall();
     try
     {
         if (!DBService.GetService().DisassociatePcidfromSaleM(_groupID, pcid.BranchNo))
         {
             throw new SalesException("מחיקת סניף נכשלה");
         }
         Associations.Remove(pcid);
         OnPropertyChanged("Associations");
         NewPcid = new PCIDViewModel(_groupID, true, false);
     }
     catch (Exception ex)
     {
         ActivityLogService.Logger.LogError(ex);
         MessageBox.Show("אירעה שגיאה בעת מחיקת המבצע מהסניף, אנא פנה אל מרכז התמיכה.\nבינתיים - בטל את הסניף.");
     }
 }
Example #2
0
 public void RemoveNonexistentHandle()
 {
     Assert.IsFalse(assocs.Remove("someinvalidhandle"));
 }