コード例 #1
0
        private void CreateConfirmWithdrawInfo(int faceValue)
        {
            int index = Array.IndexOf(banknotes, faceValue);

            UCConfirmOperation cwi = new UCConfirmOperation(banknotesInfo[index], OperationType.Withdraw);

            Parent.Controls.Add(cwi);
            Parent.Controls.SetChildIndex(cwi, 0);
        }
コード例 #2
0
        private void next_Click(object sender, EventArgs e)
        {
            Dictionary <BanknoteFaceValue, int> faceValueQuantity = new Dictionary <BanknoteFaceValue, int>();

            foreach (int current in banknotes)
            {
                faceValueQuantity[(BanknoteFaceValue)current] = int.Parse(GetTextBoxByFaceValue(current.ToString()).Text);
            }

            if (totalFaceValueQuantity != 0)
            {
                UCConfirmOperation co = new UCConfirmOperation(faceValueQuantity, OperationType.Deposit);
                Parent.Controls.Add(co);
                Parent.Controls.SetChildIndex(co, 0);
            }
        }