#region License // Copyright 2005-2019 Paul Kohler (https://github.com/paulkohler/minisqlquery). All rights reserved. // This source code is made available under the terms of the GNU Lesser General Public License v3.0 // https://github.com/paulkohler/minisqlquery/blob/master/LICENSE #endregion using System.Drawing; namespace MiniSqlQuery.Core.Commands { /// /// The show url command. /// public class ShowUrlCommand : CommandBase { /// /// Initializes a new instance of the class. /// /// /// The name of the command. /// /// /// The url of the link to display in a browser. /// /// /// The image to use from the resources. /// public ShowUrlCommand(string name, string url, Image image) : base(name) { Url = url; SmallImage = image; } /// /// Gets or sets Url. /// /// The url. public string Url { get; protected set; } /// /// Execute the command. /// public override void Execute() { Utility.ShowUrl(Url); } } }