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


C# status类代码示例

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


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

示例1: step

 public step(string name, string title, long start, status status)
 {
     nameField = name;
     titleField = title;
     startField = start;
     statusField = status;
 }
开发者ID:michaelmccracken,项目名称:allure-csharp-commons,代码行数:7,代码来源:AllureModelExtensions.cs

示例2: Task

	/// <summary>
	/// Initialises a new instance of the <see cref="Task"/> class.
	/// </summary>
	/// <param name="newName">The name of the task.</param>
	/// <param name="newDesc">A description.</param>
	public Task(string newName, string newDesc)
	{
		this.name = newName;
		this.description = newDesc;
		this.startDate = DateTime.Now;
		this.currentStatus = status.Open;
	}
开发者ID:slayer3600,项目名称:BubbleWordGame,代码行数:12,代码来源:Task.cs

示例3: changeState

				public void changeState(bool Change){
			
				if (Change)
				{
					if (this.state == status.closed)
					{
						this.state = status.open;
					}	
					else 
					{
						Console.WriteLine("State is alraedy Open");
					}
				}	
				else 
				{
					if (this.state == status.open)
					{
						this.state = status.closed;
					}
					else 
					{
						Console.WriteLine("State is already closed");
					}
				}
			}
开发者ID:lukemgriffith,项目名称:csharp.playground,代码行数:25,代码来源:inheritance.cs

示例4: VertexSourceAdapter

 public VertexSourceAdapter(IVertexSource vertexSource, IGenerator generator)
 {
     markers = new null_markers();
     this.VertexSource = vertexSource;
     this.generator = generator;
     m_status = status.initial;
 }
开发者ID:jeske,项目名称:agg-sharp,代码行数:7,代码来源:VertexSourceAdapter.cs

示例5: InitializationServer

 public void InitializationServer()
 {
     serverCommand.StartListener();
     dataOfThisGame = new GameData();
     currentStatus = status.on;
     WorkerThread();
 }
开发者ID:vivaposyagina,项目名称:Server,代码行数:7,代码来源:Server.cs

示例6: DBSearch

 public DBSearch(string qField, string qTerm, status qStatus, gender qGender)
 {
     this.queryField = qField;
     this.queryTerm = qTerm;
     this.queryGender = qGender;
     this.queryStatus = qStatus;
 }
开发者ID:ZipionLive,项目名称:ExoADO-WPF,代码行数:7,代码来源:DBSearch.cs

示例7: Complete

	public void Complete()
	{
		if (this.currentStatus == status.Open)
		{
			this.currentStatus = status.Solved;
			this.endDate = DateTime.Now;
		}
	}
开发者ID:slayer3600,项目名称:BubbleWordGame,代码行数:8,代码来源:Task.cs

示例8: Awake

 void Awake()
 {
     currentStatus = GetComponent<status>();
     if(!currentStatus)
     {
         Debug.LogError("No Status Component Attached");
     }
 }
开发者ID:interwebsninja,项目名称:mp-shump,代码行数:8,代码来源:itemContainer.cs

示例9: Domino_BaseRules

        protected int who_plays; //number of actual player;

        #endregion Fields

        #region Constructors

        public Domino_BaseRules(int game_time,
            int who_plays,
            int block_of_every_player)
        {
            this.status = status.stop;
            this.game_time = game_time;
            this.who_plays = who_plays;
            this.block_of_every_player = block_of_every_player;
        }
开发者ID:kajbrz,项目名称:PolitechnikaWroclawska,代码行数:15,代码来源:Domino_BaseRules.cs

示例10: Fairway

 public Fairway(status player)
 {
     Player = player;
     Queen = false;
     Jump = false;
     StoneMove = false;
     Moves = new List<string>();
     Dests = new List<string>();
     Overs = new List<string>();
 }
开发者ID:korczis,项目名称:Rocnikac4,代码行数:10,代码来源:Fairway.cs

示例11: multiplicationButton_Click

 // Кнопка умножения
 private void multiplicationButton_Click(object sender, RoutedEventArgs e)
 {
     // Если у нас статуса пока нет - делаем статус "умножение" и сохраняем переменную в буффер
     if (Status == status.нетСтатуса)
     {
         Status = status.умножение;
         buffer = окноВывода.Text;
         окноВывода.Text = "";
         окноВывода.Focus();
     }
 }
开发者ID:GarageInc,项目名称:all,代码行数:12,代码来源:MainWindow.xaml.cs

示例12: SkillInfo

 //define information of skill. a list of skill information. could be dirty and not effective but is esay to know
 public SkillInfo(int _number, string _skillName, int _damage, int _type, int _atktype, int[] _effect, status _status, int _maxChance, int _nowChance)
 {
     skillName = _skillName;
     number = _number;
     damage = _damage;
     type = _type;
     AtkType = _atktype;
     effect = _effect;
     giveStatus = _status;
     maxChance = _maxChance;
     nowChance = _nowChance;
 }
开发者ID:POSTECH-OOP-14,项目名称:POSMON,代码行数:13,代码来源:SkillInfo.cs

示例13: Update

    void Update()
    {

		m_acumTime += Time.deltaTime;

		switch (spotStatus) {
		case status.IDLE:
			if (m_acumTime > timeToSpawnHint) {
				CreateCollectableHint();
				spotStatus = status.HINT;
				m_acumTime =0;
			}
			break;
		case status.HINT:
			if (m_acumTime > hintLifetime) {
				CreateCollectableInSpot();
				spotStatus = status.POWERUPFULL;
				m_acumTime =0;
			}
			break;
		case status.POWERUPFULL:
			if (m_acumTime > powerupLifetime) {
				spotStatus = status.COOLDOWN;
				m_acumTime =0;
			}
			break;
		case status.COOLDOWN:
			if (m_acumTime > timeToCooldown) {
				spotStatus = status.IDLE;
				m_acumTime =0;
			}
			break;
		}
		/*


        if (!isFull)
        {
            m_acumTime += Time.deltaTime;

			if (m_acumTime > timeToSpawnHint && !hasHint)
			{
				CreateCollectableHint();
				//m_acumTime =0;
			}

			if (m_acumTime > timeToSpawnPowerUp && !isFull)
            {
                CreateCollectableInSpot();
                //m_acumTime = 0;
            }
        }*/
    }
开发者ID:moraxm,项目名称:GGJ2016,代码行数:53,代码来源:PowerUpSpot.cs

示例14: FinalizationWorkingServer

 public void FinalizationWorkingServer()
 {
     serverCommand.StopListener();
     for (int i = 0; i < ClientCommand.nextID; i++)
     {
         if (clients.ContainsKey(i) && clients[i].CurrentStatus == status.on)
         {
             clients[i].Disconnect();
         }
     }
     currentStatus = status.off;
 }
开发者ID:vivaposyagina,项目名称:Server,代码行数:12,代码来源:Server.cs

示例15: getStatusString

 public static String getStatusString(status s)
 {
     if (s == status.encomendada)
         return "encomendada";
     else if (s == status.preparacao)
         return "em preparação";
     else if (s == status.pronta)
         return "pronta para entrega";
     else if (s == status.entrega)
         return "em entrega";
     else if (s == status.concluida)
         return "concluída";
     return null;
 }
开发者ID:jorgemmsilva,项目名称:TDIN-sushi,代码行数:14,代码来源:Order.cs


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