private bool ShowLicenseWindow(object dataContext) { var licenseWidow = new LicenseAcceptanceWindow() { DataContext = dataContext }; // call ShowModal() instead of ShowDialog() so that the dialog // automatically centers within parent window bool? dialogResult = licenseWidow.ShowModal(); return dialogResult ?? false; }
private bool ShowLicenseWindow(object dataContext) { var licenseWidow = new LicenseAcceptanceWindow() { DataContext = dataContext }; // call ShowModal() instead of ShowDialog() so that the dialog // automatically centers within parent window bool?dialogResult = licenseWidow.ShowModal(); return(dialogResult ?? false); }
private bool ShowLicenseWindow(object dataContext) { var licenseWidow = new LicenseAcceptanceWindow() { DataContext = dataContext }; // call ShowModal() instead of ShowDialog() so that the dialog // automatically centers within parent window using (NuGetEventTrigger.Instance.TriggerEventBeginEnd( NuGetEvent.LicenseWindowBegin, NuGetEvent.LicenseWindowEnd)) { bool? dialogResult = licenseWidow.ShowModal(); return dialogResult ?? false; } }
private bool ShowLicenseWindow(object dataContext) { var licenseWidow = new LicenseAcceptanceWindow() { DataContext = dataContext }; // call ShowModal() instead of ShowDialog() so that the dialog // automatically centers within parent window using (NuGetEventTrigger.Instance.TriggerEventBeginEnd( NuGetEvent.LicenseWindowBegin, NuGetEvent.LicenseWindowEnd)) { bool?dialogResult = licenseWidow.ShowModal(); return(dialogResult ?? false); } }