using System; using System.Collections.Generic; using System.ComponentModel; using System.Text; using System.Threading.Tasks; namespace AntDesign { public interface IModalTemplate { /// /// Call back when OK button is triggered /// 点击确定按钮时调用,可以重写它来放入自己的逻辑 /// [EditorBrowsable(EditorBrowsableState.Never)] [Obsolete("Please replace it with OnFeedbackOkAsync")] Task OkAsync(ModalClosingEventArgs args); /// /// Call back when Cancel button is triggered /// 点击取消按钮时调用,可以重写它来放入自己的逻辑 /// [EditorBrowsable(EditorBrowsableState.Never)] [Obsolete("Please replace it with OnFeedbackCancelAsync")] Task CancelAsync(ModalClosingEventArgs args); /// /// Call back when OK button is triggered /// 击确定按钮时调用,可以重写它来放入自己的逻辑 /// /// /// Task OnFeedbackOkAsync(ModalClosingEventArgs args); /// /// Call back when Cancel button is triggered /// 点击取消按钮时调用,可以重写它来放入自己的逻辑 /// Task OnFeedbackCancelAsync(ModalClosingEventArgs args); } }