void ReleaseDesignerOutlets() { if (FlipButton != null) { FlipButton.Dispose(); FlipButton = null; } if (RecordDurationLabel != null) { RecordDurationLabel.Dispose(); RecordDurationLabel = null; } if (RecordVideoButton != null) { RecordVideoButton.Dispose(); RecordVideoButton = null; } }
public override void UpdateRecordingVideoStatus(bool isRecording, bool shouldAnimate) { RecordVideoButton.Selected = isRecording; if (isRecording) { RecordDurationLabel.Start(); } else { RecordDurationLabel.Stop(); } Action updates = () => FlipButton.Alpha = isRecording ? 0 : 1; if (shouldAnimate) { Animate(0.25, updates); } else { updates.Invoke(); } }