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; }
void Handle(Input.DelTrgr Action) { var p = this.Parent as PPsPage; Opened = false; p.DlgDel.Opened = true; p.DlgDel.Msj = "Projeye ait tüm bilgiler silinecektir."; }
void Handle(Input.DelTrgr Action) { var p = this.Parent as PPsPage; if (p.DlgRec.Ad != Ad) { Msj = "Proje adýný doðru girmediniz."; } else { PP.DeleteAll((ulong)p.DlgRec.Id); Opened = false; } }
void Handle(Input.DelTrgr Action) { Msj = TT.DeleteRec(Id); if (!string.IsNullOrEmpty(Msj)) { Action.Cancelled = true; return; } Session.RunTaskForAll((s, id) => { s.CalculatePatchAndPushOnWebSocket(); }); Opened = false; }
void Handle(Input.DelTrgr Action) { if (ONo != 0) { Db.Transact(() => { var r = Db.FromId <DD>((ulong)ONo); r.Delete(); }); ONo = 0; Session.RunTaskForAll((s, id) => { s.CalculatePatchAndPushOnWebSocket(); }); } Opened = false; }