Ejemplo n.º 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;
        }
Ejemplo n.º 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);
        }
Ejemplo n.º 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;
            }
        }
Ejemplo n.º 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);
            }
        }