示例#1
0
        public bool TrySelectPortableFramework(out string portableFramework)
        {
            var dialog = new PortableLibraryDialog
            {
                Owner = Window.Value
            };

            var result = dialog.ShowDialog();

            if (result ?? false)
            {
                portableFramework = dialog.GetSelectedFrameworkName();
                return(true);
            }
            else
            {
                portableFramework = string.Empty;
                return(false);
            }
        }
        public bool TrySelectPortableFramework(out string portableFramework)
        {
            var dialog = new PortableLibraryDialog
            {
                Owner = Window.Value
            };

            bool? result = dialog.ShowDialog();
            if (result ?? false)
            {
                portableFramework = dialog.GetSelectedFrameworkName();
                return true;
            }
            else
            {
                portableFramework = null;
                return false;
            }
        }