protected virtual void OnConfigUpdated(ConfigEventArg e) { var h = ConfigUpdated; if (h != null) h(this, e); }
protected virtual void OnConfigUpdated(ConfigEventArg e) { var h = ConfigUpdated; if (h != null) { h(this, e); } }
private void ConfigUpdated(object sender, ConfigEventArg e) { var con = e.Config as WorkbenchConfig; if (con != null) { WB.Form.DocumentContainer.Refresh(); WB.Form.UpdateWindowHeader(); } }
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); }
private void ConfigUpdated(object sender, ConfigEventArg e) { var cfg = e.Config as FileExplorerConfig; if (cfg != null) BuildTreeView(cfg); }
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); }
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()); } } }