Inheritance: System.EventArgs
        private void Ok_Click(object sender, RoutedEventArgs e)
        {
            Uri uri;

            if (Uri.TryCreate(UrlTextBox.Text, UriKind.Absolute, out uri))
            {
                if (HeightTextBox.Value != null && WidthTextBox.Value != null && InsertClicked != null)
                {
                    var args = new InsertImageEventArgs
                    {
                        Url    = ImageInline.UriSource,
                        Height = (int)ImageInline.Height,
                        Width  = (int)ImageInline.Width
                    };
                    InsertClicked(sender, args);
                }
                else
                {
                    SuperMessageBoxService.ShowError("Error", "Please specify width and height for the image.");
                }
            }
            else
            {
                SuperMessageBoxService.ShowError("Error", "Invalid URL entered");
            }
            Close();
        }
 private void Ok_Click(object sender, RoutedEventArgs e)
 {
     Uri uri;
     if (Uri.TryCreate(UrlTextBox.Text, UriKind.Absolute, out uri))
     {
         if (HeightTextBox.Value != null && WidthTextBox.Value != null && InsertClicked != null)
         {
             var args = new InsertImageEventArgs
             {
                 Url = ImageInline.UriSource,
                 Height = (int)ImageInline.Height,
                 Width = (int)ImageInline.Width
             };
             InsertClicked(sender, args);
         }
         else
         {
             SuperMessageBoxService.ShowError("Error", "Please specify width and height for the image.");
         }
     }
     else
     {
         SuperMessageBoxService.ShowError("Error","Invalid URL entered");
     }
     Close();
 }
 private void InsertPictureDialogOnInsertClicked(object sender, InsertImageEventArgs e)
 {
     var image = new ImageInline();
     image.UriSource = e.Url;
     image.Extension = Path.GetExtension(e.Url.ToString());
     image.Width = e.Width;
     image.Height = e.Height;
     // Insert the image at current caret position.
     RadRichTextBox.InsertInline(image);
 }