当前位置: 首页>>代码示例>>C#>>正文


C# TaskList类代码示例

本文整理汇总了C#中TaskList的典型用法代码示例。如果您正苦于以下问题:C# TaskList类的具体用法?C# TaskList怎么用?C# TaskList使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。


TaskList类属于命名空间,在下文中一共展示了TaskList类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。

示例1: execute

 public Task execute()
 {
     TaskList tl = new TaskList ();
     tl.push (cutTask ());
     tl.push (uploadTask ());
     return tl;
 }
开发者ID:gdgeek,项目名称:fly,代码行数:7,代码来源:CutImage.cs

示例2: Scheduler

        static Scheduler()
        {
            var lockStrategy = new LockStrategy(LockRecursionPolicy.SupportsRecursion);

            ScheduleQueue = new TaskList<ScheduleHistory>(lockStrategy);
            ScheduleInProgress = new TaskList<ScheduleHistory>(lockStrategy);
        }
开发者ID:xiaoxiaocoder,项目名称:AspxCommerce2.7,代码行数:7,代码来源:Scheduler.cs

示例3: Insert

 ///<summary>Inserts one TaskList into the database.  Returns the new priKey.</summary>
 internal static long Insert(TaskList taskList)
 {
     if(DataConnection.DBtype==DatabaseType.Oracle) {
         taskList.TaskListNum=DbHelper.GetNextOracleKey("tasklist","TaskListNum");
         int loopcount=0;
         while(loopcount<100){
             try {
                 return Insert(taskList,true);
             }
             catch(Oracle.DataAccess.Client.OracleException ex){
                 if(ex.Number==1 && ex.Message.ToLower().Contains("unique constraint") && ex.Message.ToLower().Contains("violated")){
                     taskList.TaskListNum++;
                     loopcount++;
                 }
                 else{
                     throw ex;
                 }
             }
         }
         throw new ApplicationException("Insert failed.  Could not generate primary key.");
     }
     else {
         return Insert(taskList,false);
     }
 }
开发者ID:nampn,项目名称:ODental,代码行数:26,代码来源:TaskListCrud.cs

示例4: TaskForm

 public TaskForm(TaskData data, TaskList lists)
 {
     InitializeComponent();
     gTaskData = data;
     gTaskList = lists;
     foreach (var task in lists)
     {
         LogPathComboBox.Items.Add(task.LogPath);
         ProjectPathComboBox.Items.Add(task.ProjectPath);
     }
     NameTextBox.Text = data.Name;
     LogFolderTextBox.Text = data.LogFolder;
     if (data.LogNumber == -1)
     {
         for (int i = 0; i <= lists.Count; i++)
         {
             if (lists.Cast<TaskData>().Count(t => t.LogNumber == i) == 0)
             {
                 LogNumericUpDown.Value = i;
                 break;
             }
         }
     }
     else
     {
         LogNumericUpDown.Value = data.LogNumber;
     }
 }
开发者ID:moririring,项目名称:FullAutomationSupportSystem,代码行数:28,代码来源:TaskForm.cs

示例5: CreateUITasklist

        private Expander CreateUITasklist(TaskList list, Google.Apis.Tasks.v1.Data.Tasks tasks)
        {
            var expander = new Expander();

            // Add a bold title.
            expander.Header = list.Title;
            expander.FontWeight = FontWeights.Bold;

            // Add the taskItems (if applicable).
            if (tasks.Items != null)
            {
                var container = new StackPanel();
                foreach (CheckBox box in tasks.Items.Select(CreateUITask))
                {
                    container.Children.Add(box);
                }
                expander.Content = container;
            }
            else
            {
                expander.Content = "There are no tasks in this list.";
            }

            return expander;
        }
开发者ID:Cyril12740,项目名称:google-api-dotnet-client-samples,代码行数:25,代码来源:MainWindow.xaml.cs

示例6: Execute

 public void Execute(ArgumentList arguments, TaskList tasklist, TagList tags, TagFolder folder)
 {
     ILister lister = new Lister();
     if (arguments.GetParameter(arguments.GetLength() - 1) == "--export")
         lister = new HtmlLister();
     lister.ListFiltered(tasklist.FilterTasks(arguments.GetParameter(1)), arguments.GetParameter(1));
 }
开发者ID:bogdanuifalean,项目名称:JuniorMind,代码行数:7,代码来源:FilterCommand.cs

示例7: begin

            public override void begin(float length, int chapters, int paragraph)
            {
                time_ = 0.0f;
                this.over_ = false;
                GameManager.GetInstance ().road._speed = 0.001f;
                TaskList tl = new TaskList ();

                for (int i = 0; i < _sentence.Length; ++i) {
                    tl.push (new TaskPack(talkTask(_sentence[i])));
                }
                for (int i = 0; i < _talk.Length; ++i) {

                    if(_close[i]){
                        tl.push (_talk[i].goOutTask ());
                    }else{
                        tl.push (_talk[i].closePopTask ());

                    }
                }
                TaskManager.PushBack (tl, delegate {
                    this.over_ = true;
                    GameManager.GetInstance ().road._speed = 1.0f;
                });
                TaskManager.Run (tl);
            }
开发者ID:gdgeek,项目名称:fly,代码行数:25,代码来源:BossTalk.cs

示例8: AddTasksListViewModel

        public AddTasksListViewModel(Func<TaskList, AddTasksList> addTasksListsFactory)
        {
            base.DisplayName = WindowTitle;

            _task = new TaskList();
            _addTasksListsFactory = addTasksListsFactory;
        }
开发者ID:jsikorski,项目名称:gtasks-desktop-client,代码行数:7,代码来源:AddTasksListViewModel.cs

示例9: FixDeleteAction

 public FixDeleteAction(TaskManagerNoteAddin addin, TaskList tasklist1, TaskList tasklist2, int line)
     : base(addin)
 {
     Priority = false;
     this.tasklist1 = tasklist1;
     this.tasklist2 = tasklist2;
     this.line = line;
 }
开发者ID:rggjan,项目名称:Tomboy-Todo-List,代码行数:8,代码来源:FixAction.cs

示例10: TaskGenerateAsync

        public async Task TaskGenerateAsync(int count)
        {
            var connect = new SQLiteAsyncConnection(DataBaseFile);
			var taskList = await connect.Table<TaskTable>().Take(count).ToListAsync();
			taskList.Shuffle ();
            var categoryList = await connect.Table<CategoryTable>().ToListAsync();
            _tasks = new TaskList(taskList, categoryList);
        }
开发者ID:okrotowa,项目名称:Yorsh,代码行数:8,代码来源:Rep.cs

示例11: Start

 // Use this for initialization
 void Start()
 {
     TaskList tl = new TaskList ();
     for(int i = 0;i<_sentence.Length; ++i){
         tl.push (_talk.popTask (_sentence[i]));
     }
     TaskManager.Run (tl);
 }
开发者ID:gdgeek,项目名称:fly,代码行数:9,代码来源:TalkTest.cs

示例12: Main

 public static void Main(string[] args)
 {
     var console = new RealConsole();
     var projectRepository = new ProjectRepository();
     var taskRepository = new TaskRepository();
     var taskList = new TaskList(console, projectRepository, taskRepository);
     taskList.Run();
 }
开发者ID:tekavec,项目名称:TaskListKata,代码行数:8,代码来源:Program.cs

示例13: Execute

 public void Execute(ArgumentList arguments, TaskList tasklist, TagList tags, TagFolder folder)
 {
     FileIO loader = new FileIO();
     if (tasklist.MarkAsDone(arguments.GetParameter(1)))
     loader.SaveTasks(tasklist.GetTasks());
         else
             Console.WriteLine("No task with that id found to mark as done");
 }
开发者ID:bogdanuifalean,项目名称:JuniorMind,代码行数:8,代码来源:DoneCommand.cs

示例14: Execute

 public void Execute(ArgumentList arguments, TaskList tasks, TagList tags, TagFolder folder)
 {
     FileIO loader = new FileIO();
     TaskTagger tagTasks = new TaskTagger(tasks.GetTasks());
     if (tagTasks.Untag(arguments.GetParameter(1), arguments.GetParameter(2)))
         loader.SaveTasks(tagTasks.GetTasks());
     else
         Console.WriteLine("No task with that id found to untag");
 }
开发者ID:bogdanuifalean,项目名称:JuniorMind,代码行数:9,代码来源:UntagCommand.cs

示例15: SelectMany

		public void SelectMany()
		{
			string tempTaskFile = CreateTempTasksFile();
			var tl = new TaskList(tempTaskFile);
			IOrderedEnumerable<string> contexts = tl.SelectMany(task => task.Contexts,
			                                                    (task, context) => context).Distinct().OrderBy(context => context);

			Assert.AreEqual(3, contexts.Count());
		}
开发者ID:losmuertos,项目名称:todotxtlib.net,代码行数:9,代码来源:TaskListTests.cs


注:本文中的TaskList类示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。