Пример #1
0
        public Form1()
        {
            InitializeComponent();
        
            fuelstation = new Fuelstation();
            pcconnection = new CommunicationPCs(fuelstation);
            fuelstation.setPC(pcconnection);
            arduino1 = new CommunicationArduino(fuelstation, "COM12");
            arduino2 = new CommunicationArduino(fuelstation, "COM13");
            fuelstation.setArduinos(arduino1, arduino2);

            foreach (Car caritem in fuelstation.AllCars)
            {
                listBoxCars.Items.Add(caritem);
            }
        }
Пример #2
0
 public void setPC(CommunicationPCs pc)
 {
     this.pc = pc;
 }