コード例 #1
0
ファイル: TTsPage.json.cs プロジェクト: SenerDemiral/MM0
        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();
                }
            });
        }