Beispiel #1
0
        internal void CallMessageSubPage(string message, string action, float?timeout = null, Action <CRMPage> returnAction = null)
        {
            CRMPageArgs args = new CRMPageArgs();

            args.AddString(MessagePage.PARAM_MESSAGE, message);
            args.AddString(MessagePage.PARAM_ACTION, action);

            if (timeout.HasValue)
            {
                args.AddFloat(MessagePage.PARAM_TIMEOUT, timeout.Value);
            }

            SetSubPage(typeof(MessageSubPage), args, returnAction);
        }
Beispiel #2
0
        internal void RedirectToMessagePage(string message, string action, float?timeout = null)
        {
            CRMPageArgs args = new CRMPageArgs();

            args.AddString(MessagePage.PARAM_MESSAGE, message);
            args.AddString(MessagePage.PARAM_ACTION, action);

            if (timeout.HasValue)
            {
                args.AddFloat(MessagePage.PARAM_TIMEOUT, timeout.Value);
            }

            SetPage(typeof(MessagePage), args);
        }