public DigitsOptionPanel(DigitsNode parent) : base(parent) { SetupFromXmlFile(System.IO.Path.Combine(PropertyService.DataDirectory, @"resources\panels\HighlightingEditor\Digits.xfrm")); button = (Button)ControlDictionary["button"]; button.Click += new EventHandler(EditButtonClicked); sampleLabel = (Label)ControlDictionary["sampleLabel"]; }
public override void LoadSettings() { DigitsNode node = (DigitsNode)parentNode; IProperties properties = ((IProperties)PropertyService.GetProperty("NetFocus.DataStructure.TextEditor.Document.DefaultDocumentProperties", new DefaultProperties())); sampleLabel.Font = ParseFont(properties.GetProperty("DefaultFont", new Font("Courier New", 10).ToString())); color = node.HighlightColor; PreviewUpdate(sampleLabel, color); }
public override void StoreSettings() { DigitsNode node = (DigitsNode)parentNode; node.HighlightColor = color; }