示例#1
0
        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();
        }
示例#2
0
        public AccountTreeCashViewerSettingView(AccountTreeCashSettingViewModel viewModel, AccountTreeView view)
        {
            InitializeComponent();

            this.DataContext = viewModel;
            this._viewModel  = viewModel;
            this._view       = view;



            // this._viewModel = viewModel;
        }