Exemple #1
0
        private static WebLibraryDetail PickWebLibrary_GUI(string message)
        {
            WebLibraryPicker web_library_picker = new WebLibraryPicker();

            web_library_picker.last_picked_web_library_detail = null;

            if (null != message)
            {
                web_library_picker.TextMessage.Inlines.Clear();
                web_library_picker.TextMessage.Inlines.Add(message);
            }
            web_library_picker.ShowDialog();
            return(web_library_picker.last_picked_web_library_detail);
        }
Exemple #2
0
        private static WebLibraryDetail PickWebLibrary_GUI(string message)
        {
            WebLibraryPicker web_library_picker = new WebLibraryPicker();
            WebLibraryDetail rv = null;

            web_library_picker.Picked += delegate(object sender, PickedEventArgs e) {
                rv = e.pickedLibrary;
            };

            if (null != message)
            {
                web_library_picker.TextMessage.Inlines.Clear();
                web_library_picker.TextMessage.Inlines.Add(message);
            }
            web_library_picker.ShowDialog();

            return(rv);
        }