private void btnColor_Click(object sender, EventArgs e) { using (FillEditorForm form = new FillEditorForm()) { form.Fill = Watermark.TextFill; if (form.ShowDialog() == DialogResult.OK) { Watermark.TextFill = form.Fill; UpdateSample(); } } }
private void btnTextColor_Click(object sender, EventArgs e) { if (CurrentStyle == null) { return; } using (FillEditorForm editor = new FillEditorForm()) { editor.Fill = CurrentStyle.TextFill.Clone(); if (editor.ShowDialog() == DialogResult.OK) { foreach (ListViewItem li in lvStyles.SelectedItems) { (li.Tag as Style).TextFill = editor.Fill.Clone(); } RefreshSample(); } } }
private void btnFill_Click(object sender, EventArgs e) { if (CurrentCondition == null) { return; } using (FillEditorForm editor = new FillEditorForm()) { editor.Fill = CurrentCondition.Fill.Clone(); if (editor.ShowDialog() == DialogResult.OK) { foreach (ListViewItem li in lvConditions.SelectedItems) { HighlightCondition c = li.Tag as HighlightCondition; c.Fill = editor.Fill.Clone(); li.ImageIndex = GetImageIndex(c); } RefreshSample(); } } }