コード例 #1
0
 private void agButton_Click(object sender, EventArgs e)
 {
     if (GradientDialog.GradientChanged != null)
     {
         GradientDialog.GradientChanged(this, new GradientEventArgs("A", -1, GradientDialog._blends[0], 0, 0, 0));
     }
 }
コード例 #2
0
 private void GradientDialog_FormClosing(object sender, FormClosingEventArgs e)
 {
     if (GradientDialog.GradientChanged != null)
     {
         GradientDialog.GradientChanged(this, new GradientEventArgs(this._save ? "save" : "undo", 0, null, 0, 0, 0));
     }
 }
コード例 #3
0
 private void signalGradientChanged()
 {
     this.okButton.Enabled = true;
     if (base.Visible && GradientDialog.GradientChanged != null)
     {
         int num = GradientDialog._blendIndex - 1;
         GradientDialog._blends[num]       = GradientDialog._form.GetColorBlend();
         GradientDialog._traceColors[num]  = this.traceButton.BackColor.ToArgb();
         GradientDialog._backgrounds[num]  = this.backgroundButton.BackColor.ToArgb();
         GradientDialog._spectrumFill[num] = GradientDialog._form.cmbFill.SelectedIndex;
         string text = this.Text.Substring(0, 1);
         if (text == " ")
         {
             text = "S";
         }
         GradientDialog.GradientChanged(this, new GradientEventArgs(text, GradientDialog._blendIndex, GradientDialog._blends[num], GradientDialog._backgrounds[num], GradientDialog._traceColors[num], GradientDialog._spectrumFill[num]));
     }
 }