Ejemplo n.º 1
0
        public void StartRecording(UIButton button)
        {
            button.Enabled = false;

            _recordingWhisper = new Whisper ();
            _db.Insert (_recordingWhisper);
            _recordingWhisper.StartRecording ();

            BeginInvokeOnMainThread(() => {
                recordProgress.Hidden = false;
                recordProgress.Progress = 0f;
                button.SetTitle ("Stop", UIControlState.Normal);

                startedRecording = DateTime.Now;
                timer = NSTimer.CreateRepeatingScheduledTimer(TimeSpan.FromSeconds(0.1), delegate {
                    RecordingTimer (button);
                });

                button.Enabled = true;
            });
        }
Ejemplo n.º 2
0
 public WhisperElement(Whisper w)
     : base(w.ToString ())
 {
     _whisper = w;
 }