本文整理汇总了C#中Brand.getNumber方法的典型用法代码示例。如果您正苦于以下问题:C# Brand.getNumber方法的具体用法?C# Brand.getNumber怎么用?C# Brand.getNumber使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Brand
的用法示例。
在下文中一共展示了Brand.getNumber方法的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: chackBrandNumber
private bool chackBrandNumber(Brand b1,Brand b2)
{
if (b1.getNumber() == b2.getNumber())
return true;
else
return false;
}
示例2: removeBrand
public bool removeBrand(Brand brand)
{
Brand b;
for (int i = 0; i < brandarray.Count; i++)
{
b = (Brand)brandarray[i];
if (b.getClass() == brand.getClass())
if (b.getNumber() == brand.getNumber())
{
brandarray.RemoveAt(i);
return true;
}
}
return false;
}
示例3: showBrand
public void showBrand(Brand brand)
{
StringBuilder s = new StringBuilder();
s.Append(brand.getNumber() + "," + brand.getClass() + "\n");
s.Append(Settings.Default.Debug_Number);
s.Append(": " + brand.getNumber() + "\n");
s.Append(Settings.Default.Debug_Class);
s.Append(": " + brand.getClass() + "\n");
s.Append(Settings.Default.Debug_Source);
s.Append(": " + brand.Source + "\n");
s.Append(Settings.Default.Debug_Team);
s.Append(": " + brand.Team + "\n");
s.Append(Settings.Default.Debug_IsCanSee);
s.Append(": " + brand.IsCanSee + "\n");
s.Append(Settings.Default.WhoPush);
s.Append(": " + all.getLocation.location_to_string(brand.WhoPush) + "\n");
//s.Append(Settings.Default.Debug_Picture);
//s.Append(":\nX:" + Location.X + " Y: " + Location.Y + "\n");
//s.Append(Settings.Default.Debug_Picture_Width);
//s.Append(": " + Size.Width + "\n");
//s.Append(Settings.Default.Debug_Picture_Height);
//s.Append(": " + Size.Height + "\n");
MessageBox.Show(s.ToString(), Settings.Default.Debug);
}
示例4: getImage
public static Image getImage(Brand brand)
{
switch (brand.getClass())
{
case "萬":
switch (brand.getNumber())
{
case 1:
return Resources.ten1;
case 2:
return Resources.ten2;
case 3:
return Resources.ten3;
case 4:
return Resources.ten4;
case 5:
return Resources.ten5;
case 6:
return Resources.ten6;
case 7:
return Resources.ten7;
case 8:
return Resources.ten8;
case 9:
return Resources.ten9;
default:
return null;
}
case "索":
switch (brand.getNumber())
{
case 1:
return Resources.rope1;
case 2:
return Resources.rope2;
case 3:
return Resources.rope3;
case 4:
return Resources.rope4;
case 5:
return Resources.rope5;
case 6:
return Resources.rope6;
case 7:
return Resources.rope7;
case 8:
return Resources.rope8;
case 9:
return Resources.rope9;
default:
return null;
}
case "筒":
switch (brand.getNumber())
{
case 1:
return Resources.tobe1;
case 2:
return Resources.tobe2;
case 3:
return Resources.tobe3;
case 4:
return Resources.tobe4;
case 5:
return Resources.tobe5;
case 6:
return Resources.tobe6;
case 7:
return Resources.tobe7;
case 8:
return Resources.tobe8;
case 9:
return Resources.tobe9;
default:
//.........这里部分代码省略.........
示例5: getSound
public static UnmanagedMemoryStream getSound(Brand brand)
{
switch (brand.getClass())
{
case "萬":
switch (brand.getNumber())
{
case 1:
return Resources.ten1s;
case 2:
return Resources.ten2s;
case 3:
return Resources.ten3s;
case 4:
return Resources.ten4s;
case 5:
return Resources.ten5s;
case 6:
return Resources.ten6s;
case 7:
return Resources.ten7s;
case 8:
return Resources.ten8s;
case 9:
return Resources.ten9s;
default:
return null;
}
case "索":
switch (brand.getNumber())
{
case 1:
return Resources.rope1s;
case 2:
return Resources.rope2s;
case 3:
return Resources.rope3s;
case 4:
return Resources.rope4s;
case 5:
return Resources.rope5s;
case 6:
return Resources.rope6s;
case 7:
return Resources.rope7s;
case 8:
return Resources.rope8s;
case 9:
return Resources.rope9s;
default:
return null;
}
case "筒":
switch (brand.getNumber())
{
case 1:
return Resources.tobe1s;
case 2:
return Resources.tobe2s;
case 3:
return Resources.tobe3s;
case 4:
return Resources.tobe4s;
case 5:
return Resources.tobe5s;
case 6:
return Resources.tobe6s;
case 7:
return Resources.tobe7s;
case 8:
return Resources.tobe8s;
case 9:
return Resources.tobe9s;
default:
//.........这里部分代码省略.........
示例6: setBrand
void setBrand(Brand brand)
{
from = brand.WhoPush;
Number = brand.getNumber();
IsCanSee = brand.IsCanSee;
}
示例7: copyBrand
public Brand copyBrand(Brand brand)
{
Brand newBrand = new TenThousandBrand(brand.getNumber());
newBrand.WhoPush = brand.WhoPush;
newBrand.IsCanSee = brand.IsCanSee;
return newBrand;
}
示例8: PlaySound
/// <summary>
/// 播放打牌聲音
/// </summary>
internal void PlaySound(Brand brand)
{
SoundPlayer soundplayer = new SoundPlayer();
switch (brand.getClass())
{
case "萬":
switch (brand.getNumber())
{
case 1:
soundplayer.Stream = Resources.ten1s;
break;
case 2:
soundplayer.Stream = Resources.ten2s;
break;
case 3:
soundplayer.Stream = Resources.ten3s;
break;
case 4:
soundplayer.Stream = Resources.ten4s;
break;
case 5:
soundplayer.Stream = Resources.ten5s;
break;
case 6:
soundplayer.Stream = Resources.ten6s;
break;
case 7:
soundplayer.Stream = Resources.ten7s;
break;
case 8:
soundplayer.Stream = Resources.ten8s;
break;
case 9:
soundplayer.Stream = Resources.ten9s;
break;
}
break;
case "索":
switch (brand.getNumber())
{
case 1:
soundplayer.Stream = Resources.rope1s;
break;
case 2:
soundplayer.Stream = Resources.rope2s;
break;
case 3:
soundplayer.Stream = Resources.rope3s;
break;
case 4:
soundplayer.Stream = Resources.rope4s;
break;
case 5:
soundplayer.Stream = Resources.rope5s;
break;
case 6:
soundplayer.Stream = Resources.rope6s;
break;
case 7:
soundplayer.Stream = Resources.rope7s;
break;
case 8:
soundplayer.Stream = Resources.rope8s;
break;
case 9:
soundplayer.Stream = Resources.rope9s;
break;
}
break;
case "筒":
switch (brand.getNumber())
{
case 1:
soundplayer.Stream = Resources.tobe1s;
break;
case 2:
soundplayer.Stream = Resources.tobe2s;
break;
case 3:
soundplayer.Stream = Resources.tobe3s;
break;
case 4:
soundplayer.Stream = Resources.tobe4s;
break;
case 5:
soundplayer.Stream = Resources.tobe5s;
break;
case 6:
soundplayer.Stream = Resources.tobe6s;
break;
case 7:
soundplayer.Stream = Resources.tobe7s;
break;
case 8:
soundplayer.Stream = Resources.tobe8s;
break;
case 9:
//.........这里部分代码省略.........