示例#1
0
        //会员卡参数设置
        private void btnMemberSetting_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;
            }
            MemberSettingForm memberSettingForm = new MemberSettingForm();

            memberSettingForm.ShowDialog();
        }
示例#2
0
 //会员卡参数设置
 private void btnMemberSetting_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;
     }
     MemberSettingForm memberSettingForm = new MemberSettingForm();
     memberSettingForm.ShowDialog();
 }