本文整理汇总了C#中status类的典型用法代码示例。如果您正苦于以下问题:C# status类的具体用法?C# status怎么用?C# status使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
status类属于命名空间,在下文中一共展示了status类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的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
示例16: Update
void Update()
{
m_acumTime += Time.deltaTime;
particles.SetActive (false);
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.RUNEFULL;
m_acumTime =0;
}
break;
case status.RUNEFULL:
break;
case status.COOLDOWN:
particles.SetActive (true);
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,代码行数:50,代码来源:RuneSpot.cs
示例17: Form1
public Form1()
{
InitializeComponent();
statSetter = ((message) => { m_statusText.Text = message; });
ToggleTreeLoadIcon(false);
ToggleListLoadIcon(false);
//Ken added 11-9-12
listView1.DoubleClick +=listView1_DoubleClick;
//
SetupWorker();
LoadMoldListView();
}
开发者ID:GMTurbo,项目名称:Shell,代码行数:14,代码来源:Form1.cs
示例18: button16_Click
status Status;//текушее состояние
// Кнопка "=" - считает результат по тому статусу, который выполняется
private void button16_Click(object sender, RoutedEventArgs e)
{
try
{
// если текущий статус деление
if (Status == status.деление)
{
Status = status.нетСтатуса;
double buff2 = double.Parse(окноВывода.Text);
if(buff2==0)
{
MessageBox.Show("Деление на ноль!");
return;
}
окноВывода.Text = (double.Parse(buffer) / buff2).ToString();
}
// если текущий статус умножение
if (Status == status.умножение)
{
Status = status.нетСтатуса;
double buff2 = double.Parse(окноВывода.Text);
окноВывода.Text = (double.Parse(buffer) * buff2).ToString();
}
// если текущий статус вычитание
if (Status == status.вычитание)
{
Status = status.нетСтатуса;
double buff2 = double.Parse(окноВывода.Text);
окноВывода.Text = (double.Parse(buffer) - buff2).ToString();
}
// если текущий статус добавление
if (Status == status.сложение)
{
Status = status.нетСтатуса;
double buff2 = double.Parse(окноВывода.Text);
окноВывода.Text = (double.Parse(buffer) + buff2).ToString();
}
}
catch
{
}
}
开发者ID:GarageInc,项目名称:all,代码行数:48,代码来源:MainWindow.xaml.cs
示例19: Connect
public void Connect(string ip, int port)
{
//TODO change this ti lowercase.
try {
//Set the Host IP
hostIP = ip;
connectionStatus = status.connecting;
//Register and Initialize the TCP Channel
InitializeRemoteServer();
hostInstance = new ScreenObject();
castTimer.Enabled = true;
connected = true;
btnConnect.ImageIndex = 1;
btnConnect.Text = "Disconnect";
updatePanel(pnlBottom, true);
updateText(lblMessage, "Connected to " + hostIP + " - " + DateTime.Now);
} catch (Exception exc) {
updateText(lblMessage, exc.Message);
}
}
开发者ID:keithloughnane,项目名称:Omnipresent,代码行数:23,代码来源:VNCClientForm.cs
示例20: CommPSO2Bot
/// <summary>
/// コンストラクタ
/// </summary>
public CommPSO2Bot()
{
//タイムライン名をデバッグのため変更tritri @sakatri
//botName = "sakatri";
twitterAccess = new CommTwitterizer();
beforeTime = DateTime.Now;
this.intervalMinutes = 1;
this.currentStatus = status.OverTimeQuest;
this.selectShipName = Properties.Settings.Default.saveShipName;
var shipsBotUrl
= new List<string>
(ConfigurationManager.AppSettings.Get("shipsBotUrl").Split(new char[] { ';' }));
botUrls = new Dictionary<string, string>();
int counter=1;
foreach (var url in shipsBotUrl)
{
//botアプリ内でのship名は"ship+ship番号"となります
botUrls.Add("ship" + counter.ToString(), url);
counter++;
}
}
开发者ID:popesan,项目名称:AlertPSO2EmergencyQuest,代码行数:26,代码来源:CommPSO2Bot.cs
注:本文中的status类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论