本文整理汇总了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);
}
}
示例2: About
/// <summary>
/// Shows the AboutForm
/// </summary>
private void About()
{
using (AboutForm af = new AboutForm())
{
af.ShowDialog(this);
}
}
示例3: infoToolStripMenuItem_Click
private void infoToolStripMenuItem_Click(object sender, EventArgs e)
{
using (AboutForm form = new AboutForm())
{
form.ShowDialog();
}
}
示例4: barButtonItemAbout_ItemClick
private void barButtonItemAbout_ItemClick(object sender, DevExpress.XtraBars.ItemClickEventArgs e)
{
using (var aboutForm = new AboutForm())
{
aboutForm.ShowDialog();
}
}
示例5: aboutButton_Click
private void aboutButton_Click(object sender, EventArgs e)
{
using (var dlg = new AboutForm())
{
dlg.ShowDialog(this);
}
}
示例6: OpenAboutForm
public void OpenAboutForm()
{
using (var form = new AboutForm())
{
form.ShowDialog();
}
}
示例7: btnAbout_Click
private void btnAbout_Click(object sender, System.EventArgs e)
{
using (var aboutForm = new AboutForm())
{
aboutForm.ShowDialog();
}
}
示例8: aboutToolStripMenuItem1_Click
private void aboutToolStripMenuItem1_Click(object sender, EventArgs e)
{
using (var a = new AboutForm())
{
a.ShowDialog();
}
}
示例9: aboutMnuItem_Click
private void aboutMnuItem_Click(object sender, EventArgs e)
{
AboutForm form = new AboutForm();
if (DialogResult.OK == form.ShowDialog())
{
}
}
示例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();
}
示例11: Show
public static DialogResult Show(string version)
{
MsgBox = new AboutForm();
MsgBox.label1.Text = version;
MsgBox.ShowDialog();
MsgBox.button1.Focus();
return result;
}
示例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();
}
}
示例13: aboutButton_Click
private void aboutButton_Click(object sender, EventArgs e)
{
try
{
AboutForm aboutForm = new AboutForm();
aboutForm.ShowDialog();
}
catch (Exception ex)
{
}
}
示例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);
}
示例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"));
}