예제 #1
0
        public ScopeControl()
        {
            InitializeComponent();

            Scope = new Scope();
            Scope.Trigger += ScopeTrigger;
            Scope.Add += ScopeAdd;
        }
예제 #2
0
 public void Dispose()
 {
     if (Scope != null)
     {
         Scope.Dispose();
         Scope = null;
     }
 }
예제 #3
0
 private void UserControl_Unloaded(object sender, RoutedEventArgs e)
 {
     Scope.Dispose();
     Scope = null;
 }