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


C# AboutForm.ShowDialog方法代码示例

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


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

示例1: Execute

 /// <summary>
 /// Shows the About form with the specified owner window.
 /// </summary>
 /// <param name="owner">Owner window.</param>
 public static void Execute(IWin32Window owner)
 {
     using (AboutForm aboutForm = new AboutForm())
     {
         aboutForm.ShowDialog(owner);
     }
 }
开发者ID:YuriyGuts,项目名称:unicode-virtual-keyboard,代码行数:11,代码来源:AboutForm.cs

示例2: About

 /// <summary>
 /// Shows the AboutForm
 /// </summary>
 private void About()
 {
     using (AboutForm af = new AboutForm())
       {
     af.ShowDialog(this);
       }
 }
开发者ID:jiangguang5201314,项目名称:DotNetFramework,代码行数:10,代码来源:MainForm.cs

示例3: infoToolStripMenuItem_Click

 private void infoToolStripMenuItem_Click(object sender, EventArgs e)
 {
     using (AboutForm form = new AboutForm())
     {
         form.ShowDialog();
     }
 }
开发者ID:phxql,项目名称:restester,代码行数:7,代码来源:MainForm.cs

示例4: barButtonItemAbout_ItemClick

 private void barButtonItemAbout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
 {
     using (var aboutForm = new AboutForm())
     {
         aboutForm.ShowDialog();
     }
 }
开发者ID:svlcode,项目名称:HomeManager,代码行数:7,代码来源:MainForm.cs

示例5: aboutButton_Click

 private void aboutButton_Click(object sender, EventArgs e)
 {
     using (var dlg = new AboutForm())
     {
         dlg.ShowDialog(this);
     }
 }
开发者ID:yvt,项目名称:VxlToObj,代码行数:7,代码来源:MainForm.cs

示例6: OpenAboutForm

 public void OpenAboutForm()
 {
     using (var form = new AboutForm())
     {
         form.ShowDialog();
     }
 }
开发者ID:moby41,项目名称:last-horizonte,代码行数:7,代码来源:WinFormsApplicationPresenter.cs

示例7: btnAbout_Click

 private void btnAbout_Click(object sender, System.EventArgs e)
 {
     using (var aboutForm = new AboutForm())
     {
         aboutForm.ShowDialog();
     }
 }
开发者ID:Orokon,项目名称:jirastopwatch,代码行数:7,代码来源:SettingsForm.cs

示例8: aboutToolStripMenuItem1_Click

 private void aboutToolStripMenuItem1_Click(object sender, EventArgs e)
 {
     using (var a = new AboutForm())
     {
         a.ShowDialog();
     }
 }
开发者ID:joshsten,项目名称:rocksmith-custom-song-toolkit,代码行数:7,代码来源:MainForm.cs

示例9: aboutMnuItem_Click

        private void aboutMnuItem_Click(object sender, EventArgs e)
        {
            AboutForm form = new AboutForm();
            if (DialogResult.OK == form.ShowDialog())
            {

            }
        }
开发者ID:resedmodel,项目名称:ResedUI,代码行数:8,代码来源:RiverSimulationForm.cs

示例10: aboutToolStripMenuItem_Click

        private void aboutToolStripMenuItem_Click(object sender, EventArgs e)
        {
            String aboutText = Properties.Resources.AboutStringRes;

            AboutForm aboutForm = new AboutForm(aboutText.Replace("#",Environment.NewLine+Environment.NewLine));
            aboutForm.StartPosition = FormStartPosition.CenterParent;
            aboutForm.ShowDialog();
        }
开发者ID:crivasg,项目名称:HWTokenLicenseChecker,代码行数:8,代码来源:HWTokenLicenseCheckerForm.cs

示例11: Show

        public static DialogResult Show(string version)
        {
            MsgBox = new AboutForm();

            MsgBox.label1.Text = version;

            MsgBox.ShowDialog();
            MsgBox.button1.Focus();
            return result;
        }
开发者ID:byrod,项目名称:YAME,代码行数:10,代码来源:AboutForm.cs

示例12: ShowModal

 public static void ShowModal()
 {
     using (AboutForm af = new AboutForm())
     {
         string version = System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString();
         af.ProgramVersion = version.Substring(0, version.Length - 4);
         af.Title = Util.GetTitle();
         af.ShowDialog();
     }
 }
开发者ID:zippy1981,项目名称:XmlVisualizerv2,代码行数:10,代码来源:AboutForm.cs

示例13: aboutButton_Click

        private void aboutButton_Click(object sender, EventArgs e)
        {
            try
            {
                AboutForm aboutForm = new AboutForm();
                aboutForm.ShowDialog();
            }
            catch (Exception ex)
            {

            }
        }
开发者ID:Vulpter,项目名称:Hangman,代码行数:12,代码来源:MenuForm.cs

示例14: WndProc

 protected override void WndProc(ref Message m)
 {
     // Check if a System Command has been executed
     if (m.Msg == WinAPI.WM_SYSCOMMAND)
     {
         // Execute the appropriate code for the System Menu item that was clicked
         switch (m.WParam.ToInt32())
         {
             case _AboutSysMenuID:
                 AboutForm af = new AboutForm();
                 af.StartPosition = FormStartPosition.CenterParent;
                 af.ShowDialog();
                 break;
             default:
                 break;
         }
     }
     base.WndProc(ref m);
 }
开发者ID:juusimaa,项目名称:UptimeScreenSaver,代码行数:19,代码来源:OptionsForm.cs

示例15: MainForm

        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="fileName">A file to open at startup</param>
        public MainForm(string fileName)
        {
            if (!Properties.Settings.Default.DontShowSplash)
            {
                using (AboutForm frm = new AboutForm(true))
                {
                    frm.ShowDialog();
                }
            }

            InitializeComponent();

            MainFormMenuExtensionManager.Instance.AddToMenu(menuStrip, extensionToolStripMenuItem, ExtensionMenuClicked);

            CANAPEServiceProvider.GlobalInstance.RegisterService(typeof(IDocumentControl), this);
            _projectExplorer = new ProjectExplorer();
            _fileName = fileName;
            _entries = new Dictionary<IDocumentObject, DockContent>();

            // Check for help file precense
            aPIHelpToolStripMenuItem.Enabled = File.Exists(Path.Combine(AppDomain.CurrentDomain.BaseDirectory, "Help", "CANAPE_Documentation.chm"));
        }
开发者ID:michyer,项目名称:canape,代码行数:26,代码来源:MainForm.cs


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