示例#1
0
文件: Form1.cs 项目: aimethierry/pc4
        public Form1()
        {
            InitializeComponent();
            t = new TransportCompany();

            /*t.AddPerson(new Person(22, "Mr. Blue", "Zaragossastraat", 41, "5688DH", "Eindhoven"));
             * t.AddPerson(new Person(11, "Sven Krame", "Mainstreet", 33, "5688G", "Eindhoven"));
             * t.AddPerson(new Person(33, "Naomi van As", "Mainstreet", 33, "5688GE", "Eindhoven"));
             * t.AddPerson(new Person(77, "Bruno Mars", "Kerkstraat", 39, "5693DE", "Eindhoven"));
             * t.AddPerson(new Person(55, "Anouk", "Kerkstraat", 10, "5693DE", "Eindhoven"));
             *
             *
             * t.AddDeliverable(new Deliverable(2, 700, new Person(11, "Sven Krame", "Mainstreet", 33, "5688G", "Eindhoven")));
             * t.AddDeliverable(new Deliverable(1, 700, new Person(22, "Sven Kramer", "Mainstreet", 33, "5688G", "Eindhoven")));
             *
             * t.AddDeliverable(new Deliverable(3, 360, new Person(33, "Naomi van As", "Mainstreet", 33, "5688GE", "Eindhoven")));
             * t.AddDeliverable(new Deliverable(4, 500, new Person(77, "Bruno Mars", "Kerkstraat", 39, "5693DE", "Eindhoven")));
             * t.AddDeliverable(new Deliverable(5, 900, new Person(55, "Anouk", "Kerkstraat", 10, "5693DE", "Eindhoven"))); */
        }
示例#2
0
 public Form1()
 {
     InitializeComponent();
     myCompany = new TransportCompany();
 }