private async void Init() { var strip = await _client.GetStartStripAsync(); // move the StartStrip into a ObservableCollection so that it can be easily manipulated Strip = new ObservableCollection <CargoStrapp>(strip); }
private async void Init() { var strip = await _client.GetStartStripAsync(); // move the StartStrip into a ObservableCollection so that it can be easily manipulated var bandStrip = strip.Select(i => new BandStrapp(this, i)); Strip = new ObservableCollection <BandStrapp>(bandStrip); DefaultStrapps = (List <CargoStrapp>)(await _client.GetDefaultStrappsAsync()); }
public async Task InitAsync() { StartStrip strip = null; try { strip = await _client.GetStartStripAsync(); } catch (ArgumentException) { // on some Bands the StartStrip errors out due to a bug somewhere in the Band library // that returns Tiles with no names. See #58 and many others. strip = new StartStrip(); } // move the StartStrip into a ObservableCollection so that it can be easily manipulated var bandStrip = strip.Select(i => new BandStrapp(this, i)); Strip = new ObservableCollection <BandStrapp>(bandStrip); DefaultStrapps = (List <CargoStrapp>)(await _client.GetDefaultStrappsAsync()); }