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


C# StatusType类代码示例

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


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

示例1: MobileQueryPacket

 public MobileQueryPacket(StatusType type, Serial serial)
     : base(0x34, "Get Player Status", 10)
 {
     Stream.Write(0xEDEDEDED); // always 0xEDEDEDED in legacy client
     Stream.Write((byte)type);
     Stream.Write(serial);
 }
开发者ID:msx752,项目名称:UltimaXNA,代码行数:7,代码来源:MobileQueryPacket.cs

示例2: StatusChangedEventArgs

 public StatusChangedEventArgs(string oldText, StatusType oldType, string text, StatusType type)
 {
     this.OldText = oldText;
     this.OldType = oldType;
     this.Text = text;
     this.Type = type;
 }
开发者ID:123marvin123,项目名称:PawnPlus,代码行数:7,代码来源:StatusChangedEventArgs.cs

示例3: OldTighteningResultUpload

        public OldTighteningResultUpload(Message message)
            : base(message)
        {
            string str = Data.Substring(2, 10);
            Int64 id = Int64.Parse(str.Trim());
            try {
                TighteningID = (UInt32)id;
            } catch {
                TighteningID = 0;
            }

            VIN = Data.Substring(14, 25);
            PSetNo = Convert.ToInt32(Data.Substring(41, 3));
            BatchCount = Convert.ToInt32(Data.Substring(46, 4));

            TorqueStatus = (StatusType)(int.Parse(Data.Substring(55, 1)));
            AngleStatus = (StatusType)(int.Parse(Data.Substring(58, 1)));
            Success = (TorqueStatus == StatusType.OK && AngleStatus == StatusType.OK);

            Torque = int.Parse(Data.Substring(61, 6)) / 100.0F;
            Angle = int.Parse(Data.Substring(69, 5));

            str = Data.Substring(76, 10);
            str += " ";
            str += Data.Substring(87, 8);
            Timestamp = Convert.ToDateTime(str);

            BatchStatus = (BatchStatusType)(Data[97] - 48);
        }
开发者ID:eprimo,项目名称:Linc-Reporting-Service,代码行数:29,代码来源:OldTighteningResultUpload.cs

示例4: OnTriggerStay2D

 void OnTriggerStay2D(Collider2D other)
 {
     if (other.gameObject.tag == "Player") {
         target = other.gameObject;
         currentStatus = StatusType.Trace;
     }
 }
开发者ID:OneChance,项目名称:TombAdventure,代码行数:7,代码来源:EnemyAI.cs

示例5: RenderRow

 public override void RenderRow (IRenderContext context, int rowIndex, StatusType statusType, int width, int height)
 {
     if (statusType == StatusType.Normal && rowIndex % 2 != 0) {
         context.Theme.RenderRule (context.Context, width, height);
     }
     base.RenderRow (context, rowIndex, statusType);
 }
开发者ID:lunchtimemama,项目名称:hyena.rendering,代码行数:7,代码来源:RuledRowRenderer.cs

示例6: add

 /// <summary>
 /// New status for Event type
 /// </summary>
 /// <param name="tevent">Event type</param>
 /// <param name="tstatus">Execution status</param>
 public void add(SolutionEventType tevent, StatusType tstatus)
 {
     if(!states.ContainsKey(tevent)) {
         states[tevent] = new SynchronizedCollection<StatusType>();
     }
     states[tevent].Add(tstatus);
 }
开发者ID:hilbertdu,项目名称:vsSolutionBuildEvent,代码行数:12,代码来源:Status.cs

示例7: ThreadMain

        public void ThreadMain()
        {
            while (running)
            {
                try
                {
                    LastException = null;
                    type = StatusType.Running;
                    int toSleep = Run();
                    type = StatusType.Stopped;
                    Thread.Sleep(toSleep);
                }
                catch (Exception e)
                {
                    type = StatusType.Crashed;
                    LastException = e;
                    ExceptionTime = DateTime.Now;
                    if (!running)
                    {
                        break;
                    }
                    else
                    {
                        LogHelper.WriteLog(GetType().Name, e.ToString());
                        try
                        {

                            //Sleep a while to prevent fill the disk
                            Thread.Sleep(10000);
                        }
                        catch { }
                    }
                }
            }
        }
开发者ID:ContestHunter,项目名称:ContestHunter,代码行数:35,代码来源:Daemon.cs

示例8: SigningCertificate

 /// <summary>
 /// Instantiates SigningCertificate with the parameterized properties
 /// </summary>
 /// <param name="userName">The name of the user the signing certificate is associated with.</param>
 /// <param name="certificateId">The ID for the signing certificate.</param>
 /// <param name="certificateBody">The contents of the signing certificate.</param>
 /// <param name="status">The status of the signing certificate. <code>Active</code> means the key is valid for API calls, while <code>Inactive</code> means it is not.</param>
 public SigningCertificate(string userName, string certificateId, string certificateBody, StatusType status)
 {
     _userName = userName;
     _certificateId = certificateId;
     _certificateBody = certificateBody;
     _status = status;
 }
开发者ID:borik,项目名称:aws-sdk-net,代码行数:14,代码来源:SigningCertificate.cs

示例9: UpdateCourseTopicAssignment

        private static void UpdateCourseTopicAssignment(long? courseTopicAssignmentId, long? employeeCourseAssignmentId, int? courseTopicId, bool completed,
            StatusType section, int sequence)
        {

            DBHelper.ExecuteNonQuery(
                new SqlCommand()
                    .WithConnection(DBHelper.ConnectionString)
                    .ForProcedure("UpdateCourseTopicAssignment",
                        x => x.WithParam("@CourseTopicAssignmentID", courseTopicAssignmentId, id => id > 0)
                              .WithParam("@EmployeeCourseAssignmentID", employeeCourseAssignmentId, id => id > 0)
                              .WithParam("@CourseTopicID", courseTopicId, id => id > 0)
                              .WithParam("@Completed", completed)
                              .WithParam("@Started", (bool?)null)
                              .WithParam("@Notified", (bool?)null)
                              .WithParam("@Section", Translator.ToDBValue(section))
                              .WithParam("@SectionSequence", (byte)sequence)
                    ),
                true);
            //new SqlCommand(@"UpdateCourseTopicAssignment") { CommandType = CommandType.StoredProcedure },
            //new SqlParameter { ParameterName = "@CourseTopicAssignmentID", DbType = DbType.Int64, Value = ToParamValue(courseTopicAssignmentId, id => id > 0) },
            //new SqlParameter { ParameterName = "@EmployeeCourseAssignmentID", DbType = DbType.Int64, Value = ToParamValue(employeeCourseAssignmentId,id=>id>0) },
            //new SqlParameter { ParameterName = "@CourseTopicID", DbType = DbType.Int32, Value = OrDefault(courseTopicId,DBNull.Value,id=>id>0) },
            //new SqlParameter { ParameterName = "@Completed", DbType = DbType.Boolean, Value = completed },
            //new SqlParameter { ParameterName = "@Started", DbType = DbType.Boolean, Value = DBNull.Value },
            //new SqlParameter { ParameterName = "@Notified", DbType = DbType.Boolean, Value = DBNull.Value },
            //new SqlParameter { ParameterName = "@Section", DbType = DbType.String, Value = Translator.ToDBValue(section) },
            //new SqlParameter { ParameterName = "@SectionSequence", DbType = DbType.Byte, Value = sequence });
        }
开发者ID:zeldafreak,项目名称:Area51,代码行数:28,代码来源:AssignmentRepositorycs.cs

示例10: AccessKey

 /// <summary>
 /// Instantiates AccessKey with the parameterized properties
 /// </summary>
 /// <param name="userName">Name of the user the key is associated with.</param>
 /// <param name="accessKeyId">The ID for this access key.</param>
 /// <param name="status">The status of the access key. <code>Active</code> means the key is valid for API calls, while <code>Inactive</code> means it is not.</param>
 /// <param name="secretAccessKey">The secret key used to sign requests.</param>
 public AccessKey(string userName, string accessKeyId, StatusType status, string secretAccessKey)
 {
     _userName = userName;
     _accessKeyId = accessKeyId;
     _status = status;
     _secretAccessKey = secretAccessKey;
 }
开发者ID:wmatveyenko,项目名称:aws-sdk-net,代码行数:14,代码来源:AccessKey.cs

示例11: OnTriggerExit2D

 void OnTriggerExit2D(Collider2D other)
 {
     if (other.gameObject.tag == "Player") {
         Patrol ();
         currentStatus = StatusType.Patrol;
     }
 }
开发者ID:OneChance,项目名称:TombAdventure,代码行数:7,代码来源:EnemyAI.cs

示例12: UserInfo

 /// <summary>
 /// 类型:方法
 /// 名称:UserInfo
 /// 作者:taixihuase
 /// 作用:通过参数值构造 UserInfo 对象
 /// 编写日期:2015/7/12
 /// </summary>
 /// <param name="guid"></param>
 /// <param name="uniqueId"></param>
 /// <param name="account"></param>
 /// <param name="nickname"></param>
 /// <param name="status"></param>
 public UserInfo(Guid guid, string account, int uniqueId = -1, string nickname = "", StatusType status = StatusType.Default)
 {
     Guid = guid;
     UniqueId = uniqueId;
     Account = account;
     Nickname = nickname;
     Status = status;
 }
开发者ID:taixihuase,项目名称:SiegeOnline,代码行数:20,代码来源:UserInfo.cs

示例13: AgreementException

 public AgreementException(StatusType status, FaultType fault, CommonOutputType commonOutput, RecordCommonOutputType recordCommonOutput)
     : base(status.Code == "200" || status.Code == "400" ? fault.Message.Value : status.Message.Single().Value)
 {
     this.status = status;
     this.fault = fault;
     this.commonOutput = commonOutput;
     this.recordCommonOutput = recordCommonOutput;
 }
开发者ID:svn2github,项目名称:ehi,代码行数:8,代码来源:AgreementException.cs

示例14: StatusText

        public StatusText(GameObject obj, StatusType type, string text)
        {
            font = GameManager.TheGameManager.Font;

            this.type = type;
            this.text = text;
            this.owner = obj;
            this.Position = owner.Center;
        }
开发者ID:ndssia,项目名称:Project-Corsair---Platformer,代码行数:9,代码来源:StatusText.cs

示例15: StatusText

        public StatusText(Unit owner, StatusType type, string text)
        {
            font = GameManager.TheGameManager.defaultFont;

            this.type = type;
            this.text = text;
            this.owner = owner;
            this.Position = owner.Center;
        }
开发者ID:ndssia,项目名称:Project-Corsair,代码行数:9,代码来源:StatusText.cs


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