//服装管理 private void navBarItemClothes_LinkClicked(object sender, DevExpress.XtraNavBar.NavBarLinkEventArgs e) { if (clothesForm == null) { clothesForm = LoadChildForm(tpClothes, "PengLang.FrmClothes") as FrmClothes; childForms[1] = clothesForm; } SwitchChildForm(tpClothes); }
private void FrmManage_Load(object sender, EventArgs e) { if (AppConfig.LoginUser.UserKind == User.UserKind_Admin) { navBarItemInventroy.Visible = true; } else { navBarItemInventroy.Visible = false; } xtraTab.ShowTabHeader = DefaultBoolean.False; xtraTab.SelectedTabPage = tpClothes; if (clothesForm == null) { clothesForm = LoadChildForm(tpClothes, "PengLang.FrmClothes") as FrmClothes; childForms[1] = clothesForm; } }