public bool GetStationProduct(int station, out string fullName, out int id, out int result) { fullName = ""; id = 0; result = -1; if (!_initialized) { StationIndexerException?.Invoke(@"Stations Not Initialized."); return(false); } if (station >= _numberOfStation) { return(false); } var stationProduct = _stations[station]; fullName = stationProduct.ReferenceLoaded; id = stationProduct.Id; result = (int)stationProduct.Result; return(true); }
public bool SetProductToStation(int station, string insertedFullName, int id, int productResult) { if (!_initialized) { StationIndexerException?.Invoke(@"Stations Not Initialized."); return(false); } if (station >= _numberOfStation) { StationIndexerException?.Invoke(@"Station Index not found."); return(false); } _stations[station].Id = id; _stations[station].ReferenceLoaded = insertedFullName; _stations[station].Result = (ProcessResult)productResult; return(true); }
public bool ShiftProductStationRight(string insertedFullName, int id, int productResult, int shiftNumber) { if (!_initialized) { StationIndexerException?.Invoke(@"Stations Not Initialized."); return(false); } ListShifter.ShiftRight(_stations, shiftNumber); _stations[0] = new MachineStation { Id = 1, ReferenceLoaded = insertedFullName, Result = (ProcessResult)productResult }; return(true); }
public bool GetStationProduct(int station, out string fullName) { fullName = ""; if (!_initialized) { StationIndexerException?.Invoke(@"Stations Not Initialized."); return(false); } if (station >= _numberOfStation) { StationIndexerException?.Invoke(@"Station Index not found."); return(false); } var stationProduct = _stations[station]; fullName = stationProduct.ReferenceLoaded; return(true); }