Beispiel #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 = "";
        }
Beispiel #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);
 }
Beispiel #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);
 }
Beispiel #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();
        }