void DelayedLevelComplete(CompleteBundle bundle) { m_field.IsProcessInput = false; Task.Run(() => { if (bundle.Descriptor.Index == m_profile.Levels.Last().Index) { m_profile.AddLevel(); m_selectLevelMenu.LevelsListView.AddItem(new LevelListViewItem(m_profile.Levels.Last())); m_profile.SaveProfileData(); } m_profile.DeleteFieldData(bundle.Descriptor); }); m_levelCompleteMenu.SetCompleteInfo(bundle); m_timer.Add(1000, () => m_screenManager.ModalScreenFront(m_levelCompleteMenu, m_field)); }
public void SetCompleteInfo(CompleteBundle bundle) { rotatesCountSprite.Text = bundle.RotatesCount.ToString() + " rotate(s)"; timeSprite.Text = string.Format("{0}h {1}m {2}s", bundle.Time.Hours * 24, bundle.Time.Minutes, bundle.Time.Seconds); }