public ScopeControl() { InitializeComponent(); Scope = new Scope(); Scope.Trigger += ScopeTrigger; Scope.Add += ScopeAdd; }
public void Dispose() { if (Scope != null) { Scope.Dispose(); Scope = null; } }
private void UserControl_Unloaded(object sender, RoutedEventArgs e) { Scope.Dispose(); Scope = null; }