예제 #1
0
        /// <summary>
        /// New Task
        /// </summary>
        /// <param name="_taskAct">Task Act & Done Act</param>
        /// <param name="_nPriority">Priority</param>
        /// <param name="_strTips">Tips</param>
        /// <returns></returns>
        public AsyncTask Add(Action <Action> _taskAct, TaskPriority _tp = TaskPriority.Bronze, string _strTips = "")
        {
            AsyncTask _task = new AsyncTask(_taskAct, _tp, _strTips);

            return(Add(_task));
        }
예제 #2
0
 /// <summary>
 /// Sort By Task Priority
 /// </summary>
 /// <param name="_q1"></param>
 /// <param name="_q2"></param>
 /// <returns></returns>
 private int SortTask(AsyncTask _q1, AsyncTask _q2)
 {
     return(_q1.tp >= _q2.tp ? -1 : 1);
 }