private void OnRecord(object sender, RoutedEventArgs e)
{
Button button = (Button)sender;
if (button.Tag != null)
{
// paused
button.Content = button.Tag;
button.Tag = null;
StopRecording();
}
else
{
// start recording.
button.Tag = button.Content;
button.Content = "\ue15b";
StartRecording();
}
}