/// <summary> /// Initializes a new instance of the ImportDeckWizardPageVM class. /// </summary> /// <param name="importDeckWizardVM">The parent Import Deck Wizard ViewModel</param> public ImportDeckWizardPageVM(ImportDeckWizardVM importDeckWizardVM) { if (importDeckWizardVM == null) { throw new ArgumentNullException(); } this.ImportDeckWizardVM = importDeckWizardVM; }
/// <summary> /// Fired when the DataContext of MainWindow changes. It will store a reference to the DataContext if it is /// of type ImportDeckWizardVM, and subscribe to it's Close event. Previous DataContexts will be unsubscribed. /// </summary> /// <param name="sender">The sender of the Event</param> /// <param name="e">The DependencyPropertyChangedEventArgs property</param> private void MainWindow_DataContextChanged(object sender, DependencyPropertyChangedEventArgs e) { if (this._ImportDeckWizardVM != null) { this._ImportDeckWizardVM.Close -= new System.EventHandler(this.ImportDeckWizardVM_Close); } this._ImportDeckWizardVM = null; if (e.NewValue != null && e.NewValue is ImportDeckWizardVM) { this._ImportDeckWizardVM = e.NewValue as ImportDeckWizardVM; this._ImportDeckWizardVM.Close += new System.EventHandler(this.ImportDeckWizardVM_Close); } }
/// <summary> /// Initializes a new instance of the WizardPage_ChooseDeckSourceType class. /// </summary> /// <param name="importDeckWizardVM">The parent Wizard that will use this Page</param> public WizardPage_ChooseDeckSourceType(ImportDeckWizardVM importDeckWizardVM) : base(importDeckWizardVM) { }
/// <summary> /// Initializes a new instance of the WizardPage_SelectFile class. /// </summary> /// <param name="importDeckWizardVM">The parent Wizard that will use this Page</param> public WizardPage_SelectFile(ImportDeckWizardVM importDeckWizardVM) : base(importDeckWizardVM) { this.CanMoveToNextStep = false; }
/// <summary> /// Initializes a new instance of the WizardPage_EnterWebpage class. /// </summary> /// <param name="importDeckWizardVM">The parent Wizard that will use this Page</param> public WizardPage_EnterWebpage(ImportDeckWizardVM importDeckWizardVM) : base(importDeckWizardVM) { this.CanMoveToNextStep = false; }
/// <summary> /// Initializes a new instance of the WizardPage_CompareCards class. /// </summary> /// <param name="importDeckWizardVM">The parent Wizard that will use this Page</param> public WizardPage_CompareCards(ImportDeckWizardVM importDeckWizardVM) : base(importDeckWizardVM) { }