전자실메일양식 통일 및 정리 작업
This commit is contained in:
@@ -1,41 +0,0 @@
|
||||
using System.Drawing;
|
||||
using Microsoft.VisualBasic;
|
||||
using YARTE.Properties;
|
||||
|
||||
namespace YARTE.UI.Buttons
|
||||
{
|
||||
public class InsertLinkedImageButton : IHTMLEditorButton
|
||||
{
|
||||
public void IconClicked(HTMLEditorButtonArgs args)
|
||||
{
|
||||
var x = args.Editor.Location.X + 10;
|
||||
var y = args.Editor.Location.Y + 10;
|
||||
|
||||
var url = Interaction.InputBox("Please enter an image url", "URL", null, x, y);
|
||||
if (!string.IsNullOrEmpty(url))
|
||||
{
|
||||
args.Document.ExecCommand("InsertImage", false, url);
|
||||
}
|
||||
}
|
||||
|
||||
public Image IconImage
|
||||
{
|
||||
get { return Resources.insertimage; }
|
||||
}
|
||||
|
||||
public string IconName
|
||||
{
|
||||
get { return "Linked image"; }
|
||||
}
|
||||
|
||||
public string IconTooltip
|
||||
{
|
||||
get { return "Linked image"; }
|
||||
}
|
||||
|
||||
public string CommandIdentifier
|
||||
{
|
||||
get { return "InsertImage"; }
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user