Example #1
0
        public override void showBrowser <T>(Browser browser, SendResult <T> resultCallback)
        {
            switch (browser.Hint)
            {
            case Browser.DisplayHint.Images:
                ImageBrowserWindow <T> .GetInput(browser, true, resultCallback, editorController.ResourceProvider);

                break;

            default:
                base.showBrowser <T>(browser, resultCallback);
                break;
            }
        }
        public override void showBrowser <T>(Browser browser, SendResult <T> resultCallback)
        {
            switch (browser.Hint)
            {
            case Browser.DisplayHint.Images:
                ImageBrowserWindow <T> .GetInput(browser, true, resultCallback, editorController.ResourceProvider, importFile);

                break;

            case Browser.DisplayHint.Sounds:
                BrowserWindow <T> .GetInput(MainWindow.Instance, browser, true, resultCallback, importFile, "Choose Sound", "Ogg Vorbis Files (.ogg)|*.ogg", ".ogg");

                break;

            default:
                base.showBrowser <T>(browser, resultCallback);
                break;
            }
        }