Пример #1
0
 private void RemoveTool(BaseToolLayer t)
 {
     if (t.MapControl == this)
     {
         t.MapControl = null;
     }
     _registeredTools.Remove(t);
     t.PropertyChanged -= TOnPropertyChanged;
 }
Пример #2
0
 private void RegisterTool(BaseToolLayer t)
 {
     t.MapControl = this;
     _registeredTools.Add(t);
     t.PropertyChanged += TOnPropertyChanged;
 }