예제 #1
0
        private void ConfigUpdated(object sender, ConfigEventArg e)
        {
            var cfg = e.Config as FileExplorerConfig;

            if (cfg != null)
            {
                BuildTreeView(cfg);
            }
        }
예제 #2
0
        private void ConfigUpdated(object sender, ConfigEventArg e)
        {
            var con = e.Config as WorkbenchConfig;

            if (con != null)
            {
                WB.Form.DocumentContainer.Refresh();
                WB.Form.UpdateWindowHeader();
            }
        }
예제 #3
0
파일: ConsoleView.cs 프로젝트: ngoffee/ela
 private void ConfigUpdated(object sender, ConfigEventArg e)
 {
     if (e.Config is StylesConfig)
     {
         ((StylesConfig)e.Config).Styles["Console"].UpdateStyles(ConControl.Cout.GetScintilla());
     }
     else if (e.Config is ConsoleConfig)
     {
         UpdateConsoleConfig((ConsoleConfig)e.Config);
     }
 }
예제 #4
0
 private void ConfigUpdated(object sender, ConfigEventArg e)
 {
     if (e.Config is StylesConfig)
     {
         ((StylesConfig)e.Config).Styles["Interactive"].UpdateStyles(Con.GetScintilla());
     }
     else if (e.Config is InteractiveConfig)
     {
         UpdateConsoleConfig((InteractiveConfig)e.Config);
     }
 }
예제 #5
0
파일: OutputView.cs 프로젝트: ngoffee/ela
 private void ConfigUpdated(object sender, ConfigEventArg e)
 {
     if (e.Config is StylesConfig)
     {
         var c = (StylesConfig)e.Config;
         c.Styles["Output"].UpdateStyles(sci);
         sci.RestyleDocument();
     }
     else if (e.Config is OutputConfig)
     {
         UpdateOutputConfig((OutputConfig)e.Config);
     }
 }
예제 #6
0
        private void ConfigUpdated(object sender, ConfigEventArg e)
        {
            if (e.Config is StylesConfig)
            {
                var con = (StylesConfig)e.Config;
                con.Styles[editorKey].UpdateStyles(sci);
            }
            else if (e.Config is TextEditorsConfig)
            {
                var con = (TextEditorsConfig)e.Config;
                var c   = con.Configs[editorKey];
                UpdateTextEditorSettings(c);
            }

            ConfigUpdated(e.Config);
        }
예제 #7
0
        private void ConfigUpdated(object sender, ConfigEventArg e)
        {
            if (e.Config is ElaObjectConfig)
            {
                var doc = App.GetService <IDocumentService>().GetActiveDocument() as ObjectFileDocument;

                if (doc != null)
                {
                    BuildTree(doc);
                    DisplayCaption(doc);

                    if (((ElaObjectConfig)e.Config).ExpandAllNodes)
                    {
                        doc.Presentation.Nodes.OfType <TreeNode>().ForEach(n => n.Expand());
                    }
                }
            }
        }