miniSql

创建
zgc123@gmail.com authored at 11/19/2023 1:40:15 AM
6136600
Tree
0 Parent(s)
Summary: 1 changed files with 77 additions and 0 deletions.
Added +77 -0
Added +77 -0
diff --git a/minisqlquery-master/src/MiniSqlQuery.Core/ICommand.cs b/minisqlquery-master/src/MiniSqlQuery.Core/ICommand.cs
new file mode 100644
index 0000000..a8cdfab
--- /dev/null
+++ b/minisqlquery-master/src/MiniSqlQuery.Core/ICommand.cs
@@ -0,0 +1,77 @@
+#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;
+using System.Windows.Forms;
+
+namespace MiniSqlQuery.Core
+{
+    /// <summary>
+    /// 	Represents a "command", typically a user action such as saving a file or executing a query.
+    /// </summary>
+    public interface ICommand
+    {
+        /// <summary>
+        /// 	Gets a value indicating whether this <see cref = "ICommand" /> is enabled.
+        /// </summary>
+        /// <value><c>true</c> if enabled; otherwise, <c>false</c>.</value>
+        bool Enabled { get; }
+
+        /// <summary>
+        /// Gets or sets the host, typically the button holding the command.
+        /// </summary>
+        /// <value>The host control.</value>
+        object Host { get; set; }
+
+        /// <summary>
+        /// 	Gets the name of the command, used in menus and buttons.
+        /// </summary>
+        /// <value>The name of the command.</value>
+        string Name { get; }
+
+        /// <summary>
+        /// 	Gets or sets a reference to the application services to allow access to the other components.
+        /// </summary>
+        /// <value>A reference to the <see cref = "IApplicationServices" /> instance.</value>
+        IApplicationServices Services { get; set; }
+
+        /// <summary>
+        /// 	Gets or sets a reference to the application settings.
+        /// </summary>
+        /// <value>The application settings.</value>
+        IApplicationSettings Settings { get; set; }
+
+        /// <summary>
+        /// 	Gets the menu shortcut keys for this command (e.g. Keys.F5).
+        /// </summary>
+        /// <value>The shortcut keys for this command.</value>
+        Keys ShortcutKeys { get; }
+
+        /// <summary>
+        /// 	Gets the shortcut key text to be displayed as help.
+        /// </summary>
+        /// <value>The shortcut keys text.</value>
+        string ShortcutKeysText { get; }
+
+        /// <summary>
+        /// 	Gets the "small image" associated with this control (for use on buttons or menu items).
+        /// 	Use null (or Nothing in Visual Basic) if there is no image.
+        /// </summary>
+        /// <value>The small image representing this command (or null for none).</value>
+        Image SmallImage { get; }
+
+        /// <summary>
+        /// 	Executes the command based on the current settings.
+        /// </summary>
+        /// <remarks>
+        /// 	If a commands <see cref = "Enabled" /> value is false, a call to <see cref = "Execute" /> should have no effect
+        /// 	(and not throw an exception).
+        /// </remarks>
+        void Execute();
+    }
+}
\ No newline at end of file