Пример #1
0
 /// <summary>
 /// Invokes the hyperlink editor for the selected objects.
 /// </summary>
 /// <returns><b>true</b> if editor was closed by the OK button.</returns>
 public bool InvokeHyperlinkEditor()
 {
     using (HyperlinkEditorForm form = new HyperlinkEditorForm())
     {
         form.ReportComponent = First;
         if (form.ShowDialog() == DialogResult.OK)
         {
             SetHyperlink(form.Hyperlink, form.ModifyAppearance, true);
             return(true);
         }
     }
     return(false);
 }
Пример #2
0
        private void miHyperlink_Click(object sender, EventArgs e)
        {
            using (HyperlinkEditorForm form = new HyperlinkEditorForm())
            {
                form.ReportComponent = Cell;
                if (Element == MatrixElement.Cell)
                {
                    form.IsMatrixHyperlink = true;
                }

                if (form.ShowDialog() == DialogResult.OK)
                {
                    SelectedReportComponents components = new SelectedReportComponents(Designer);
                    components.Update();
                    components.SetHyperlink(form.Hyperlink, form.ModifyAppearance, false);
                    Change();
                }
            }
        }