Пример #1
0
        /// <summary>
        /// Saveds the state.
        /// </summary>
        /// <returns>The state.</returns>
        public async Task LoadState(int fixtureId)
        {
            var storable = await Storage.GetObject <ApplicationStateStorable>(fixtureId.ToString());

            if (storable != null)
            {
                ApplicationStateHandler.Apply(storable);
            }
        }
Пример #2
0
        /// <summary>
        /// Saveds the state.
        /// </summary>
        /// <returns>The state.</returns>
        public async Task LoadState(int fixtureId)
        {
            var storable = await _storage.GetObject <ApplicationStateStorable>(fixtureId.ToString());

            if (storable != null)
            {
                Apply(storable);
            }

            NotifyStatusUpdate();
        }