コード例 #1
0
ファイル: Transaction.cs プロジェクト: gohar112/ATM_Software
 public Transaction(int AccountNo, DateTime date, TranscationType type, decimal Amount)
 {
     this.AccountNo = AccountNo;
     this.Date      = date;
     this.type      = type;
     this.Amount    = Amount;
 }
コード例 #2
0
        public void LoadTransType(ComboBox cb)
        {
            List <string> collection = TranscationType.ToList();

            foreach (string item in collection)
            {
                cb.Items.Add(item);
            }
        }
コード例 #3
0
        public void LoadPayMode(ComboBox cb)
        {
            List <string> collection = TranscationType.ToList();

            foreach (string item in collection)
            {
                cb.Items.Add(item);
                Console.WriteLine("item={0}", item);
            }
            Console.WriteLine("CB={0}, List={1}", cb.Items.Count, collection.Count);
        }