/// <summary>
        /// Save the data on a Tab
        /// </summary>
        /// <param name="tabControl"></param>
        /// <param name="tab"></param>
        public bool saveTab(TabPage tab)
        {
            bool success = false;

            TabData tabData = (TabData)(tab.Tag);

            success = tabData.Save(data);

            updateStatusStrip();

            return(success);
        }
        /// <summary>
        /// Change the currently selected tab
        /// </summary>
        /// <param name="tab">The tab you wish to have focus</param>
        public void changeTabIndex(TabPage tab)
        {
            tabControl.SelectedIndex = tabControl.TabPages.IndexOf(tab);
            TabData tabData = (TabData)(tabControl.TabPages[tabControl.SelectedIndex].Tag);

            if (tabData.Edit)
            {
                tabData.EnableControls();
            }
            else
            {
                tabData.DisableControls();
            }
        }