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


C# TaskType类代码示例

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


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

示例1: Task

 public Task(TaskType type, Connection client = null, object args = null)
 {
     Type = type;
     _client = client;
     _args = args;
     Query = null;
 }
开发者ID:acid1789,项目名称:DecoServer2,代码行数:7,代码来源:TaskProcessor.cs

示例2: Task

        public Task(string name, bool isimportant, bool ishard, int estimatetomato, 
            TaskType  tasktype, TaskPriority taskpri,
            TaskStatus taskstatus = TaskStatus.INQUEUE, DateTime? reminder = null)
        {
            this.name = name;
            this.isImportant = isimportant ? "important" : "not important";
            this.isHard = ishard ? "hard" : "easy";
            this.estimateToamto = estimatetomato;

            this.completeTomato = 0;
            this.incompleteTomato = 0;
            this.innerBreak = 0;
            this.outterBreak = 0;
            this.completeness = 0;
            this.difficulties = 0;
            this.satisfaction = 0;
            this.efficiency = 0;
            this.improvement = 0;
            this.achivement = 0;
            this.focusness = 0;

            this.taskStatus = taskstatus;
            this.taskType = tasktype;
            this.taskPriority = taskpri;
        }
开发者ID:mysterytony,项目名称:PomodoroTechiniqueHelper,代码行数:25,代码来源:Task.cs

示例3: WorkerTask

 public WorkerTask(BackgroundWorker worker, TaskType task)
 {
     this.MyWorker = worker;
     this.Task = task;
     this.FileOrDirPaths = new List<string>();
     this.MediaOptions = new MediaWizardOptions();
 }
开发者ID:viwhi1,项目名称:TDMaker,代码行数:7,代码来源:WorkerTask.cs

示例4: CreateTaskByType

        public static AbstractTask CreateTaskByType(TaskType type)
        {
            if (type == TaskType.DefaultTask)
                return new DefaultTask();

            return null;
        }
开发者ID:huayancreate,项目名称:HYAutoCADConvert,代码行数:7,代码来源:TaskFactroy.cs

示例5: Task

 public Task(TaskType type, HTTPAgent.FileType fileType, long fileId, string fileTitle)
 {
     mType = type;
     mFileType = fileType;
     mFileId = fileId;
     mFileTitle = fileTitle;
 }
开发者ID:hong1975,项目名称:wats,代码行数:7,代码来源:Task.cs

示例6: GetCount

		public static int GetCount(TaskType type)
		{
			if (!taskCount.ContainsKey(type)) {
				return 0;
			}
			return taskCount[type];
		}
开发者ID:kingjiang,项目名称:SharpDevelopLite,代码行数:7,代码来源:TaskService.cs

示例7: NetMethodAttribute

 /// <summary>
 /// 
 /// </summary>
 /// <param name="opcode"></param>
 /// <param name="type">消息的处理方法</param>
 /// <param name="taskType">任务分类</param>
 /// <param name="isVerifyLogin">是否进行登录验证,默认是进行的,只有登录等极少数的消息是不需要验证的</param>
 public NetMethodAttribute(ushort opcode, NetMethodType type, TaskType taskType, bool isVerifyLogin = true)
 {
     OpCode = opcode;
     MethodType = type;
     IsVerifyLogin = isVerifyLogin;
     TaskType = taskType;
 }
开发者ID:andyhebear,项目名称:HappyQ-WowServer,代码行数:14,代码来源:NetMethodAttribute.cs

示例8: AddTask

 public void AddTask(TaskType Type, object[] Args)
 {
     Task t = new Task(qu.Count, Type, Args);
     qu.Add(t);
     try { Changed(t); }
     catch { }
 }
开发者ID:vishal1082,项目名称:MeSharesta,代码行数:7,代码来源:Queues.cs

示例9: Task

 /// <summary>
 /// Létrehoz egy feladatot a megadott típussal és célponttal
 /// </summary>
 /// <param name="Type">A feladat típusa</param>
 /// <param name="Item">A feladat célpontja</param>
 public Task(TaskType Type, Items.ItemBase Item)
 {
     if (Type == TaskType.Any) { throw new ArgumentException("TaskType.Any cannot be used here"); }
     this.Type = Type;
     this.Item = Item;
     this.AssignedSince = Statistics.CurrentLoop;
 }
开发者ID:solymosi,项目名称:hangyaboly,代码行数:12,代码来源:Task.cs

示例10: OnGUI

        void OnGUI()
        {
            type = (TaskType)EditorGUILayout.EnumPopup("Task Type", type);
            taskName = EditorGUILayout.TextField("Task Name", taskName);
            ns = EditorGUILayout.TextField("Namespace", ns);
            category = EditorGUILayout.TextField("Category(?)", category);
            description = EditorGUILayout.TextField("Description(?)", description);
            agentType = EditorGUILayout.TextField("Agent Type(?)", agentType);

            if (GUILayout.Button("CREATE")){

                if (string.IsNullOrEmpty(taskName)){
                    EditorUtility.DisplayDialog("Empty Task Name", "Please give the new task a name","OK");
                    return;
                }

                if (type == TaskType.Action)
                    CreateFile(GetActionTemplate());

                if (type == TaskType.Condition)
                    CreateFile(GetCoditionTemplate());

                taskName = "";
                GUIUtility.hotControl = 0;
                GUIUtility.keyboardControl = 0;
            }

            if (type == TaskType.Action)
                GUILayout.Label(GetActionTemplate());

            if (type == TaskType.Condition)
                GUILayout.Label(GetCoditionTemplate());
        }
开发者ID:pangaeastudio,项目名称:vrgame-htc-vive-jam,代码行数:33,代码来源:TaskWizardWindow.cs

示例11: Task

 public Task(string name, string description, int priority, TaskType type)
 {
     _name = name;
     _description = description;
     _priority = priority;
     _type = type;
 }
开发者ID:ClemensT,项目名称:WPF-Samples,代码行数:7,代码来源:Task.cs

示例12: addHeldPoints

        public bool addHeldPoints(TaskType type, int amount)
        {
            switch (type)
            {
                case TaskType.Attendance:
                    freezeInfo.attendanceScore += amount;
                    break;
                case TaskType.Cooperation:
                    freezeInfo.cooperationScore += amount;
                    break;
                case TaskType.CrossCurricular:
                    freezeInfo.crossCurricularScore += amount;
                    break;
                case TaskType.Puzzle:
                    freezeInfo.puzzleScore += amount;
                    break;
                case TaskType.Story:
                    freezeInfo.storyScore += amount;
                    break;
                default:
                    return false;
            }

            return true;
        }
开发者ID:TeamHTTP418,项目名称:FinalProject,代码行数:25,代码来源:Player.cs

示例13: TaskFromAsyncTest

 public TaskFromAsyncTest(TestParameters parameters)
 {
     _api = parameters.Api;
     _sourceType = parameters.SourceTaskType;
     _fromAsyncType = parameters.FromAsyncTaskType;
     _errorCase = parameters.ErrorCase;
     _overloadChoice = parameters.OverloadChoice;
 }
开发者ID:noahfalk,项目名称:corefx,代码行数:8,代码来源:TaskFromAsyncTest.cs

示例14: Task

 public Task(TextBox textBox, string command, Label label, TaskType taskType, ref bool running)
 {
     TextBox = textBox;
     Command = command;
     Label = label;
     TaskType = taskType;
     Running = running;
 }
开发者ID:SimonHFrost,项目名称:network-trouble-shooter,代码行数:8,代码来源:Task.cs

示例15: UpdateTaskCommand

 public UpdateTaskCommand(int taskId, string name, TaskType type, TaskCategory category, int orderId)
 {
     this.taskId = taskId;
     this.name = name;
     this.type = type;
     this.category = category;
     this.orderId = orderId;
 }
开发者ID:grozeille,项目名称:chiffrage,代码行数:8,代码来源:UpdateTaskCommand.cs


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