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; }); }
public WhisperElement(Whisper w) : base(w.ToString ()) { _whisper = w; }