public CreateViewModel(ITodoService todoServ, INavigationService navigServ) { _todoService = todoServ; _navigationService = navigServ; Priorities = Enum.GetValues(typeof(TaskPriority)).Cast <TaskPriority>().ToList(); Priority = Priorities.First(); }
public DataType Top( ) { if (!Priorities.Any( )) { throw new InvalidOperationException("Priority Queue Empty"); } var fElem = Priorities.First( ); return(fElem.Value.First( )); }
public PriorityType TopKey( ) { if (IsEmpty( )) { return(default(PriorityType)); } var fElem = Priorities.First( ); return(fElem.Key); }
public Guid ResolvePriorityId(string text) { return(Priorities.First(item => item.Text == text).Id); }