nHydrate.Generator.Models.CustomStoredProcedureController.DeleteObject C# (CSharp) Method

DeleteObject() public method

public DeleteObject ( ) : bool
return bool
		public override bool DeleteObject()
		{
			if (MessageBox.Show("Do you wish to delete this custom stored procedure?", "Delete?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
			{
				((ModelRoot)this.Object.Root).Database.CustomStoredProcedures.Remove(((CustomStoredProcedure)this.Object).Id);
				this.Node.Remove();
				this.Object.Root.Dirty = true;
				return true;
			}
			return false;
		}