예제 #1
0
        void Handle(Input.ApdTrgr Action)
        {
            var p = this.Parent as HHsPage;

            if (!string.IsNullOrWhiteSpace(Ad))
            {
                Msj = HH.InsertRec(p.PPId, Id, Ad, ThmGdr, ThmGdr, Info);
                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();
                }
            });
        }