Esempio n. 1
0
 private void OptionsControl_OnLoaded(object sender, RoutedEventArgs e)
 {
     if (!DesignerProperties.GetIsInDesignMode(this))
     {
         this.DataContext = this.viewModel = new OptionsControlViewModel();
     }
 }
Esempio n. 2
0
 /// <summary>
 /// Disposing the resources.
 /// </summary>
 /// <param name="disposing">true or false</param>
 private void Dispose(bool disposing)
 {
     if (disposing)
     {
         if (this.viewModel != null)
         {
             this.viewModel.Dispose();
             this.viewModel = null;
         }
     }
 }