Source/ICommand.cs
(开头部分) 27KB这里只显示每个文件的开头 60 行。登录后可以解锁完整代码。
using System;
using System.Text;
using System.ComponentModel;
using System.Drawing;
using System.Collections;
using System.Windows.Forms;
namespace DevComponents.DotNetBar
{
#region ICommand
/// <summary>
/// Defines an interface that represents the Command associated with an BaseItem instance.
/// </summary>
public interface ICommand
{
/// <summary>
/// Executes the command without specifying the source of the command.
/// </summary>
void Execute();
/// <summary>
/// Executes the command and specifies the source of the command.
/// </summary>
void Execute(ICommandSource commandSource);
/// <summary>
/// Executes the code associated with the command.
/// </summary>
event EventHandler Executed;
/// <summary>
/// Provides the opportunity to cancel the execution of the command. This event occurs before the Executed event.
/// </summary>
event CancelEventHandler PreviewExecuted;
/// <summary>
/// Gets or sets the text associated with the items that are using command.
/// </summary>
string Text { get; set; }
/// <summary>
/// Gets or sets the value of Checked property if item associated with the command support it.
/// </summary>
bool Checked { get; set; }
/// <summary>
/// Gets or sets the value of Visible property if item associated with the command support it.
/// </summary>
bool Visible { get; set; }
/// <summary>
/// Gets or sets the value of Image property if item associated with the command support it.
/// </summary>
Image Image { get; set; }
/// <summary>
/// Gets or sets the value of small image (ImageSmall) property if item associated with the command support it.
/// </summary>
Image ImageSmall { get; set; }
/// <summary>
/// Gets or sets the value of Enabled property for items associated with the command.
/// </summary>
bool Enabled { get; set; }
/// <summary>
/// Called when CommandSource is registered for the command.
/// </summary>
/// <param name="source">CommandSource registered.</param>
void CommandSourceRegistered(ICommandSource source);
后面还有 717 行代码,解锁后查看完整代码
24 小时内免费解锁 3 个项目,之后 1 算力/个。 规则说明
AI 解读 AI
登录后可用,每次 10 算力,解读结果公开显示在下面。
还没有人解读过这个文件。