• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# TaskType类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

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



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


示例16: FromDTO

 public static TaskType FromDTO(this DTO.TaskType source)
 {
     var h = new TaskType();
     h.TypeName = source.TypeName;
     if (source.AnyAttr != null)
         h.AnyAttr = source.AnyAttr.ToList();
     return h;
 }
开发者ID:Jedzia,项目名称:BackBock,代码行数:8,代码来源:BackupDataAssembler.cs


示例17: PacketHandler

 /// <summary>
 /// 
 /// </summary>
 /// <param name="iPacketID"></param>
 /// <param name="priority"></param>
 /// <param name="taskType"></param>
 /// <param name="onPacketReceive"></param>
 internal PacketHandler(ushort iPacketID, PacketPriority priority, TaskType taskType,
     PacketReceiveCallback onPacketReceive)
 {
     m_PacketID = iPacketID;
     m_PacketPriority = priority;
     m_OnReceive = onPacketReceive;
     m_TaskType = taskType;
 }
开发者ID:zaq1xsw,项目名称:DogSE,代码行数:15,代码来源:PacketHandler.cs


示例18: FillControl

    private void FillControl()
    {
        postID = Request.QueryString["TaskID"];
        if (string.IsNullOrEmpty(postID))
        {
            Response.Redirect("default.aspx", true);
        }
        try
        {
            DataTable dt = taskDal.GetTaskByID(Convert.ToInt32(postID));
            if (dt.Rows.Count > 0)
            {
                DataRow row = dt.Rows[0];
                this.lblTitle.Text = row["Title"].ToString();
                this.lblContent.Text = row["Content"].ToString();
                this.lblCreateTime.Text = row["CreateTime"] == DBNull.Value ? "" : row["CreateTime"].ToString();
                this.lblComTime.Text = row["CompleteTime"] == DBNull.Value ? "" : row["CompleteTime"].ToString();
                hidTaskUser.Value = row["userid"] == DBNull.Value ? "" : row["userid"].ToString();
                string status = row["status"].ToString();
                string typeID = hidTypeID.Value = row["TypeID"] == DBNull.Value ? "0" : row["TypeID"].ToString();
                string processID = row["ProcessID"].ToString();
                lblStatus.Text = status;
                hidID.Value = postID;
                // ddlProcessType.ProcessingID = status;
                lblAuthor.Text = hidTaskUser.Value;
                if (this.lblComTime.Text.Length == 0)
                {
                    //this.lblComTime.Text = "not completed";
                }
                string attachment = row["FileName"] == DBNull.Value ? "" : row["FileName"].ToString();
                if (attachment.Length > 0)
                {
                    this.linkAttachment.Text = attachment;
                }
                TaskType t = new TaskType(typeID);
                if (t.TaskStatus != TaskType.Task.Task)
                {
                    this.lblStatusMessage.Visible = false;
                    this.lblStatus.Visible = false;
                    this.lblComTime.Visible = false;
                    lblCompleteTime.Visible = false;
                }

                foreach (ListItem il in this.ddlProcessType.Items)
                {
                    if (il.Value == processID)
                    {
                        il.Selected = true;
                        break;
                    }
                }
            }
        }
        catch (Exception ex)
        {
            MessageBox.Show(this, ex.Message);
        }
    }
开发者ID:ChegnduJackli,项目名称:Projects,代码行数:58,代码来源:ShowTask_Bak.aspx.cs


示例19: EditUserTaskProgress

 public void EditUserTaskProgress(Guid userId, TaskType type, int value)
 {
     Tasks task = _task.FirstOrDefault(X => X.UserId == userId && X.Type == type);
     if (task != null)
     {
         task.Progress = value;
         _uow.SaveChanges();
     }
 }
开发者ID:YekanPedia,项目名称:ManagementSystem,代码行数:9,代码来源:TaskService.cs


示例20: CheckValidity

 public string CheckValidity(string message, TaskType taskType)
 {
     if (taskType == TaskType.Ping) {
         return CheckValidPing(message);
     } else if (taskType == TaskType.Dns) {
         return CheckValidDns(message);
     }
     return _statusBad;
 }
开发者ID:SimonHFrost,项目名称:network-trouble-shooter,代码行数:9,代码来源:StringChecker.cs



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


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# Tcl_Interp类代码示例发布时间:2022-05-24
下一篇:
C# TaskStatus类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap