コード例 #1
0
 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();
 }
コード例 #2
0
 public bool FireItemBeforeRemoveEvent(Oranikle.Studio.Controls.ItemBeforeRemoveEventArgs e)
 {
     ItemBeforeRemove.Invoke(this, e);
     return(e.Cancel);
 }