Beispiel #1
0
        void Handle(Input.DelTrgr Action)
        {
            var r = Root as MasterPage;
            var p = this.Parent as FFsRpr;

            if (p.DlgRec.Ad != "Sil")
            {
                Msj = "Silmek için Not alanına Sil yazın.";
                Action.Cancelled = true;
                return;
            }

            Msj = FF.DeleteRec((ulong)Id, (ulong)r.CUId);

            if (!string.IsNullOrEmpty(Msj))
            {
                Action.Cancelled = true;
                return;
            }

            p.Data = null;

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

            Opened = false;
        }