예제 #1
0
 public RestrictedSecuritySettingVisual(RestrictedSecuritySettingsViewModel ViewModel, RestrictedSecurityVisual View)
 {
     InitializeComponent();
     this.DataContext = ViewModel;
     this._view       = View;
     this._viewModel  = ViewModel;
 }
        public void ShowSettings()
        {
            RestrictedSecuritySettingsViewModel settingsViewModel = new RestrictedSecuritySettingsViewModel(this.ViewModel, this.GenericWindow);
            RestrictedSecuritySettingVisual     window            = new RestrictedSecuritySettingVisual(settingsViewModel, this.GenericWindow);

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