public void ShowSettings() { AccountTreeCashSettingViewModel settingsViewModel = new AccountTreeCashSettingViewModel(this.ViewModel, this.ViewerWindow); AccountTreeCashViewerSettingView window = new AccountTreeCashViewerSettingView(settingsViewModel, this.ViewerWindow); window.Owner = Application.Current.MainWindow; window.WindowStartupLocation = WindowStartupLocation.CenterOwner; window.ShowDialog(); }
public AccountTreeCashViewerSettingView(AccountTreeCashSettingViewModel viewModel, AccountTreeView view) { InitializeComponent(); this.DataContext = viewModel; this._viewModel = viewModel; this._view = view; // this._viewModel = viewModel; }