private void Delete()
        {
            IControl control = GetControl(tabMain.SelectedTabPage);

            if (control != null)
            {
                if (XtraMessageBox.Show("Are you sure you wish to remove the selected item?", "Are You Sure?", MessageBoxButtons.YesNo, MessageBoxIcon.Question)
                    == DialogResult.Yes)
                {
                    int oid = control.Delete();
                    if (control.TabType != TabType.PersonList)
                    {
                        CloseTab(control.TabType, control.Id);
                    }

                    if (Home != null &&
                        control is PersonControl &&
                        Home.Controls.Count > 0 && Home.Controls[0] is IControl)
                    {
                        ((IControl)Home.Controls[0]).Reload();
                    }
                }
            }
        }