//---------------------------------------------------------------------- public override void Close() { TitleLabel.Text = ""; MessageLabel.Text = ""; mConfirmButton.Text = i18n.Common.Confirm; mCloseButton.Text = i18n.Common.Close; ShowSpinningWheel = false; mCloseCallback = null; mConfirmCallback = null; ContentGroup.Clear(); base.Close(); }
//---------------------------------------------------------------------- public void Setup(string _strTitleText, string _strMessageText, string _strCloseButtonCaption, bool _bShowSpinningWheel = false, Action _closeCallback = null) { TitleLabel.Text = _strTitleText; if (_strMessageText != null) { MessageLabel.Text = _strMessageText; ContentGroup.Clear(); ContentGroup.AddChild(MessageLabel); } mCloseButton.Text = _strCloseButtonCaption; ShowSpinningWheel = _bShowSpinningWheel; mActionsGroup.Clear(); mActionsGroup.AddChild(mCloseButton); mCloseCallback = _closeCallback; }
//---------------------------------------------------------------------- public void Setup(string _strTitleText, string _strMessageText, string _strConfirmButtonCaption, string _strCloseButtonCaption, Action <bool> _confirmCallback = null) { TitleLabel.Text = _strTitleText; if (_strMessageText != null) { MessageLabel.Text = _strMessageText; ContentGroup.Clear(); ContentGroup.AddChild(MessageLabel); } mConfirmButton.Text = _strConfirmButtonCaption; mCloseButton.Text = _strCloseButtonCaption; mActionsGroup.Clear(); mActionsGroup.AddChild(mConfirmButton); mActionsGroup.AddChild(mCloseButton); mConfirmCallback = _confirmCallback; }