nHydrate.Generator.Models.TableCompositeController.DeleteObject C# (CSharp) Метод

DeleteObject() публичный Метод

public DeleteObject ( ) : bool
Результат bool
		public override bool DeleteObject()
		{
			if (MessageBox.Show("Do you wish to delete this component?", "Delete?", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes)
			 {
				((TableComposite)this.Object).Parent.CompositeList.Remove((TableComposite)this.Object);
				this.Node.Remove();
				this.Object.Root.Dirty = true;
				this.Refresh();
				return true;
			}
			return false;
		}