Example #1
0
        void Handle(Input.InsTrgr Action)
        {
            var p = this.Parent as TTsPage;

            if (!string.IsNullOrWhiteSpace(Ad))
            {
                Msj = TT.InsertRec(p.PPId, Ad, Info, Email, Tel);
                if (!string.IsNullOrEmpty(Msj))
                {
                    Action.Cancelled = true;
                    return;
                }
            }
            Opened = false;

            p.Data = null;

            Session.RunTaskForAll((s, sId) => {
                var cp = (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage;
                if (cp is HHsPage)
                {
                    (s.Store[nameof(MasterPage)] as MasterPage).CurrentPage.Data = null;
                    s.CalculatePatchAndPushOnWebSocket();
                }
            });
        }