BattlelogMobile.Client.ViewModel.SoldierViewModel.UpdateData C# (CSharp) Method

UpdateData() public method

public UpdateData ( bool forceUpdate ) : void
forceUpdate bool
return void
        public async void UpdateData(bool forceUpdate)
        {
            try
            {
                SetBackground();
                AppBarEnabled = false;
                await Update(forceUpdate);
                AppBarEnabled = true;
            }
            catch
            {
                Messenger.Default.Send(
                    new DialogMessage(this, Common.UnexpectedException, result => { }) 
                        { Caption = Common.FailedMessageHeader, Button = MessageBoxButton.OK });
            }
        }