當前位置: 首頁>>代碼示例>>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;未經允許,請勿轉載。