Inheritance: System.Windows.Forms.Form, IMediaSelectionDialog
Beispiel #1
0
 /// <summary>
 /// Opens a media selection dialog for the user to insert an image file.
 /// </summary>
 private void btnImage_Click(object sender, EventArgs e)
 {
     var msd = new MediaSelectionDialog(_model, ContentType.Image);
     if (msd.ShowDialog() == DialogResult.OK)
     {
         Debug.Assert(HTMLEditor.Document != null, "HTMLEditor.Document != null");
         HTMLEditor.Document.ExecCommand("InsertImage", false, _model.ImageUrl.Replace(Resources.ContentDirectory, ""));
     }
 }