Exemple #1
0
        //新增联排
        private void CtxChain_Click(object sender, EventArgs e)
        {
            BathDBDataContext db_new       = new BathDBDataContext(LogIn.connectionString);
            HotelRoom         seat         = getContextSenderSeat(db_new, sender);
            OpenSeatForm      openSeatForm = new OpenSeatForm(seat, false);

            openSeatForm.ShowDialog();
        }
Exemple #2
0
        //开牌
        private void open_seat(HotelRoom seat, BathDBDataContext db_new)
        {
            if (!BathClass.getAuthority(db_new, LogIn.m_User, "开牌"))
            {
                BathClass.printErrorMsg("权限不够!");
                return;
            }

            OpenSeatForm openSeatForm = new OpenSeatForm(seat, true);

            openSeatForm.ShowDialog();
            //updateTimer_Elapsed(null, null);
            dgv_shoe_show();
        }