/// <summary> /// Raises the <see cref="BrushStyleChanged"/> event by invoking the delegates. /// </summary> /// <param name="e"><see cref="BrushChangedEventArgs"/> event arguments</param>. public void OnBrushStyleChanged(BrushChangedEventArgs e) { if (this.BrushStyleChanged != null) { this.BrushStyleChanged(this, e); } }
/// <summary> /// The protected OnPenStyleChanged method raises the progress event by invoking /// the delegates /// </summary> /// <param name="e">A <see cref="BrushChangedEventArgs"/> with the event arguments</param> protected virtual void OnBrushStyleChanged(BrushChangedEventArgs e) { if (BrushStyleChanged != null) { // Invokes the delegates. BrushStyleChanged(this, e); } }
private void ColorPicker_BrushChanged(object sender, BrushChangedEventArgs args) { StackTrace st = new StackTrace(); log.WriteToLog(st.GetFrame(1).GetMethod().Name, LogMsgType.Notification, "This is a test: \"{0}\"", "test2"); return; //tabColorPicker.Background = args.SelectedBrush; //tabColorPicker.UpdateLayout(); }
private void colorPicker_SelectedBrushChanged(object sender, BrushChangedEventArgs args) { UpdateSelectedBrushChanged(); }
/// <summary> /// Wires the event from the underlying control to the listeners. /// </summary> /// <param name="sender">The source of the event.</param> /// <param name="e">A <see cref="ShapeEventArgs"/> with the new cursor.</param> void brushSelectControl_BrushStyleChanged(object sender, BrushChangedEventArgs e) { OnBrushStyleChanged(e); }