//库存参数 private void btnStockOptions_Click(object sender, EventArgs e) { var db = new BathDBDataContext(LogIn.connectionString); string pro = ((Button)sender).Text; if (!BathClass.getAuthority(db, LogIn.m_User, pro)) { GeneralClass.printErrorMsg("权限不够,不能访问!"); return; } StockOptionsForm stockSettingForm = new StockOptionsForm(); stockSettingForm.ShowDialog(); }
//库存参数 private void btnStockOptions_Click(object sender, EventArgs e) { var db = new BathDBDataContext(LogIn.connectionString); string pro = ((Button)sender).Text; if (!BathClass.getAuthority(db, LogIn.m_User, pro)) { GeneralClass.printErrorMsg("权限不够,不能访问!"); return; } StockOptionsForm stockSettingForm = new StockOptionsForm(); stockSettingForm.ShowDialog(); }