public void RemoveForwardDestination(ForwardDestination fc) { if (this.forwards.ContainsKey(fc.Key)) { this.forwards.Remove(fc.Key); try { fc.Remove(); } catch { } } OnForwardDestinationsUpdated(); }
public void AddForwardDestination(ForwardDestination fc) { if (fc != null) { if (this.forwards.ContainsKey(fc.Key)) { this.forwards.Remove(fc.Key); try { fc.Remove(); } catch { } } this.forwards.Add(fc.Key, fc); OnForwardDestinationsUpdated(); } }