protected virtual void Init(MessageBoxBtnMode btnMode, string strTitle, string strContent, string strContentSmall, string strCancelText, string strConfirmText, VOIDDELEGATE actionClickConfirm, VOIDDELEGATE actionClickCancel, VOIDDELEGATE actionClickBlank = null ) { MessageBoxParam param = new MessageBoxParam(); param._nBtnmode = (int)btnMode; param._strTitle = strTitle; param._strContent = strContent; param._strContentSmall = strContentSmall; param._strCancelText = strCancelText; param._strConfirmText = strConfirmText; param._action_click_cancel = actionClickCancel; param._action_click_blank = actionClickBlank; param._action_click_confirm = actionClickConfirm; Init(param); }
public MessageBoxParam( MessageBoxBtnMode btnMode, string strTitle, string strContent, string strContentSmall, string strCancelText, string strConfirmText, bool bExpandWidth, bool bExpandHeight, VOIDDELEGATE actionClickConfirm, VOIDDELEGATE actionClickCancel, VOIDDELEGATE actionClickBlank ) { _nBtnmode = (int)btnMode; _strTitle = strTitle; _strContent = strContent; _strContentSmall = strContentSmall; _strCancelText = strCancelText; _strConfirmText = strConfirmText; _action_click_cancel = actionClickCancel; _action_click_confirm = actionClickConfirm; _action_click_blank = actionClickBlank; if (_strCancelText.Length == 0) { _strCancelText = "Cancel"; } if (_strConfirmText.Length == 0) { _strConfirmText = "Ok"; } _bExpandWidth = bExpandWidth; _bExpandHeight = bExpandHeight; }