Пример #1
0
 public void RemoveForwardDestination(ForwardDestination fc)
 {
     if (this.forwards.ContainsKey(fc.Key))
     {
         this.forwards.Remove(fc.Key);
         try
         {
             fc.Remove();
         }
         catch
         {
         }
     }
     OnForwardDestinationsUpdated();
 }
Пример #2
0
 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();
     }
 }