예제 #1
0
        List<Customer> list = new List<Customer>(); //List that holds customers.

        #endregion Fields

        #region Constructors

        public Tellr(Database d)
        {
            this.dbase = d;
            InitializeComponent();
            //this.x = create;
            //labelInfo.Text = "";
        }
예제 #2
0
 static void testDatabase()
 {
     Database d = new Database();
     List<Customer> list = new List<Customer>();
     Customer c = new Customer("Test","Console App",0,0,0);
     list.Add(c);
     d.save(list);
     Console.WriteLine("Testing Database.cs.....\n");
     Console.WriteLine("Customer's name: " + c.name+"\nNumbers of customers in the list: "+list.Count);
 }
예제 #3
0
 static void Main()
 {
     Application.EnableVisualStyles();
     Application.SetCompatibleTextRenderingDefault(false);
     Database db = new Database();
     Customer c1 = new Customer("D, Trump", "Atlantic City,NJ", 000, 100, 80);
     new Thread(A).Start(db);  //A thread for ATM
     new Thread(A).Start(db);  //A thread for ATM
     Thread t = new Thread(T); // A thread for teller.
     t.SetApartmentState(ApartmentState.STA);
     t.Start(db);
 }
예제 #4
0
        List<Customer> list = new List<Customer>(); //a list which holds the customers

        #endregion Fields

        #region Constructors

        public Atm1(Database d)
        {
            this.dbase = d;
            InitializeComponent();
        }