C00225155-02/C00225155/MegaRobo.C00225155/Common/TipMessageEventArgs.cs

29 lines
742 B
C#
Raw Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace Common
{
public class TipMessageEventArgs:EventArgs
{
// 提示信息
public string Message { get; set; }
// 操作ID用于区分不同的操作
public bool IsCompleted { get; set; }
public TipMessageEventArgs(string message, bool isCompleted)
{
Message = message;
IsCompleted = isCompleted;
}
public delegate void OperationCompletedHandler(object sender, TipMessageEventArgs e);
// 操作进度更新委托
public delegate void OperationProgressHandler(int progress, string message);
}
}