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


C# Check.ShowDialog方法代码示例

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


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

示例1: Main

        static void Main()
        {
            Check check;
            DialogResult res = DialogResult.Retry;

            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);

            while (res == DialogResult.Retry)
            {
                using (check = new Check())
                {
                    res = check.ShowDialog();
                    if (res == DialogResult.Yes)
                    {
                        Application.Run(new mainForm());
                    }
                }
            }
        }
开发者ID:JDuverge,项目名称:Find-and-Pull,代码行数:20,代码来源:Program.cs

示例2: tabOther1RideHide_Click

 private void tabOther1RideHide_Click(object sender, RoutedEventArgs e)
 {
     if (mcVersion == "1.8" || mcVersion == "1.9/1.10")
     {
         string finalStr = OtherHelpSofaHelp1 + "\r\n/scoreboard objectives add MCHSofa dummy\r\n\r\n";
         finalStr += OtherHelpSofaHelp2 + "\r\n/scoreboard players set @e[type=EntityHorse] MCHSofa 1 {CustomName:\"" + OtherHelpSofa1 + "\"}\r\n" + OtherHelpSofaOR + "\r\n/scoreboard players set @e[type=EntityHorse] MCHSofa 1 {CustomName:\"" + OtherHelpSofa2 + "\"}";
         if (tabOther1RideName.Text != OtherHelpSofa1 && tabOther1RideName.Text != OtherHelpSofa2) finalStr += "\r\n" + OtherHelpSofaOR + "\r\n/scoreboard players set @e[type=EntityHorse] MCHSofa 1 {CustomName:\"" + tabOther1RideName.Text + "\"}";
         finalStr += "\r\n\r\n" + OtherHelpSofaHelp3 + "\r\n/effect @e[type=EntityHorse,score_MCHSofa_min=1] minecraft:invisibility 1000000 1 true";
         finalStr += "\r\n\r\n" + OtherHelpSofaHelp4;
     }
     else
     {
         string finalStr = OtherHelpSofaHelp1 + "\r\n/scoreboard objectives add MCHSofa dummy\r\n\r\n";
         finalStr += OtherHelpSofaHelp2 + "\r\n/scoreboard players set @e[type=minecraft:horse] MCHSofa 1 {CustomName:\"" + OtherHelpSofa1 + "\"}\r\n" + OtherHelpSofaOR + "\r\n/scoreboard players set @e[type=minecraft:horse] MCHSofa 1 {CustomName:\"" + OtherHelpSofa2 + "\"}";
         if (tabOther1RideName.Text != OtherHelpSofa1 && tabOther1RideName.Text != OtherHelpSofa2) finalStr += "\r\n" + OtherHelpSofaOR + "\r\n/scoreboard players set @e[type=minecraft:horse] MCHSofa 1 {CustomName:\"" + tabOther1RideName.Text + "\"}";
         finalStr += "\r\n\r\n" + OtherHelpSofaHelp3 + "\r\n/effect @e[type=minecraft:horse,score_MCHSofa_min=1] minecraft:invisibility 1000000 1 true";
         finalStr += "\r\n\r\n" + OtherHelpSofaHelp4;
     }
     Check checkbox = new Check();
     checkbox.showText(finalStr);
     checkbox.ShowDialog();
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:22,代码来源:OtherMap.xaml.cs

示例3: tabOther1RideCreate_Click

 private void tabOther1RideCreate_Click(object sender, RoutedEventArgs e)
 {
     string finalStr = "";
     if (mcVersion == "1.8" || mcVersion == "1.9/1.10")
     {
         finalStr = "/summon EntityHorse ";
     }
     else
     {
         finalStr = "/summon minecraft:horse ";
     }
     string pos = "~ ~-2.5 ~";
     if (tabOther1RideSel.SelectedIndex == 0) { pos = "~ ~-2.5 ~-0.15"; }
     else if (tabOther1RideSel.SelectedIndex == 1) { pos = "~ ~-2.5 ~0.15"; }
     else if (tabOther1RideSel.SelectedIndex == 2) { pos = "~-0.15 ~-2.5 ~"; }
     else { pos = "~0.15 ~-2.5 ~"; }
     finalStr += pos + " {ActiveEffects:[{Id:14,Amplifier:1,Duration:99999999,ShowParticles:0b}],Invulnerable:1,Silent:1,NoAI:1,Tame:1b";
     if (tabOther1RideRi.IsChecked.Value) { finalStr += ",Saddle:1b"; } else { finalStr += ",Saddle:0b"; }
     if (tabOther1RideChest.IsChecked.Value) { finalStr += ",CustomName:\"" + tabOther1RideName.Text + "\",Type:1,ChestedHorse:1b"; }
     else { finalStr += ",CustomName:\"" + tabOther1RideName.Text + "\",Type:0"; }
     finalStr += "}";
     Check checkbox = new Check();
     checkbox.showText(finalStr);
     checkbox.ShowDialog();
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:25,代码来源:OtherMap.xaml.cs

示例4: tabOther1GatewayBtn_Click

 private void tabOther1GatewayBtn_Click(object sender, RoutedEventArgs e)
 {
     string finalStr = "/setblock ~ ~-2 ~ minecraft:end_gateway 0 replace {ExitPortal:{X:" + tabOther1GatewayX.Value.Value + ",Y:" + tabOther1GatewayY.Value.Value + ",Z:" + tabOther1GatewayZ.Value.Value + "}";
     if (tabOther1GatewayIsExact.IsChecked.Value) finalStr += ",ExactTeleport:1b}"; else finalStr += "}";
     Check checkbox = new Check();
     checkbox.showText(finalStr);
     checkbox.ShowDialog();
 }
开发者ID:IceLitty,项目名称:Minecraft-Command-Helper,代码行数:8,代码来源:OtherMap.xaml.cs


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