コード例 #1
0
ファイル: BrushControlsGlue.cs プロジェクト: Altaxo/Altaxo
 void EhShowCustomBrushDialog(object sender, EventArgs e)
 {
   BrushAllPropertiesControl ctrl = new BrushAllPropertiesControl();
   ctrl.Brush = this.Brush;
   if (Current.Gui.ShowDialog(ctrl, "Brush properties"))
   {
     this.Brush = ctrl.Brush;
     OnBrushChanged();
   }
 }
コード例 #2
0
        void EhShowCustomBrushDialog(object sender, EventArgs e)
        {
            BrushAllPropertiesControl ctrl = new BrushAllPropertiesControl();

            ctrl.Brush = this.Brush;
            if (Current.Gui.ShowDialog(ctrl, "Brush properties"))
            {
                this.Brush = ctrl.Brush;
                OnBrushChanged();
            }
        }
コード例 #3
0
        void EhShowCustomBrushDialog(object sender, EventArgs e)
        {
            BrushAllPropertiesControl ctrl = new BrushAllPropertiesControl();

            ctrl.Brush = (BrushX)this.Brush.Clone();
            if (Current.Gui.ShowDialog(ctrl, "Brush properties"))
            {
                this.Brush = ctrl.Brush;
                OnSelectedItemChanged(EventArgs.Empty);
                OnSelectedValueChanged(EventArgs.Empty);
                OnSelectionChangeCommitted(EventArgs.Empty);
            }
        }
コード例 #4
0
ファイル: BrushColorComboBox.cs プロジェクト: Altaxo/Altaxo
 void EhShowCustomBrushDialog(object sender, EventArgs e)
 {
   BrushAllPropertiesControl ctrl = new BrushAllPropertiesControl();
   ctrl.Brush = (BrushX)this.Brush.Clone();
   if (Current.Gui.ShowDialog(ctrl, "Brush properties"))
   {
     this.Brush = ctrl.Brush;
     OnSelectedItemChanged(EventArgs.Empty);
     OnSelectedValueChanged(EventArgs.Empty);
     OnSelectionChangeCommitted(EventArgs.Empty);
   }
 }