// Licensed to the .NET Foundation under one or more agreements. // The .NET Foundation licenses this file to you under the MIT license. // See the LICENSE file in the project root for more information. using System; using System.Collections.Generic; using System.Text; using System.Threading.Tasks; namespace AntDesign { /// /// Component reference with Ok and Cancel method /// public interface IOkCancelRef : IFeedbackRef { /// /// invoked when cancel button or closer click /// public Func OnCancel { get; set; } /// /// invoked when Ok button click /// public Func OnOk { get; set; } /// /// Trigger Ok button click /// /// public Task OkAsync(ModalClosingEventArgs e); /// /// Trigger Cancel button click /// /// public Task CancelAsync(ModalClosingEventArgs e); } /// /// /// /// public interface IOkCancelRef : IFeedbackRef { /// /// invoke when cancel button or closer click /// public Func OnCancel { get; set; } /// /// invoke when Ok button click /// public Func OnOk { get; set; } /// /// Trigger Ok button click /// /// public Task OkAsync(TResult result); /// /// Trigger Cancel button click /// /// public Task CancelAsync(TResult result); } }