private void btnPurchase_Click(object sender, EventArgs e)
        {
            List <Item> items = Dao.Item.GetAll();

            foreach (var price in items)
            {
                if (txbPrice.Text == price.Price.ToString() && txbItemName.Text == price.Name.ToString())
                {
                    purchaseForm.AddItem(price);
                }
            }
            Close();
        }
        private void btnPurchase_Click(object sender, EventArgs e)
        {
            purchaseForm.GetStudyRoomNumber(_str);

            List <Item> items = Dao.Item.GetAll();

            foreach (var price in items)
            {
                if (txbPrice.Text == price.Price.ToString() && txbItemName.Text == price.Name.ToString())
                {
                    purchaseForm.AddItem(price);
                }
            }
            DialogResult = DialogResult.Yes;
            Close();
        }
        private void btnPayMent_Click(object sender, EventArgs e)
        {
            purchaseForm.GetLockerNumber(_lockerNumber);

            List <Item> items = Dao.Item.GetAll();



            foreach (var item in items)
            {
                if (txbPrice.Text == item.Price.ToString() && txbItemName.Text == item.Name.ToString())
                {
                    purchaseForm.AddItem(item);

                    //InvoiceLine invoiceLine = new InvoiceLine()
                    //{
                    //    InvoiceID = maxInvoiceKey,
                    //    ItemID = price.ItemID,
                    //};

                    //if (_ItemsList.Contains(item))
                    //{
                    //    MessageBox.Show("중복구매x");
                    //}
                    //else
                    //{
                    //    purchaseForm.AddItem(item);
                    //    //Dao.InvoiceLine.Insert(invoiceLine);
                    //}


                    //아이템 아이디 저장하는 함수
                }
            }
            Close();
        }