Exemple #1
0
        public Task Save()
        {
            var strappStrip = Strip.Select(i => i.Strapp).ToList();
            var strip = new StartStrip(strappStrip);

            return _client.SetStartStripAsync(strip);
        }
Exemple #2
0
        public Task Save()
        {
            var strappStrip = Strip.Select(i => i.Strapp).ToList();
            var strip       = new StartStrip(strappStrip);

            return(_client.SetStartStripAsync(strip));
        }
Exemple #3
0
        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<AdminBandTile>)(await _client.GetDefaultTilesAsync());
        }
Exemple #4
0
        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 <AdminBandTile>)(await _client.GetDefaultTilesAsync());
        }
Exemple #5
0
        public Task Save()
        {
            var strip = new StartStrip(Strip.ToList <CargoStrapp>());

            return(_client.SetStartStripAsync(strip));
        }