Beispiel #1
0
        // Static method to browse for flats
        // Returns null when cancelled.
        public static string Browse(IWin32Window parent, string select)
        {
            FlatBrowserForm browser = new FlatBrowserForm(select);

            if (browser.ShowDialog(parent) == DialogResult.OK)
            {
                // Return result
                return(browser.SelectedName);
            }
            else
            {
                // Cancelled
                return(select);
            }
        }