Esempio n. 1
0
 /// <summary>
 /// Handles the Click event of the okButton control.
 /// </summary>
 /// <param name="sender">The source of the event.</param>
 /// <param name="e">The <see cref="EventArgs"/> instance containing the event data.</param>
 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;
 }
Esempio n. 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)
 {
 }
Esempio n. 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())
 {
 }