Esempio n. 1
0
        private void btnLocker1_Click(object sender, EventArgs e)
        {
            lockerNumber = ((Button)sender).Tag.ToString();
            LockerTimeChargingForm lockerTimeChargingForm = new LockerTimeChargingForm(lockerNumber, purchaseForm);

            lockerTimeChargingForm.ShowDialog();
            Close();
        }
Esempio n. 2
0
        private void btnLockers_Click(object sender, EventArgs e)
        {
            int    userId = Credential.Instance.User.UserID;
            Locker locker = Dao.Locker.GetByUserId(userId);

            if (locker == null)
            {
                LockersForm lockersForm = new LockersForm(this);
                lockersForm.ShowDialog();
            }

            else
            {
                if (MessageBox.Show("이미 사물함이 있습니다. 시간을 구매하시겠습니까?", "구매여부", MessageBoxButtons.OKCancel) == DialogResult.OK)
                {
                    LockerTimeChargingForm lockerTimeChargingForm = new LockerTimeChargingForm(this);
                    lockerTimeChargingForm.ShowDialog();
                }
            }
        }