Ejemplo n.º 1
0
 /// <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);
     }
 }
Ejemplo n.º 2
0
 /// <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);
     }
 }
Ejemplo n.º 3
0
        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();
        }
Ejemplo n.º 4
0
 private void colorPicker_SelectedBrushChanged(object sender, BrushChangedEventArgs args)
 {
     UpdateSelectedBrushChanged();
 }
Ejemplo n.º 5
0
 /// <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);
 }