示例#1
0
 private void _imageUrl_Paste(object sender, TextBoxWithPaste.PasteEventArgs eventArgs)
 {
     //special case...image on clipboard
     if (_webImageUrl.Text.Trim() == String.Empty)
     {
         DataObjectMeister dataObject = new DataObjectMeister(Clipboard.GetDataObject());
         if (dataObject.HTMLData != null && dataObject.HTMLData.OnlyImagePath != null)
         {
             _webImageUrl.Text = dataObject.HTMLData.OnlyImagePath;
         }
     }
     PopulatePreviewBox();
     _webImageUrl.SelectAll();
 }
 private void VideoCode_Enter(object sender, EventArgs e)
 {
     videoCode.SelectAll();
 }