Beispiel #1
0
 private void BookShop_Load(object sender, EventArgs e)
 {
     // XXX You may change the contructors of StaffWindow and CustomerWindow to take
     // some arguments
     staffWindow = new StaffWindow(_control);
     staffWindow.StartPosition    = FormStartPosition.Manual;
     staffWindow.Location         = new Point(600, 100);
     customerWindow               = new CustomerWindow(_control);
     customerWindow.StartPosition = FormStartPosition.Manual;
     customerWindow.Location      = new Point(100, 100);
 }
Beispiel #2
0
 private void BookShop_Load(object sender, EventArgs e)
 {
     // XXX You may change the contructors of StaffWindow and CustomerWindow to take
     // some arguments
     //ControlShop.listOfCustomers.Add(new Customer("Jacob", "Dokos"));
     staffWindow = new StaffWindow(ControlShop);
     staffWindow.StartPosition = FormStartPosition.Manual;
     staffWindow.Location = new Point(600, 100);
     customerWindow = new CustomerWindow(ControlShop);
     customerWindow.StartPosition = FormStartPosition.Manual;
     customerWindow.Location = new Point(100, 100);    
 }