refactor: 将Framework库和RT、UI放在同一个解决方案中。
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
namespace Sicentury.Core.EventArgs
|
||||
{
|
||||
public class ProgressUpdatingEventArgs : System.EventArgs
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
public ProgressUpdatingEventArgs(int currentProgress, int totalProgress, string message)
|
||||
{
|
||||
CurrentProgress = currentProgress;
|
||||
TotalProgress = totalProgress;
|
||||
Message = message;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properites
|
||||
|
||||
/// <summary>
|
||||
/// 总进度。
|
||||
/// </summary>
|
||||
public int TotalProgress { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 当前进度。
|
||||
/// </summary>
|
||||
public int CurrentProgress { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 消息。
|
||||
/// </summary>
|
||||
public string Message { get; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,38 @@
|
||||
using System.ComponentModel;
|
||||
using Sicentury.Core.Tree;
|
||||
|
||||
namespace Sicentury.Core.EventArgs
|
||||
{
|
||||
public class TreeNodeSelectionChangedEventArgs : CancelEventArgs
|
||||
{
|
||||
#region Constructors
|
||||
|
||||
public TreeNodeSelectionChangedEventArgs(TreeNode source, bool? oldValue, bool? newValue)
|
||||
{
|
||||
Source = source;
|
||||
OldValue = oldValue;
|
||||
NewValue = newValue;
|
||||
}
|
||||
|
||||
#endregion
|
||||
|
||||
#region Properties
|
||||
|
||||
/// <summary>
|
||||
/// 触发事件的<see cref="TreeNode"/>对象。
|
||||
/// </summary>
|
||||
public TreeNode Source { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回IsSelected旧值。
|
||||
/// </summary>
|
||||
public bool? OldValue { get; }
|
||||
|
||||
/// <summary>
|
||||
/// 返回IsSelected新值。
|
||||
/// </summary>
|
||||
public bool? NewValue { get; }
|
||||
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user