Esempio n. 1
0
 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();
         }
     }
 }
Esempio n. 2
0
 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();
         }
     }
 }
Esempio n. 3
0
 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();
         }
     }
 }