private AlertOption(AlertOptionType alertOptionType, string text, Action callback) { Throw.IfArgumentNullOrWhitespace(text, nameof(text)); Throw.IfArgumentNull(callback, nameof(callback)); this.AlertOptionType = alertOptionType; this.Text = text; this.Callback = callback; }
public void ShowAlert(string alert, AlertOptionType options, Action<bool> resultEvent) { this.RemoveAllTip(); this.HideLoading(); AlertParam alertParam = new AlertParam() { Alert = alert,Option = options }; alertParam.ResultEvent += resultEvent; this.OpenPanel(UIPanelType.AlertPopupPanel, new PanelParam() { Alert = alertParam }); }
public AlertOption(AlertOptionType type, object value) { Type = type; Value = value; }
public AlertOption(AlertOptionType type, object value) { Type = type; Value = value; }