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


C# Item.ShowDialog方法代码示例

本文整理汇总了C#中System.Item.ShowDialog方法的典型用法代码示例。如果您正苦于以下问题:C# Item.ShowDialog方法的具体用法?C# Item.ShowDialog怎么用?C# Item.ShowDialog使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在System.Item的用法示例。


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

示例1: tabOther1ClearItemSel_Click

 private void tabOther1ClearItemSel_Click(object sender, RoutedEventArgs e)
 {
     globalEnchString = "";
     globalNLString = "";
     globalAttrString = "";
     globalHideflag = "";
     globalItemSel = 0;
     globalItemCount = 0;
     globalItemMeta = 0;
     globalHideSelIndex = 0;
     Item itembox = new Item();
     itembox.ShowDialog();
     string[] tempa = itembox.returnStr();
     int[] tempb = itembox.returnStrAdver();
     if (tempa[0] != "ench:[]")
     {
         globalEnchString = tempa[0];
     }
     if (tempa[1] != "display:{}")
     {
         globalNLString = tempa[1];
     }
     if (tempa[2] != "AttributeModifiers:[]")
     {
         globalAttrString = tempa[2];
     }
     if (tempa[5] != "")
     {
         globalHideflag = tempa[5];
     }
     if (tempb[0] != 0)
     {
         globalItemSel = tempb[0];
     }
     globalItemCount = tempb[1];
     globalItemMeta = tempb[2];
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:37,代码来源:OtherMap.xaml.cs

示例2: getItem

 private string[] getItem()
 {
     Item itembox = new Item();
     itembox.ShowDialog();
     string nbt = itembox.returnStr()[10];
     int[] temp = itembox.returnStrAdver();
     AllSelData asd = new AllSelData();
     return new string[] { nbt, asd.getItemNameList(temp[0]), temp[1].ToString(), temp[2].ToString(), asd.getItem(temp[0]) };
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:9,代码来源:ChestEdit.xaml.cs

示例3: moreAttrBtn_Click

 private void moreAttrBtn_Click(object sender, RoutedEventArgs e)
 {
     Item itembox = new Item();
     itembox.ShowDialog();
     string[] tempa = itembox.returnStr();
     if (tempa[0] != "ench:[]")
     {
         globalEnchString = tempa[0];
         enchantBox.Text = globalEnchString;
     }
     else
     {
         globalEnchString = enchantBox.Text;
     }
     if (tempa[1] != "display:{}")
     {
         globalNLString = tempa[1];
         nlBox.Text = globalNLString;
     }
     else
     {
         globalNLString = nlBox.Text;
     }
     if (tempa[2] != "AttributeModifiers:[]")
     {
         globalAttrString = tempa[2];
         attrBox.Text = globalAttrString;
     }
     else
     {
         globalAttrString = attrBox.Text;
     }
     if (tempa[5] != "")
     {
         globalHideflag = tempa[5];
     }
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:37,代码来源:Potion.xaml.cs

示例4: getItemBtn_Click

 private void getItemBtn_Click(object sender, RoutedEventArgs e)
 {
     Item itembox = new Item();
     itembox.ShowDialog();
     string[] temp = itembox.returnStr();
     int[] temp2 = itembox.returnStrAdver();
     if (temp2[0] != 0)
     {
         hand.SelectedIndex = temp2[0];
     }
     if (temp2[1] != 1)
     {
         handCount.Value = temp2[1];
     }
     if (temp2[2] != 0)
     {
         handMeta.Value = temp2[2];
     }
     if (temp[10] != "")
     {
         getItemText.Text = temp[10];
     }
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:23,代码来源:At.xaml.cs

示例5: enchantMoreGetBtn_Click

 private void enchantMoreGetBtn_Click(object sender, RoutedEventArgs e)
 {
     Item itembox = new Item();
     itembox.ShowDialog();
     string[] temp = itembox.returnStr();
     if (temp[0] != "ench:[]")
     {
         globalEnchString = temp[0];
     }
     if (temp[1] != "display:{}")
     {
         globalNLString = temp[1];
     }
     if (temp[2] != "AttributeModifiers:[]")
     {
         globalAttrString = temp[2];
     }
     if (temp[5] != "")
     {
         globalHideflag = temp[5];
     }
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:22,代码来源:Banner.xaml.cs

示例6: itemBtn_Click

 private void itemBtn_Click(object sender, RoutedEventArgs e)
 {
     this.Hide();
     Item itembox = new Item();
     itembox.ShowDialog();
     this.Show();
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:7,代码来源:MainWindow.xaml.cs

示例7: functionsRandomEnchantBtn_Click

 private void functionsRandomEnchantBtn_Click(object sender, RoutedEventArgs e)
 {
     Item itembox = new Item();
     itembox.ShowDialog();
     string enchlist = itembox.returnStr()[11];
     string[] ench = enchlist.Split(',');
     globalEnchList = "[";
     for (int i = 0; i < ench.Length; i++)
     {
         globalEnchList += "\"" + ench[i] + "\",";
     }
     if (globalEnchList != "[") globalEnchList = globalEnchList.Substring(0, globalEnchList.Length - 1);
     globalEnchList += "]";
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:14,代码来源:LootTable.xaml.cs

示例8: EntryGetItem_Click

 private void EntryGetItem_Click(object sender, RoutedEventArgs e)
 {
     Item itembox = new Item();
     itembox.ShowDialog();
     EntryItemSel.SelectedIndex = itembox.returnStrAdver()[0];
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:6,代码来源:LootTable.xaml.cs


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