private string GetActivityState(Enumerations.ActivityState activityState) { string status; switch (activityState) { case Enumerations.ActivityState.Active: status = "Grabando."; break; case Enumerations.ActivityState.Completed: status = "Finalizada"; break; case Enumerations.ActivityState.New: status = "No iniciada"; break; default: status = "No Iniciada"; break; } return(status); }
private UIColor GetStateColor(Enumerations.ActivityState activityState) { UIColor color; switch (activityState) { case Enumerations.ActivityState.New: color = UIColor.Black; break; case Enumerations.ActivityState.Active: color = UIColor.Green; break; case Enumerations.ActivityState.Completed: color = UIColor.Red; break; default: color = UIColor.Black; break; } return(color); }