private void OnInsertBackgroundImage(object sender, EventArgs e) { var dialog = new MSDN.Html.Editor.EnterImageForm(); dialog.EnableHrefText = false; dialog.EnableAlignment = false; dialog.EnableImageWidth = false; dialog.StartPosition = FormStartPosition.CenterParent; dialog.Icon = HTMLReportExporter.Properties.Resources.HTMLReporter; dialog.ShowIcon = true; dialog.ImageLink = m_Template.BackImage; dialog.Text = this.toolStripInsertImage.ToolTipText; m_Trans.Translate(dialog, dialog.Tooltip); dialog.BrowseTitle = m_Trans.Translate(dialog.BrowseTitle); dialog.BrowseFilter = m_Trans.Translate(dialog.BrowseFilter); if (dialog.ShowDialog() == DialogResult.OK) { m_Template.BackImage = dialog.ImageLink; UpdateControls(); } }
private void OnInsertBackgroundImage(object sender, EventArgs e) { var dialog = new MSDN.Html.Editor.EnterImageForm(); dialog.EnableHrefText = false; dialog.EnableAlignment = false; dialog.EnableImageWidth = false; dialog.StartPosition = FormStartPosition.CenterParent; if (dialog.ShowDialog() == DialogResult.OK) { m_Template.BackImage = dialog.ImageLink; UpdateControls(); } }