Ejemplo n.º 1
0
    ///////////////////////////////////////////////////////////////////////////////
    // Eventhandler                                                              //
    ///////////////////////////////////////////////////////////////////////////////
    #region EVENTS

    ///////////////////////////////////////////////////////////////////////////////
    // Eventhandler for UI, Menu, Buttons, Toolbars etc.                         //
    ///////////////////////////////////////////////////////////////////////////////
    #region WINDOWSEVENTHANDLER
    #endregion //WINDOWSEVENTHANDLER

    ///////////////////////////////////////////////////////////////////////////////
    // Eventhandler for Custom Defined Events                                    //
    ///////////////////////////////////////////////////////////////////////////////
    #region CUSTOMEVENTHANDLER

    /// <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
 /// <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);
 }
Ejemplo n.º 4
0
 /// <summary>
 /// The <see cref="OgamaControls.Dialogs.BrushStyleDlg.BrushStyleChanged"/>
 ///   event handler for the <see cref="OgamaControls.Dialogs.BrushStyleDlg"/>.
 ///   Updates picture elements by calling the pictures brush changed event handler.
 /// </summary>
 /// <param name="sender">
 /// Source of the event
 /// </param>
 /// <param name="e">
 /// A <see cref="BrushChangedEventArgs"/> with brush to change.
 /// </param>
 private void dlgBubbleStyle_BrushStyleChanged(object sender, BrushChangedEventArgs e)
 {
   this.UpdateStatisticProperties(
     this.aoiPicture.BubblePen, 
     e.Brush, 
     this.aoiPicture.BubbleFont, 
     this.aoiPicture.BubbleFontColor, 
     this.aoiPicture.BubbleTextAlignment, 
     VGStyleGroup.AOI_STATISTICS_BUBBLE);
 }