コード例 #1
0
        private void OnBrowserClosed(object sender, BrowserEventArgs e)
        {
            DeviceBrowserController browser = Module.GetBrowserController();

            browser.BrowserClosed           -= OnBrowserClosed;
            browser.BrowserSelectionChanged -= OnBrowserSelectionChanged;
            Module.AllowPointerSelection(true);
            State.Browsing = false;
        }
コード例 #2
0
        public void Initialize()
        {
            RegisterRemoteID("browser");
            InitializeColumns();
            SetVisible(false);

            browserEventArgs     = new BrowserEventArgs();
            State.SelectedResult = "";
        }
コード例 #3
0
        private void OnBrowserSelectionChanged(object sender, BrowserEventArgs e)
        {
            State.ModuleName = e.SelectedResult;
            soundModuleEventArgs.ModuleName = State.ModuleName;

            if (!State.ModuleLoaded)
            {
                State.ModuleLoaded = true;
                //TODO: Make module glow brighter indicate some sound has been loaded
            }

            if (ModuleNameChanged != null)
            {
                ModuleNameChanged(this, soundModuleEventArgs);
            }
        }