예제 #1
0
		protected void BitmapContainer_OnFieldChanged(object sender, FieldChangedEventArgs e) {
			if (sender.Equals(this)) {
				if (e.Field.FieldType == FieldType.SHADOW) {
					ChangeShadowField();
				}
			}
		}
예제 #2
0
		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;
 }
예제 #5
0
		/// <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();
		}
예제 #6
0
 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();
      }
 }
예제 #7
0
        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);
     }
 }
예제 #9
0
 public void element_FieldChanged(object sender, FieldChangedEventArgs e)
 {
     selectedElements.HandleFieldChangedEvent(sender, e);
 }
예제 #10
0
 protected void OnFieldChanged(object sender, FieldChangedEventArgs e)
 {
     _fieldChanged?.Invoke(sender, e);
 }