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

C# StatusType类代码示例

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

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



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


示例16: Select

        public IList<StatusType> Select(StatusType data)
        {
            IList<StatusType> datos = new List<StatusType>();
            datos = GetHsql(data).List<StatusType>();
            if (!Factory.IsTransactional)
                Factory.Commit();
            return datos;

        }
开发者ID:erwin-hamid,项目名称:LogPro,代码行数:9,代码来源:DaoStatusType.cs


示例17: StatusToMessage

        private string StatusToMessage(StatusType type)
        {
            var statusString = Helper.Translate("StatusType" + type.ToString());

            if (!string.IsNullOrEmpty(statusString))
                return statusString;

            return type.ToString();

        }
开发者ID:peterluo0822,项目名称:Chat,代码行数:10,代码来源:StatusConverter.cs


示例18: User

 /// <summary>
 /// Initializes a new instance of the <see cref="User"/> class.
 /// </summary>
 /// <param name="age">The age.</param>
 /// <param name="sexType">Type of the sex.</param>
 /// <param name="statusType">Type of the status.</param>
 /// <param name="applicationId">The application id.</param>
 /// <param name="version">The version.</param>
 public User(int age, SexType sexType,
     StatusType statusType, Guid applicationId, Guid sessionId, String version)
 {
     this.ApplicationId = applicationId;
     this.Version = version;
     this.Age = age;
     this.Sex = sexType;
     this.Status = statusType;
     this.DateCreated = DateTime.Now;
     this.SessionId = sessionId;
 }
开发者ID:Appacts,项目名称:appacts-sdk-wp7,代码行数:19,代码来源:User.cs


示例19: Read

        public void Read(string[] fields)
        {
            if (fields.Length != 13)
            {
                throw new InvalidDataException(string.Format("$GPRMC sentence needs to have 13 fields, but {0} were found.", fields.Length));
            }

            int n = 0;

            if (fields[n] != "$GPRMC")
                throw new InvalidDataException(string.Format("Expected \"$GPRMC\", found \"{0}\"", fields[n]));
            n++;

            TimeSpan time = ParseTime(fields[n]);
            n++;

            if (fields[n] == "A")
                Status = StatusType.Active;
            else if (fields[n] == "V")
                Status = StatusType.Void;
            else
                throw new InvalidDataException(string.Format("Unknown status \"{0}\"", fields[n]));
            n++;

            Latitude = ParseLatitude(fields[n], fields[n + 1]);
            n += 2;

            Longitude = ParseLongitude(fields[n], fields[n + 1]);
            n += 2;

            double speed;
            if (double.TryParse(fields[n], out speed))
                GroundSpeedKnots = speed;
            n++;

            double angle;
            if (double.TryParse(fields[n], out angle))
                TrackAngle = angle;
            n++;

            int day = int.Parse(fields[n].Substring(0, 2));
            int month = int.Parse(fields[n].Substring(2, 2));
            int year = int.Parse(fields[n].Substring(4, 2));

            if (year > 90)
                year += 1900;
            else
                year += 2000;

            DateTime = new DateTime(year, month, day, time.Hours, time.Minutes, time.Seconds, time.Milliseconds, DateTimeKind.Utc);

            //Magnetic variation not implemented
            //Fix kind not implemented
        }
开发者ID:wfraser,项目名称:CanonGPSLogToGPX,代码行数:54,代码来源:RMC.cs


示例20: ToDBValue

 public static char ToDBValue(StatusType section)
 {
     switch (section)
     {
         case StatusType.Presenting:
             return 'P';
         case StatusType.Testing:
             return 'T';
     }
     return 'P';  //This is for the compiler because this will never execute, but the compiler thinks that not all code paths return a value even though they do.
 }
开发者ID:zeldafreak,项目名称:Area51,代码行数:11,代码来源:Translator.cs



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


鲜花

握手

雷人

路过

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

请发表评论

全部评论

专题导读
上一篇:
C# Statuses类代码示例发布时间:2022-05-24
下一篇:
C# StatusCodeCollection类代码示例发布时间: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