本文整理汇总了C#中Check.Show方法的典型用法代码示例。如果您正苦于以下问题:C# Check.Show方法的具体用法?C# Check.Show怎么用?C# Check.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类Check
的用法示例。
在下文中一共展示了Check.Show方法的14个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: tabOther1GetHeadCreate_Click
private void tabOther1GetHeadCreate_Click(object sender, RoutedEventArgs e)
{
if (tell2)
{
this.ShowMessageAsync(OtherHelpGetHeadNeedInternet, OtherHelpGetHeadHelp, MessageDialogStyle.Affirmative, new MetroDialogSettings() { AffirmativeButtonText = FloatConfirm, NegativeButtonText = FloatCancel, AnimateShow = true });
tell2 = false;
}
else
{
if (!tabOther1GetHeadCode.IsChecked.Value)
{
string playerName = tabOther1GetHeadName.Text;
string com = HeadBack(playerName);
BitmapSource img = HeadBackImg(playerName);
Check checkbox = new Check();
checkbox.showTextAndImage(com, playerName, img, tabOther1GetHeadFullBody.IsChecked.Value);
checkbox.Show();
}
else
{
string pngURL = tabOther1GetHeadName.Text;
string com = "{textures:{SKIN:{url:\"" + pngURL + "\"}}}";
com = Base64Encode(com);
string give = "/give @p minecraft:skull 1 3 {display:{Name:\"Head\"},SkullOwner:{Properties:{textures:[{Value:\"" + com + "\"}]}}}";
Check checkbox = new Check();
checkbox.showText(give, OtherHelpGetHeadTitle + pngURL);
checkbox.Show();
}
}
}
示例2: tabOther1LockCreate_Click
private void tabOther1LockCreate_Click(object sender, RoutedEventArgs e)
{
AllSelData asd = new AllSelData();
string temp = "/setblock ~ ~1 ~ " + asd.getItem(tabOther1LockItem.SelectedIndex) + " 0 replace {Lock:\"" + tabOther1LockPassword.Text + "\"}";
finalStr = temp;
Check checkbox = new Check();
checkbox.showText(finalStr);
checkbox.Show();
}
示例3: tabOther1ClearCreate_Click
private void tabOther1ClearCreate_Click(object sender, RoutedEventArgs e)
{
AllSelData asd = new AllSelData();
string temp = "/clear @p " + asd.getItem(globalItemSel) + " " + globalItemCount + " " + globalItemMeta;
if (tabOther1ClearHasName.IsChecked.Value || tabOther1ClearHasEnchant.IsChecked.Value || tabOther1ClearHasAttr.IsChecked.Value)
{
temp += " {";
}
if (tabOther1ClearHasName.IsChecked.Value)
{
temp += globalNLString + ",";
}
if (tabOther1ClearHasEnchant.IsChecked.Value)
{
temp += globalEnchString + ",";
}
if (tabOther1ClearHasAttr.IsChecked.Value)
{
temp += globalAttrString + ",";
}
if (globalHideflag != "")
{
temp += globalHideflag + ",";
}
if (tabOther1ClearHasName.IsChecked.Value || tabOther1ClearHasEnchant.IsChecked.Value || tabOther1ClearHasAttr.IsChecked.Value || globalHideflag != "")
{
if (temp.Length >= 1)
{
temp = temp.Remove(temp.Length - 1, 1);
}
else
{
//errorC = true;
}
temp += "}";
}
finalStr = temp;
Check checkbox = new Check();
checkbox.showText(finalStr);
checkbox.Show();
}
示例4: tabOther1TestforInvCreate_Click
private void tabOther1TestforInvCreate_Click(object sender, RoutedEventArgs e)
{
AllSelData asd = new AllSelData();
string temp = "/testfor @p {Inventory:[{Slot:" + tabOther1TestforInvSlot.Value + "b,id:\"" + asd.getItem(tabOther1TestforInvItem.SelectedIndex) + "\"";
if (tabOther1TestforInvCount.Value > 1)
{
temp = temp + ",Count:" + tabOther1TestforInvCount.Value + "b";
}
if (tabOther1TestforInvMeta.Value > 0)
{
temp = temp + ",Damage:" + tabOther1TestforInvMeta.Value + "s";
}
if (globalNLString.Length > 0 || globalEnchString.Length > 0 || globalAttrString.Length > 0)
{
string tagTemp = "";
if (globalNLString.Length > 0)
{
tagTemp = tagTemp + globalNLString + ",";
}
if (globalEnchString.Length > 0)
{
tagTemp = tagTemp + globalEnchString + ",";
}
if (globalAttrString.Length > 0)
{
tagTemp = tagTemp + globalAttrString + ",";
}
if (globalHideflag != "")
{
tagTemp += globalHideflag + ",";
}
if (tagTemp.Length >= 1)
{
tagTemp = tagTemp.Remove(tagTemp.Length - 1, 1);
}
temp = temp + ",tag:{" + tagTemp + "}";
}
temp += "}]}";
finalStr = temp;
Check checkbox = new Check();
checkbox.showText(finalStr);
checkbox.Show();
}
示例5: tabOther1TestforHotCreate_Click
private void tabOther1TestforHotCreate_Click(object sender, RoutedEventArgs e)
{
string temp = "/testfor @p {SelectedItemSlot:" + tabOther1TestforHotNum.Value + "}";
finalStr = temp;
Check checkbox = new Check();
checkbox.showText(finalStr);
checkbox.Show();
}
示例6: tabOther1TNTCreate_Click
private void tabOther1TNTCreate_Click(object sender, RoutedEventArgs e)
{
if (mcVersion == "1.8" || mcVersion == "1.9/1.10")
{
finalStr = "/summon PrimedTnt ~ ~ ~ {Motion:[" + tabOther1TNTDx.Value + ".0," + tabOther1TNTDy.Value + ".0," + tabOther1TNTDz.Value + ".0],Fuse:" + tabOther1TNTFuse.Value + "}";
}
else
{
finalStr = "/summon minecraft:tnt ~ ~ ~ {Motion:[" + tabOther1TNTDx.Value + ".0," + tabOther1TNTDy.Value + ".0," + tabOther1TNTDz.Value + ".0],Fuse:" + tabOther1TNTFuse.Value + "}";
}
Check checkbox = new Check();
checkbox.showText(finalStr);
checkbox.Show();
}
示例7: tabOther1JukeboxCreate_Click
private void tabOther1JukeboxCreate_Click(object sender, RoutedEventArgs e)
{
if (tabOther1JukeboxItemSel.SelectedIndex < 0)
{
tabOther1JukeboxItemSel.SelectedIndex = 0;
}
AllSelData asd = new AllSelData();
string temp = "/setblock ~ ~1 ~ minecraft:jukebox 1 replace {RecordItem:{id:\"" + asd.getItem(tabOther1JukeboxItemSel.SelectedIndex) + "\",Count:" + tabOther1JukeboxCount.Value + "b,Damage:" + tabOther1JukeboxMeta.Value + "s";
string nbt = "";
if (tabOther1JukeboxHasNBT.IsChecked.Value)
{
if (globalEnchString != "")
{
nbt += globalEnchString + ",";
}
if (globalNLString != "")
{
nbt += globalNLString + ",";
}
if (globalAttrString != "")
{
nbt += globalAttrString + ",";
}
if (globalHideflag != "")
{
nbt += globalHideflag + ",";
}
if (globalEnchString != "" || globalNLString != "" || globalAttrString != "" || globalHideflag != "")
{
if (nbt.Length >= 1)
{
nbt = nbt.Remove(nbt.Length - 1, 1);
}
else
{
//errorC = true;
}
}
if (nbt != "") nbt += ",";
temp = temp + ",tag:{" + nbt + "HideFlags:" + globalHideSelIndex + "}";
}
temp += "}}";
finalStr = temp;
Check checkbox = new Check();
checkbox.showText(finalStr);
checkbox.Show();
}
示例8: tabOther1ItemFlyRemove_Click
private void tabOther1ItemFlyRemove_Click(object sender, RoutedEventArgs e)
{
string temp = "/kill @e[tag=HoloItems,r=1]";
finalStr = temp;
Check checkbox = new Check();
checkbox.showText(finalStr);
checkbox.Show();
}
示例9: tabOther1ItemFlyCreate_Click
private void tabOther1ItemFlyCreate_Click(object sender, RoutedEventArgs e)
{
if (tabOther1ItemFlySel.SelectedIndex < 0)
{
tabOther1ItemFlySel.SelectedIndex = 0;
}
string canget = "";
if (tabOther1ItemFlyCantGet.IsChecked.Value) canget = "32767"; else canget = "0";
AllSelData asd = new AllSelData();
finalStr = "/summon ArmorStand ~ ~1 ~ {Tags:[\"HoloItems\"],PersistenceRequired:1b,DisabledSlots:2039583,NoGravity:1b,Marker:1b,Invulnerable:1b,Invisible:1b,Passengers:[0:{id:Item,Tags:[\"HoloItems\"],Item:{id:\"" + asd.getItem(tabOther1ItemFlySel.SelectedIndex) + "\",Count:" + tabOther1ItemFlyCount.Value + "b,Damage:" + tabOther1ItemFlyDamage.Value + "s},PickupDelay:" + canget + ",Age:-32768}]}";
Check checkbox = new Check();
checkbox.showText(finalStr);
checkbox.Show();
}
示例10: tabOther1WordCreate_Click
private void tabOther1WordCreate_Click(object sender, RoutedEventArgs e)
{
finalStr = "/summon ArmorStand ~ ~1 ~ {Tags:[\"HoloText\"],PersistenceRequired:1b,DisabledSlots:2039583,Invulnerable:1b,NoGravity:1b,Invisible:1b,CustomName:\"" + tabOther1Word.Text + "\",CustomNameVisible:true}";
Check checkbox = new Check();
checkbox.showText(finalStr);
checkbox.Show();
}
示例11: tabOther1WordRemove_Click
private void tabOther1WordRemove_Click(object sender, RoutedEventArgs e)
{
finalStr = "/kill @e[tag=HoloText,type=ArmorStand,r=3,c=1]";
Check checkbox = new Check();
checkbox.showText(finalStr);
checkbox.Show();
}
示例12: tabOther1HatCreate_Click
private void tabOther1HatCreate_Click(object sender, RoutedEventArgs e)
{
if (tabOther1HatSel.SelectedIndex < 0)
{
tabOther1HatSel.SelectedIndex = 0;
}
string nbt = "{";
if (globalEnchString != "")
{
nbt += globalEnchString + ",";
}
if (globalNLString != "")
{
nbt += globalNLString + ",";
}
if (globalAttrString != "")
{
nbt += globalAttrString + ",";
}
if (globalHideflag != "")
{
nbt += globalHideflag + ",";
}
if (globalEnchString != "" || globalNLString != "" || globalAttrString != "" || globalHideflag != "")
{
if (nbt.Length >= 1)
{
nbt = nbt.Remove(nbt.Length - 1, 1);
}
else
{
//errorC = true;
}
}
nbt += "}";
AllSelData asd = new AllSelData();
string temp = "/replaceitem entity @e[type=Player,c=1] slot.armor.head " + asd.getItem(tabOther1HatSel.SelectedIndex) + " " + tabOther1HatNum.Value + " " + tabOther1HatDamage.Value;
if (tabOther1HatNBT.IsChecked.Value)
{
temp = temp + " " + nbt;
}
finalStr = temp;
Check checkbox = new Check();
checkbox.showText(finalStr);
checkbox.Show();
}
示例13: checkBtn_Click
private void checkBtn_Click(object sender, RoutedEventArgs e)
{
Check checkbox = new Check();
checkbox.showText(finalStr);
checkbox.Show();
}
示例14: bCreate_Click
private void bCreate_Click(object sender, RoutedEventArgs e)
{
string fir = "";
string sec = "";
if (South.IsChecked.Value)
{
fir = "/testforblock ~ ~-1 ~-3 dropper 2";
sec = "/blockdata ~ ~-1 ~-5";
}
else if (North.IsChecked.Value)
{
fir = "/testforblock ~ ~-1 ~3 dropper 3";
sec = "/blockdata ~ ~-1 ~5";
}
else if (East.IsChecked.Value)
{
fir = "/testforblock ~-3 ~-1 ~ dropper 4";
sec = "/blockdata ~-5 ~-1 ~";
}
else if (West.IsChecked.Value)
{
fir = "/testforblock ~3 ~-1 ~ dropper 5";
sec = "/blockdata ~5 ~-1 ~";
}
string firstBlock = "";
if (CustomNameCheck.IsChecked.Value) { firstBlock += " {CustomName:\"" + CustomNameBox.Text + "\",Items:["; }
else { firstBlock += " {Items:["; }
if (item1 != "") firstBlock += item1 + ",";
if (item2 != "") firstBlock += item2 + ",";
if (item3 != "") firstBlock += item3 + ",";
if (item4 != "") firstBlock += item4 + ",";
if (item5 != "") firstBlock += item5 + ",";
if (item6 != "") firstBlock += item6 + ",";
if (item7 != "") firstBlock += item7 + ",";
if (item8 != "") firstBlock += item8 + ",";
if (item9 != "") firstBlock += item9 + ",";
if (firstBlock != " {Items:[") firstBlock = firstBlock.Remove(firstBlock.Count() - 1, 1);
string secondBlock = "";
if (CustomNameCheck.IsChecked.Value) { secondBlock += " {CustomName:\"" + CustomNameBox_Copy.Text + "\",Items:["; }
else { secondBlock += " {Items:["; }
if (item1_Copy != "") secondBlock += item1_Copy + ",";
if (item2_Copy != "") secondBlock += item2_Copy + ",";
if (item3_Copy != "") secondBlock += item3_Copy + ",";
if (item4_Copy != "") secondBlock += item4_Copy + ",";
if (item5_Copy != "") secondBlock += item5_Copy + ",";
if (item6_Copy != "") secondBlock += item6_Copy + ",";
if (item7_Copy != "") secondBlock += item7_Copy + ",";
if (item8_Copy != "") secondBlock += item8_Copy + ",";
if (item9_Copy != "") secondBlock += item9_Copy + ",";
if (secondBlock != " {Items:[") secondBlock = secondBlock.Remove(secondBlock.Count() - 1, 1);
firstBlock = fir + firstBlock + "]}";
secondBlock = sec + secondBlock + "]}";
//判断是否含有颜色代码
if (firstBlock.IndexOf("§") != -1)
{
FixColorCode fcc = new FixColorCode();
fcc.setStr(firstBlock);
fcc.fixColor();
firstBlock = fcc.getStr();
fcc.Close();
}
if (secondBlock.IndexOf("§") != -1)
{
FixColorCode fcc = new FixColorCode();
fcc.setStr(secondBlock);
fcc.fixColor();
secondBlock = fcc.getStr();
fcc.Close();
}
Check cbox2 = new Check();
cbox2.showText(secondBlock, CCBack);
cbox2.Show();
Check cbox = new Check();
cbox.showText(firstBlock, CCFront);
cbox.Show();
}