//新增手牌类型
        private void addSeatType_Click(object sender, EventArgs e)
        {
            SeatTypeForm addSeatType = new SeatTypeForm(db, null);

            if (addSeatType.ShowDialog() == DialogResult.OK)
            {
                createTree();
            }
        }
        //编辑手牌类型
        private void editSeatType_Click(object sender, EventArgs e)
        {
            if (seatTypeTree.SelectedNode == null ||
                db.SeatType.FirstOrDefault(x => x.name == seatTypeTree.SelectedNode.Text) == null)
            {
                GeneralClass.printErrorMsg("没有选择类别!");
                return;
            }

            SeatType     seatType = db.SeatType.FirstOrDefault(x => x.name == seatTypeTree.SelectedNode.Text);
            SeatTypeForm editType = new SeatTypeForm(db, seatType);

            if (editType.ShowDialog() == DialogResult.OK)
            {
                createTree();
            }
        }
 //新增手牌类型
 private void addSeatType_Click(object sender, EventArgs e)
 {
     SeatTypeForm addSeatType = new SeatTypeForm(db, null);
     if (addSeatType.ShowDialog() == DialogResult.OK)
         createTree();
 }
        //编辑手牌类型
        private void editSeatType_Click(object sender, EventArgs e)
        {
            if (seatTypeTree.SelectedNode == null ||
                db.SeatType.FirstOrDefault(x => x.name == seatTypeTree.SelectedNode.Text) == null)
            {
                GeneralClass.printErrorMsg("没有选择类别!");
                return;
            }

            SeatType seatType = db.SeatType.FirstOrDefault(x => x.name == seatTypeTree.SelectedNode.Text);
            SeatTypeForm editType = new SeatTypeForm(db, seatType);
            if (editType.ShowDialog() == DialogResult.OK)
                createTree();
        }