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);
    }
}
