Exemple #1
0
        public override void CloseTabPage()
        {
            //this.Controls.Clear();

            base.CloseTabPage();
            //this.drawarea.CloseDrawArea();

            //panelPageNavigation = null;
            //toolStripPageNavigation = null;
            //toolStripButtonAdd = null;
            //toolStripButtonDelete = null;
            //toolStripSeparator1 = null;
            //toolStripButtonFirst = null;
            //toolStripButtonPrevious = null;
            //toolStripLabelPageNumber = null;
            //toolStripButtonNext = null;
            //toolStripButtonLast = null;
            //drawarea = null;
            //panelTabPage = null;
            panelPageNavigation.Dispose();

            toolStripPageNavigation.Dispose();
            toolStripButtonAdd.Dispose();
            toolStripButtonDelete.Dispose();
            toolStripSeparator1.Dispose();
            toolStripButtonFirst.Dispose();
            toolStripButtonPrevious.Dispose();
            toolStripLabelPageNumber.Dispose();
            toolStripButtonNext.Dispose();
            toolStripButtonLast.Dispose();

            //drawarea = null;
        }
        public override void CloseTabPage()
        {
            //bool ret = true;
            //this.Controls.Clear();

            base.CloseTabPage();


#if EWSAPP
            if (Dirty)
            {
                if (DialogResult.Yes == MessageBox.Show("Do you want to save?", "Save", MessageBoxButtons.YesNoCancel))
                {
                    SaveTabPage();
                }
            }
#endif


            //return ret;
            tblpou.Pages = null;

            panelPageNavigation.Dispose();

            toolStripPageNavigation.Dispose();
            toolStripButtonAdd.Dispose();
            toolStripButtonDelete.Dispose();
            toolStripSeparator1.Dispose();
            toolStripButtonFirst.Dispose();
            toolStripButtonPrevious.Dispose();
            toolStripLabelPageNumber.Dispose();
            toolStripButtonNext.Dispose();
            toolStripButtonLast.Dispose();

            //drawarea = null;
        }