コード例 #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);
     }
 }
コード例 #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);
     }
 }
コード例 #3
0
ファイル: MainWindow.xaml.cs プロジェクト: andidegn/AmdUtil
        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();
        }
コード例 #4
0
 private void colorPicker_SelectedBrushChanged(object sender, BrushChangedEventArgs args)
 {
     UpdateSelectedBrushChanged();
 }
コード例 #5
0
ファイル: BrushStyleDlg.cs プロジェクト: zhjh-stack/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);
 }