示例#1
0
 private void buttonColor_Click(object sender, EventArgs e)
 {
     using (var colorChooser = new ColorChooser { Color = panelPaletteColor.BackColor, ShowAlpha = true })
     {
         if (colorChooser.ShowDialog() == DialogResult.OK)
         {
             panelPaletteColor.BackColor = colorChooser.Color;
         }
     }
 }
 /// <summary>
 /// The panel full frame background_ click.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void panelFullFrameBackground_Click(object sender, EventArgs e)
 {
     using (var colorChooser = new ColorChooser { Color = this.panelFullFrameBackground.BackColor, Text = Configuration.Settings.Language.ExportPngXml.ChooseBackgroundColor })
     {
         if (colorChooser.ShowDialog() == DialogResult.OK)
         {
             this.panelFullFrameBackground.BackColor = colorChooser.Color;
             this.subtitleListView1_SelectedIndexChanged(null, null);
         }
     }
 }
 /// <summary>
 /// The button shadow color_ click.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void buttonShadowColor_Click(object sender, EventArgs e)
 {
     using (var colorChooser = new ColorChooser { Color = this.panelShadowColor.BackColor })
     {
         if (colorChooser.ShowDialog() == DialogResult.OK)
         {
             this.panelShadowColor.BackColor = colorChooser.Color;
             this.subtitleListView1_SelectedIndexChanged(null, null);
             this.numericUpDownShadowTransparency.Value = colorChooser.Color.A;
         }
     }
 }
 /// <summary>
 /// The button border color_ click.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void buttonBorderColor_Click(object sender, EventArgs e)
 {
     using (var colorChooser = new ColorChooser { Color = this.panelBorderColor.BackColor })
     {
         if (colorChooser.ShowDialog() == DialogResult.OK)
         {
             this.panelBorderColor.BackColor = colorChooser.Color;
             this.subtitleListView1_SelectedIndexChanged(null, null);
         }
     }
 }
 /// <summary>
 /// The button color_ click.
 /// </summary>
 /// <param name="sender">
 /// The sender.
 /// </param>
 /// <param name="e">
 /// The e.
 /// </param>
 private void buttonColor_Click(object sender, EventArgs e)
 {
     bool showAlpha = this._exportType == "FAB" || this._exportType == "BDNXML";
     using (var colorChooser = new ColorChooser { Color = this.panelColor.BackColor, ShowAlpha = showAlpha })
     {
         if (colorChooser.ShowDialog() == DialogResult.OK)
         {
             this.panelColor.BackColor = colorChooser.Color;
             this.subtitleListView1_SelectedIndexChanged(null, null);
         }
     }
 }
示例#6
0
 private void buttonColor_Click(object sender, EventArgs e)
 {
     ColorChooser colorChooser = new ColorChooser { Color = panelColor.BackColor, ShowAlpha = false };
     if (colorChooser.ShowDialog() == DialogResult.OK)
     {
         panelColor.BackColor = colorChooser.Color;
         subtitleListView1_SelectedIndexChanged(null, null);
     }
 }