コード例 #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);
            }
        }
コード例 #2
0
        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;
            }
        }