public void OnMoreClicked(object sender, EventArgs e)
                {
                    ColorChooser dlg = new ColorChooser();

                    dlg.Color         = SelectedColor;
                    dlg.StartPosition = FormStartPosition.CenterParent;
                    if (dlg.ShowDialog(this) == DialogResult.OK)
                    {
                        selectedColor = dlg.Color;
                    }
                    ((ToolStripDropDown)Parent).Close();
                }
    private void mpButtonOnLaterColor_Click(object sender, EventArgs e)
    {
      if (listViewGuideGenres.SelectedItems.Count > 0)
      {
        ColorChooser dlg = new ColorChooser();
        dlg.StartPosition = FormStartPosition.CenterParent;
        dlg.Color = listViewGuideGenres.SelectedItems[0].SubItems[2].BackColor;
        if (dlg.ShowDialog() == DialogResult.OK)
        {
          // Update the color map.
          _genreColorsOnLater[listViewGuideGenres.SelectedItems[0].Text] = dlg.Color.ToArgb();

          // Update the control.
          listViewGuideGenres.SelectedItems[0].SubItems[2].BackColor = dlg.Color;
          listViewGuideGenres.SelectedItems[0].SubItems[2].Text = String.Format("{0:X8}", dlg.Color.ToArgb());
        }
      }
    }
Example #3
0
 public void OnMoreClicked(object sender, EventArgs e)
 {
     ColorChooser dlg = new ColorChooser();
     dlg.Color = SelectedColor;
     dlg.StartPosition = FormStartPosition.CenterParent;
     if (dlg.ShowDialog(this) == DialogResult.OK)
     {
         selectedColor = dlg.Color;
     }
     ((ToolStripDropDown)Parent).Close();
 }