Exemple #1
0
        void ReleaseDesignerOutlets()
        {
            if (FlipButton != null)
            {
                FlipButton.Dispose();
                FlipButton = null;
            }

            if (RecordDurationLabel != null)
            {
                RecordDurationLabel.Dispose();
                RecordDurationLabel = null;
            }

            if (RecordVideoButton != null)
            {
                RecordVideoButton.Dispose();
                RecordVideoButton = null;
            }
        }
Exemple #2
0
        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();
            }
        }