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


C# Size.ShowDialog方法代码示例

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


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

示例1: button1_Click

        //Size button
        public void button1_Click(object sender, EventArgs e)
        {
            Size newSize = new Size();
            if (DialogResult.OK == newSize.ShowDialog())
            {

                circleSize = newSize.circleSize;

            }
        }
开发者ID:ManuMathews,项目名称:Backup-USB,代码行数:11,代码来源:Form1.cs

示例2: ContinueButton_Click

        private void ContinueButton_Click(object sender, EventArgs e)
        {
            string archName = ArchBinaryList.SelectedItem.ToString();
            if (FunctionList.SelectedItem.ToString() == "addr2line")
            {
                Addr2line nView = new Addr2line(SelectedNdkEnvironment, (FileInfo)BinariesList.SelectedItem, archName);
                nView.Text = "addr2line Utility";

                nView.ShowDialog();
            }
            else if (FunctionList.SelectedItem.ToString() == "elfedit")
            {
                Elfedit nView = new Elfedit(SelectedNdkEnvironment, (FileInfo)BinariesList.SelectedItem, archName);
                nView.Text = "elfedit Utility";

                nView.ShowDialog();
            }
            else if (FunctionList.SelectedItem.ToString() == "nm")
            {
                Nm nView = new Nm(SelectedNdkEnvironment, (FileInfo)BinariesList.SelectedItem, archName);
                nView.Text = "nm Utility";

                nView.ShowDialog();
            }
            else if (FunctionList.SelectedItem.ToString() == "objcopy")
            {
                Objcopy nView = new Objcopy(SelectedNdkEnvironment, (FileInfo)BinariesList.SelectedItem, archName);
                nView.Text = "objcopy Utility";

                nView.ShowDialog();
            }
            else if (FunctionList.SelectedItem.ToString() == "objdump")
            {
                Objdump nView = new Objdump(SelectedNdkEnvironment, (FileInfo)BinariesList.SelectedItem, archName);
                nView.Text = "objdump Utility";

                nView.ShowDialog();
            }
            else if (FunctionList.SelectedItem.ToString() == "ranlib")
            {
                Ranlib nView = new Ranlib(SelectedNdkEnvironment, (FileInfo)BinariesList.SelectedItem, archName);
                nView.Text = "ranlib Utility";

                nView.ShowDialog();
            }
            else if (FunctionList.SelectedItem.ToString() == "size")
            {
                Size nView = new Size(SelectedNdkEnvironment, (FileInfo)BinariesList.SelectedItem, archName);
                nView.Text = "size Utility";

                nView.ShowDialog();
            }
            else if (FunctionList.SelectedItem.ToString() == "strings")
            {
                Strings nView = new Strings(SelectedNdkEnvironment, (FileInfo)BinariesList.SelectedItem, archName);
                nView.Text = "strings Utility";

                nView.ShowDialog();
            }
            else if (FunctionList.SelectedItem.ToString() == "strip")
            {
                Strip nView = new Strip(SelectedNdkEnvironment, (FileInfo)BinariesList.SelectedItem, archName);
                nView.Text = "strip Utility";

                nView.ShowDialog();
            }
            else if (FunctionList.SelectedItem.ToString() == "readelf")
            {
                Readelf nView = new Readelf(SelectedNdkEnvironment, (FileInfo)BinariesList.SelectedItem, archName);
                nView.Text = "readelf Utility";

                nView.ShowDialog();
            }
        }
开发者ID:rLinks234,项目名称:nUtility,代码行数:74,代码来源:MainWindow.cs


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