public void RefreshForm(int index) { BaseViewForm form = tabMain.TabPages[index].Controls[0] as BaseViewForm; if (form.RefreshForm != null) { form.RefreshForm.Invoke(); } }
private void tabMain_PreventChangeTabPage(int tabPageIndex) { BaseViewForm form = tabMain.TabPages[tabPageIndex].Controls[0] as BaseViewForm; form.DisableLeave(); }