Exemplo n.º 1
0
            void Handle(Input.DeleteTrigger Action)
            {
                if (File.Exists(this.FilePath))
                {
                    File.Delete(this.FilePath);
                }

                this.ParentPage.Files.Remove(this);
            }
Exemplo n.º 2
0
            protected void Handle(Input.DeleteTrigger action)
            {
                this.ParentPage.Products.Remove(this);

                Db.Transact(() =>
                {
                    this.Data.Repository.Delete();
                });
            }
Exemplo n.º 3
0
 public void Handle(Input.DeleteTrigger action)
 {
     this.DeleteAction?.Invoke(this);
 }
Exemplo n.º 4
0
 protected void Handle(Input.DeleteTrigger action)
 {
     this.Data.IsDeleted = true;
 }
Exemplo n.º 5
0
        public void Handle(Input.DeleteTrigger Action)
        {
            Event thisEvent = DbHelper.FromID(DbHelper.Base64DecodeObjectID(this.Key)) as Event;

            HelperFunctions.DeleteEvent(thisEvent);
        }