private void tree_AfterSelect(object sender, Infragistics.Win.UltraWinTree.SelectEventArgs e) { if (sender == this.treeFormats) { if (this.treeFormats.SelectedNodes.Count > 0) { this.formatPreviewControl1.PreviewFormatMask = ((FormatInfo)this.treeFormats.SelectedNodes[0].ListObject).Mask; } } else if (sender == this.treeFontFamily) { if (this.treeFontFamily.SelectedNodes.Count > 0) { this.fontPreviewControl1.PreviewFontFamily = this.treeFontFamily.SelectedNodes[0].Key; } this.EvaluateIsNormalFont(); } else if (sender == this.treeFontStyle) { if (this.treeFontStyle.SelectedNodes.Count > 0) { this.fontPreviewControl1.PreviewFontStyle = (FontStylesCustom)this.treeFontStyle.SelectedNodes[0].ListObject; } this.EvaluateIsNormalFont(); } else if (sender == this.treeFontSize) { if (this.treeFontSize.SelectedNodes.Count > 0) { this.fontPreviewControl1.PreviewFontSize = (int)this.treeFontSize.SelectedNodes[0].Cells["DataValue"].Value; } this.EvaluateIsNormalFont(); } if (this.recordPropertiesChanges == false) { return; } if (sender == this.treeFontFamily) { this.changedProperties.Add(FontNamePropertyName); } else if (sender == this.treeFontStyle) { this.changedProperties.Add(FontStylePropertyName); } else if (sender == this.treeFontSize) { this.changedProperties.Add(FontSizePropertyName); } else if (sender == this.treeFormats) { this.changedProperties.Add(FormatPropertyName); } }