protected override void UpdateView() { switch (Item.CustomValue) { case Synced: StatusLabel.Text = Resources.SyncCompleted; SyncedIcon.Hidden = false; LoadingIcon.Hidden = true; LoadingIcon.StopSpinning(); break; case Syncing: StatusLabel.Text = Resources.Syncing; SyncedIcon.Hidden = true; LoadingIcon.Hidden = false; LoadingIcon.StartSpinning(); break; case LoggingOut: StatusLabel.Text = Resources.LoggingOutSecurely; SyncedIcon.Hidden = true; LoadingIcon.Hidden = false; LoadingIcon.StartSpinning(); break; default: throw new ArgumentOutOfRangeException(nameof(Item.CustomValue), Item.CustomValue, null); } }