Пример #1
0
        //构造函数
        public SeatForm(BathDBDataContext dc, Seat seat, SeatManagementForm smf)
        {
            db      = dc;
            m_mForm = smf;
            if (seat != null)
            {
                newSeat = false;
                m_Seat  = seat;
            }

            InitializeComponent();
        }
Пример #2
0
        //构造函数
        public SeatForm(BathDBDataContext dc, Seat seat, SeatManagementForm smf)
        {
            db = dc;
            m_mForm = smf;
            if (seat != null)
            {
                newSeat = false;
                m_Seat = seat;
            }

            InitializeComponent();
        }
Пример #3
0
        //手牌管理
        private void btnSeatManage_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;
            }
            SeatManagementForm seatManagementForm = new SeatManagementForm();

            seatManagementForm.ShowDialog();
        }
Пример #4
0
 //手牌管理
 private void btnSeatManage_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;
     }
     SeatManagementForm seatManagementForm = new SeatManagementForm();
     seatManagementForm.ShowDialog();
 }