partial void LapButton_TouchUpInside(RoundButton sender) { _laps.Add(_time - _lastLapTime); _lastLapTime = _time; LapsTable.ReloadData(); }
partial void ResetButton_TouchUpInside(RoundButton sender) { ResetButton.Hidden = true; LapButton.Hidden = false; LapButton.Enabled = false; _time = 0; _lastLapTime = 0; _laps.Clear(); LapsTable.ReloadData(); UpdateLabel(); }
void ReleaseDesignerOutlets() { if (LapButton != null) { LapButton.Dispose(); LapButton = null; } if (LapsTable != null) { LapsTable.Dispose(); LapsTable = null; } if (ResetButton != null) { ResetButton.Dispose(); ResetButton = null; } if (StartButton != null) { StartButton.Dispose(); StartButton = null; } if (StopButton != null) { StopButton.Dispose(); StopButton = null; } if (TimerDisplay != null) { TimerDisplay.Dispose(); TimerDisplay = null; } }