Esempio n. 1
0
        private void InitializeControl()
        {
            _control     = new InteractiveControl();
            _control.App = App;

            Con.Styling     = true;
            Con.HistorySize = 20;
            Con.Header      = "Ela Interactive Console";
            Con.Prompt      = "``ela";
            Con.ClearAll();
            Con.Submit       += Submit;
            Con.SessionReset += SessionReset;

            var srv = App.GetService <IStylesConfigService>();

            srv.EnumerateStyleItems("Interactive").UpdateStyles(Con.GetScintilla());
            UpdateConsoleConfig(App.Config <InteractiveConfig>());

            App.GetService <IConfigService>().ConfigUpdated += new EventHandler <ConfigEventArg>(ConfigUpdated);
        }