本文整理汇总了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;
}
示例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;
}
示例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");
}
}
}
示例4: VertexSourceAdapter
public VertexSourceAdapter(IVertexSource vertexSource, IGenerator generator)
{
markers = new null_markers();
this.VertexSource = vertexSource;
this.generator = generator;
m_status = status.initial;
}
示例5: InitializationServer
public void InitializationServer()
{
serverCommand.StartListener();
dataOfThisGame = new GameData();
currentStatus = status.on;
WorkerThread();
}
示例6: DBSearch
public DBSearch(string qField, string qTerm, status qStatus, gender qGender)
{
this.queryField = qField;
this.queryTerm = qTerm;
this.queryGender = qGender;
this.queryStatus = qStatus;
}
示例7: Complete
public void Complete()
{
if (this.currentStatus == status.Open)
{
this.currentStatus = status.Solved;
this.endDate = DateTime.Now;
}
}
示例8: Awake
void Awake()
{
currentStatus = GetComponent<status>();
if(!currentStatus)
{
Debug.LogError("No Status Component Attached");
}
}
示例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;
}
示例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>();
}
示例11: multiplicationButton_Click
// Кнопка умножения
private void multiplicationButton_Click(object sender, RoutedEventArgs e)
{
// Если у нас статуса пока нет - делаем статус "умножение" и сохраняем переменную в буффер
if (Status == status.нетСтатуса)
{
Status = status.умножение;
buffer = окноВывода.Text;
окноВывода.Text = "";
окноВывода.Focus();
}
}
示例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;
}
示例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;
}
}*/
}
示例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;
}
示例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;
}