コード例 #1
0
ファイル: BrushStyleDlg.cs プロジェクト: DeSciL/Ogama
    ///////////////////////////////////////////////////////////////////////////////
    // 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);
      }
    }
コード例 #2
0
ファイル: BrushStyleArea.cs プロジェクト: DeSciL/Ogama
 /// <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);
   }
 }
コード例 #3
0
ファイル: BrushStyleDlg.cs プロジェクト: DeSciL/Ogama
 /// <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);
 }
コード例 #4
0
ファイル: AOIModule.cs プロジェクト: DeSciL/Ogama
 /// <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);
 }