示例#1
0
 private void okButton_Click(object sender, EventArgs e)
 {
     if (solidRadioButton.Checked)
     {
         filler = new Filler2(FromLabelNud(solidColorLabel, solidAlphaNud));
     }
     else if (hatchRadioButton.Checked)
     {
         filler = new Filler2(hatchComboBox.SelectedHatchStyle,
                              FromLabelNud(hatchColorLabel, hatchAlphaNud),
                              FromLabelNud(backColorLabel, backAlphaNud));
     }
     else if (gradientRadioButton.Checked)
     {
         filler = new Filler2(gradientEditor.Blend);
     }
     else
     {
         filler = Filler2.Empty();
     }
     DialogResult = DialogResult.OK;
 }
示例#2
0
 /// <summary>
 ///		Initializes a new instance of <c>Filler2EditorDialog</c> using an empty <c>Filler2</c>
 ///		and positioned beneath the specified control.
 /// </summary>
 /// <param name="c">Control beneath which the dialog should be placed.</param>
 public Filler2EditorDialog(Control c) : this(Filler2.Empty(), c)
 {
 }
示例#3
0
 /// <summary>
 ///		Initializes a new instance of <c>Filler2EditorDialog</c> using an empty <c>Filler2</c>
 ///     at the default window position.
 /// </summary>
 public Filler2EditorDialog() : this(Filler2.Empty())
 {
 }