Beispiel #1
0
 public LinkCashSettingVisual(ReblanceInfoSettingsViewModel ViewModel, RebalanceInfoVisual View)
 {
     InitializeComponent();
     this.DataContext = ViewModel;
     this._view       = View;
     this._viewModel  = ViewModel;
 }
        public void ShowSettings()
        {
            ReblanceInfoSettingsViewModel settingsViewModel = new ReblanceInfoSettingsViewModel(this.ViewModel, this.GenericWindow);
            LinkCashSettingVisual         window            = new LinkCashSettingVisual(settingsViewModel, this.GenericWindow);

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