private void RemoveTab() { Oranikle.Studio.Controls.ItemBeforeRemoveEventArgs itemBeforeRemoveEventArgs = new Oranikle.Studio.Controls.ItemBeforeRemoveEventArgs(this); if (((Oranikle.Studio.Controls.CtrlTabStrip)Parent).FireItemBeforeRemoveEvent(itemBeforeRemoveEventArgs)) { return; } if ((Tag is System.IDisposable)) { ((System.IDisposable)Tag).Dispose(); } Tag = null; Parent.Items.Remove(this); Dispose(); }
public bool FireItemBeforeRemoveEvent(Oranikle.Studio.Controls.ItemBeforeRemoveEventArgs e) { ItemBeforeRemove.Invoke(this, e); return(e.Cancel); }