public TaxHarvestorSettingVisual(TaxHarvestorSettingsViewModel ViewModel, TaxHarvestorViewerVisual View) { InitializeComponent(); this.DataContext = ViewModel; this._view = View; this._viewModel = ViewModel; }
public void ShowSettings() { TaxHarvestorSettingsViewModel settingsViewModel = new TaxHarvestorSettingsViewModel(this.ViewModel, this.GenericWindow); TaxHarvestorSettingVisual window = new TaxHarvestorSettingVisual(settingsViewModel, this.GenericWindow); window.Owner = Application.Current.MainWindow; window.WindowStartupLocation = WindowStartupLocation.CenterOwner; window.ShowDialog(); }