public DebugSettings() { InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterOwner; ViewModel = new DebugSettingsModel(); DataContext = ViewModel; //Closing += (o, e) => ViewModel.SaveDebugSettings(); }
public DebugSettings(IVsUIShell vsUIShell, string appDirectoryPath) { _vsUIShell = vsUIShell; InitializeComponent(); WindowStartupLocation = WindowStartupLocation.CenterOwner; ViewModel = new DebugSettingsModel(appDirectoryPath); DataContext = ViewModel; //Closing += (o, e) => ViewModel.SaveDebugSettings(); }