Exemplo n.º 1
0
        public CreateViewModel(ITodoService todoServ, INavigationService navigServ)
        {
            _todoService       = todoServ;
            _navigationService = navigServ;

            Priorities = Enum.GetValues(typeof(TaskPriority)).Cast <TaskPriority>().ToList();
            Priority   = Priorities.First();
        }
Exemplo n.º 2
0
        public DataType Top( )
        {
            if (!Priorities.Any( ))
            {
                throw new InvalidOperationException("Priority Queue Empty");
            }
            var fElem = Priorities.First( );

            return(fElem.Value.First( ));
        }
Exemplo n.º 3
0
        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);
 }