public CurrentOrdersSettingVisual(CurrentOrdersViewerSettingsViewModel ViewModel, CurrentOrdersViewerVisual View)
 {
     InitializeComponent();
     this.DataContext = ViewModel;
     this._view       = View;
     this._viewModel  = ViewModel;
 }
Esempio n. 2
0
 public CurrentOrdersSettingVisual(CurrentOrdersViewerSettingsViewModel ViewModel, CurrentOrdersViewerVisual View)
 {
     InitializeComponent();
     this.DataContext = ViewModel;
     this._view       = View;
     this._viewModel  = ViewModel;
     cbTheme.Text     = _view._view.Parameters.DefaultTheme;
 }
        public void ShowSettings()
        {
            CurrentOrdersViewerSettingsViewModel settingsViewModel = new CurrentOrdersViewerSettingsViewModel(this.ViewModel, this.GenericWindow);
            CurrentOrdersSettingVisual           window            = new CurrentOrdersSettingVisual(settingsViewModel, this.GenericWindow);

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