private void BackgroundColor_Click(object sender, EventArgs e) { PopupColorPicker picker = new PopupColorPicker(); picker.Location = Cursor.Position; picker.Color = TextBackgroundColor; if (picker.ShowDialog() == DialogResult.OK) { TextBackgroundColor = picker.Color; textBox.BackColor = Color.FromArgb(TextBackgroundColor.R, TextBackgroundColor.G, TextBackgroundColor.B); } }
private void BackgroundColor_Click(object sender, EventArgs e) { var picker = new PopupColorPicker(); picker.Location = Cursor.Position; picker.Color = TextBackgroundColor; if (picker.ShowDialog() == DialogResult.OK) { TextBackgroundColor = picker.Color; textBox.BackColor = Color.FromArgb(TextBackgroundColor.R, TextBackgroundColor.G, TextBackgroundColor.B); } }
private void RepresentativeColor_Click(object sender, EventArgs e) { var picker = new PopupColorPicker(); picker.Location = Cursor.Position; picker.Color = frame.RepresentativeColor; if (picker.ShowDialog() == DialogResult.OK) { frame.RepresentativeColor = picker.Color; } Refresh(); }
private void RepresentativeColor_Click(object sender, EventArgs e) { PopupColorPicker picker = new PopupColorPicker(); picker.Location = Cursor.Position; picker.Color = frame.RepresentativeColor; if (picker.ShowDialog() == DialogResult.OK) { frame.RepresentativeColor = picker.Color; } this.Refresh(); }
private void domainList_DoubleClick(object sender, EventArgs e) { DomainValue val = (DomainValue)domainList.SelectedItem; PopupColorPicker picker = new PopupColorPicker(); picker.Location = Cursor.Position; picker.Color = Color.FromArgb(val.MarkerIndex); if (picker.ShowDialog() == DialogResult.OK) { val.MarkerIndex = picker.Color.ToArgb(); } domainList.Refresh(); }
private void domainList_DoubleClick(object sender, EventArgs e) { var val = (DomainValue)domainList.SelectedItem; var picker = new PopupColorPicker(); picker.Location = Cursor.Position; picker.Color = Color.FromArgb(val.MarkerIndex); if (picker.ShowDialog() == DialogResult.OK) { val.MarkerIndex = picker.Color.ToArgb(); } domainList.Refresh(); }
void pickColor_Click(object sender, EventArgs e) { PopupColorPicker picker = new PopupColorPicker(); picker.Location = Cursor.Position; picker.Color = Focus.Color; if (picker.ShowDialog() == DialogResult.OK) { //todo localize Undo.Push(new UndoTourStopChange(Language.GetLocalizedText(543, "Edit Color"), tour)); foreach (Overlay overlay in selection.SelectionSet) { overlay.Color = picker.Color; } } }
void colorMenu_Click(object sender, EventArgs e) { Layer layer = (Layer)layerTree.SelectedNode.Tag; PopupColorPicker picker = new PopupColorPicker(); picker.Location = Cursor.Position; picker.Color = layer.Color; if (picker.ShowDialog() == DialogResult.OK) { layer.Color = picker.Color; } }
void ColorMenu_MenuItemSelected(LayerUIMenuItem item) { var overlay = item.Tag as SkyOverlay; var picker = new PopupColorPicker(); picker.Location = Cursor.Position; picker.Color = overlay.Color; if (picker.ShowDialog() == DialogResult.OK) { overlay.Color = picker.Color; } }
private void ColorPicker_Click(object sender, EventArgs e) { var picker = new PopupColorPicker(); picker.Location = Cursor.Position; picker.Color = TourEditorUI.GetCurrentColor(); if (picker.ShowDialog() == DialogResult.OK) { TourEditorUI.SetCurrentColor(picker.Color); } }