public LinkCashSettingVisual(LinkCashSettingsViewModel ViewModel, LinkCashVisual View)
 {
     InitializeComponent();
     this.DataContext = ViewModel;
     this._view       = View;
     this._viewModel  = ViewModel;
 }
Exemple #2
0
        public void ShowSettings()
        {
            LinkCashSettingsViewModel settingsViewModel = new LinkCashSettingsViewModel(this.ViewModel, this.GenericWindow);
            LinkCashSettingVisual     window            = new LinkCashSettingVisual(settingsViewModel, this.GenericWindow);

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