本文整理汇总了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;
}
示例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;
}
示例3: WorkerTask
public WorkerTask(BackgroundWorker worker, TaskType task)
{
this.MyWorker = worker;
this.Task = task;
this.FileOrDirPaths = new List<string>();
this.MediaOptions = new MediaWizardOptions();
}
示例4: CreateTaskByType
public static AbstractTask CreateTaskByType(TaskType type)
{
if (type == TaskType.DefaultTask)
return new DefaultTask();
return null;
}
示例5: Task
public Task(TaskType type, HTTPAgent.FileType fileType, long fileId, string fileTitle)
{
mType = type;
mFileType = fileType;
mFileId = fileId;
mFileTitle = fileTitle;
}
示例6: GetCount
public static int GetCount(TaskType type)
{
if (!taskCount.ContainsKey(type)) {
return 0;
}
return taskCount[type];
}
示例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;
}
示例8: AddTask
public void AddTask(TaskType Type, object[] Args)
{
Task t = new Task(qu.Count, Type, Args);
qu.Add(t);
try { Changed(t); }
catch { }
}
示例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;
}
示例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());
}
示例11: Task
public Task(string name, string description, int priority, TaskType type)
{
_name = name;
_description = description;
_priority = priority;
_type = type;
}
示例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;
}
示例13: TaskFromAsyncTest
public TaskFromAsyncTest(TestParameters parameters)
{
_api = parameters.Api;
_sourceType = parameters.SourceTaskType;
_fromAsyncType = parameters.FromAsyncTaskType;
_errorCase = parameters.ErrorCase;
_overloadChoice = parameters.OverloadChoice;
}
示例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;
}
示例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;
}