Пример #1
0
 public MutualFundsCashSettingVisual(MutualFundsCashSettingsViewModel ViewModel, MutualFundsCashVisual View)
 {
     InitializeComponent();
     this.DataContext = ViewModel;
     this._view       = View;
     this._viewModel  = ViewModel;
 }
        public void ShowSettings()
        {
            MutualFundsCashSettingsViewModel settingsViewModel = new MutualFundsCashSettingsViewModel(this.ViewModel, this.GenericWindow);
            MutualFundsCashSettingVisual     window            = new MutualFundsCashSettingVisual(settingsViewModel, this.GenericWindow);

            window.Owner = Application.Current.MainWindow;
            window.WindowStartupLocation = WindowStartupLocation.CenterOwner;
            window.ShowDialog();
        }