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בינתיים - בטל את הסניף."); } }
public void RemoveNonexistentHandle() { Assert.IsFalse(assocs.Remove("someinvalidhandle")); }