protected void BitmapContainer_OnFieldChanged(object sender, FieldChangedEventArgs e) { if (sender.Equals(this)) { if (e.Field.FieldType == FieldType.SHADOW) { ChangeShadowField(); } } }
protected void ObfuscateContainer_OnFieldChanged(object sender, FieldChangedEventArgs e) { if(sender.Equals(this)) { if(e.Field.FieldType == FieldType.PREPARED_FILTER_OBFUSCATE) { ConfigurePreparedFilters(); } } }
protected void HighlightContainer_OnFieldChanged(object sender, FieldChangedEventArgs e) { if(sender.Equals(this)) { if (e.Field.FieldType == FieldType.PREPARED_FILTER_HIGHLIGHT) { ConfigurePreparedFilters(); } } }
void TextContainer_FieldChanged(object sender, FieldChangedEventArgs e) { if (textBox.Visible) { UpdateTextBoxFormat(); textBox.Invalidate(); } else { UpdateFont(); //Invalidate(); } font.Dispose(); font = null; fontInvalidated = true; }
/// <summary> /// Handle the field changed event, this should invalidate the correct bounds (e.g. when shadow comes or goes more pixels!) /// </summary> /// <param name="sender"></param> /// <param name="e"></param> public void HandleFieldChanged(object sender, FieldChangedEventArgs e) { LOG.DebugFormat("Field {0} changed", e.Field.FieldType); if (e.Field.FieldType == FieldType.SHADOW) { accountForShadowChange = true; } Invalidate(); }
void FieldAggregatorFieldChanged(object sender, FieldChangedEventArgs e) { // in addition to selection, deselection of elements, we need to // refresh toolbar if prepared filter mode is changed if (e.Field.FieldType == FieldType.PREPARED_FILTER_HIGHLIGHT) { refreshFieldControls(); } }
private void TextContainer_FieldChanged(object sender, FieldChangedEventArgs e) { if (_textBox.Visible) { _textBox.Invalidate(); } // Only dispose the font, and re-create it, when a font field has changed. if (e.Field.FieldType.Name.StartsWith("FONT")) { _font.Dispose(); _font = null; UpdateFormat(); } UpdateTextBoxFormat(); if (_textBox.Visible) { _textBox.Invalidate(); } }
protected void OnFieldChanged(object sender, FieldChangedEventArgs e) { if (fieldChanged != null) { fieldChanged(sender, e); } }
public void element_FieldChanged(object sender, FieldChangedEventArgs e) { selectedElements.HandleFieldChangedEvent(sender, e); }
protected void OnFieldChanged(object sender, FieldChangedEventArgs e) { _fieldChanged?.Invoke(sender, e); }