Example #1
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();
   }
 }
Example #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();
            }
        }
        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);
            }
        }
Example #4
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);
   }
 }