本文整理汇总了C#中MainForm.Show方法的典型用法代码示例。如果您正苦于以下问题:C# MainForm.Show方法的具体用法?C# MainForm.Show怎么用?C# MainForm.Show使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类MainForm
的用法示例。
在下文中一共展示了MainForm.Show方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的C#代码示例。
示例1: RestoreForm
public override void RestoreForm(MainForm form)
{
if (form.Opacity == 0.0)
form.Opacity = 1.0;
form.Show();
}
示例2: OnExecuted
protected override void OnExecuted(EventArgs e)
{
base.OnExecuted(e);
MainForm form = new MainForm();
form.Show();
}
示例3: OnClickRecords
public void OnClickRecords(MainForm form)
{
//Set it up to return to main menu after closing
var nextForm = new RecordsForm(new RecordsController());
nextForm.FormClosed += delegate { form.Show(); };
nextForm.Show();
form.Hide();
}
示例4: Activate
public void Activate()
{
if (frm == null)
{
frm = new MainForm();
frm.FormClosed += new FormClosedEventHandler(FormClosed);
frm.Show();
}
}
示例5: icon_Click
private static void icon_Click(object Sender, EventArgs e)
{
if (!mainFormActive)
{
MainForm form = new MainForm();
form.Show();
mainFormActive = true;
}
}
示例6: IrcCloneSharkExtension
public IrcCloneSharkExtension(IrcSharkApplication sharkApp, ExtensionInfo myInfo)
: base("IrcShark GUI (mIRC-Clone)", myInfo)
{
IrcSharkApp = sharkApp;
IrcSharkApp.ShowGUI = false;
Console.Out.WriteLine("IrcCloneShark loaded!");
MainFormValue = new MainForm(this);
MainFormValue.Show();
}
示例7: Activate
public void Activate()
{
if (!isWorking)
{
frm = new MainForm(app);
frm.FormClosing += new System.Windows.Forms.FormClosingEventHandler(frm_FormClosing);
frm.Show();
isWorking = true;
Interlocked.Exchange(ref needed, 1);
}
}
示例8: LaunchEditor
public void LaunchEditor(FileSystem fs, File file)
{
if (fs is RealFileSystem)
{
var form = new MainForm();
form.Show();
DirectoryInfo parent = new DirectoryInfo((fs as RealFileSystem).RealDirectory).Parent;
string archiveFilename = parent == null ? file.FullName : Path.Combine(parent.FullName, file.FullName);
form.OpenFile(archiveFilename, null);
}
}
示例9: timer1_Tick
private async void timer1_Tick(object sender, EventArgs e)
{
if (aboProgressBar1.Progress == 100)
{
timer1.Stop();
await Task.Delay(500);
main = new MainForm();
main.Show();
this.Visible = false;
this.Hide();
}
aboProgressBar1.Progress++;
}
示例10: btnLogin_Click
private void btnLogin_Click(object sender, EventArgs e)
{
NorthwindService.Service1Client northwind = new NorthwindService.Service1Client();
CusID = northwind.GetCustomer(txtCusID.Text,txtCusPassword.Text);
if (CusID != null)
{
//frmMainOrder order = new frmMainOrder(CusID);
//order.MdiParent = this.
//order.Show();
MainForm main = new MainForm();
main.Show();
this.Hide();
}
else
lblStatus.Text = "Invalid ID or Password ";
}
示例11: Main
public static void Main()
{
// Start load of main form.
MainForm main = new MainForm();
try {
DeskScop.Instance().UiConfiguration = main;
} catch (ConfigurationException) {
// User will have already been warned, exit safely.
return;
}
// Show main form.
main.Show();
// Pass form onto main thread.
Application.Run( main );
}
示例12: Main
public static void Main (string[] args)
{
if (Array.IndexOf (args, "--help") > -1)
PrintUsageAndExit ();
if (Array.IndexOf (args, "--version") > -1) {
VersionFu.PrintVersion ();
// Console.WriteLine (Qt.QT_VERSION_STR); // Uncomment when does not crash
Environment.Exit (0);
}
// FIXME: Cant seem to pass the args to Qt!
new QApplication(args);
MainForm mf = new MainForm(args);
mf.Show ();
QApplication.Exec();
}
示例13: Main
public static void Main()
{
// ref: http://qiita.com/hart_edsf/items/0301f17e2d9acd890c5e
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
using (MainForm form = new MainForm()) {
form.Show();
// Note: there may be some issues with this.
// see http://blogs.msdn.com/b/rickhos/archive/2005/03/30/403952.aspx
while (form.Created) {
form.Loop();
Application.DoEvents();
}
}
}
示例14: Bug347669
[Test] // Should not throw AOORE
public void Bug347669 ()
{
Form main = new MainForm ();
main.Show ();
Form frm = new Childform ();
frm.MdiParent = main;
frm.Show ();
main.Dispose ();
}
示例15: ShowMainForm
/// <summary>
/// Показывает главную форму.
/// </summary>
private void ShowMainForm()
{
Program.sourceImage = previewPictureBox.Image;
if (!originalSizeCheckBox.Checked)
if (Program.sourceImage.Width > MAX_SIZE || Program.sourceImage.Height > MAX_SIZE)
if (Program.sourceImage.Width > Program.sourceImage.Height)
Program.sourceImage = Program.sourceImage.Scale(MAX_SIZE, MAX_SIZE * Program.sourceImage.Height/ Program.sourceImage.Width);
else
Program.sourceImage = Program.sourceImage.Scale(MAX_SIZE * Program.sourceImage.Width/ Program.sourceImage.Height, MAX_SIZE);
MainForm maneForm = new MainForm();
maneForm.Show(this);
this.Hide();
}