Interaction logic for LicenseAcceptanceWindow.xaml
Inheritance: DialogWindow
Beispiel #1
0
        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;
        }
Beispiel #2
0
        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);
        }
Beispiel #3
0
        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;
            }
        }
Beispiel #4
0
        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);
            }
        }