32 lines
850 B
C#
32 lines
850 B
C#
|
|
using System;
|
|||
|
|
using System.Collections.Generic;
|
|||
|
|
using System.Linq;
|
|||
|
|
using System.Windows.Forms;
|
|||
|
|
using System.Drawing;
|
|||
|
|
|
|||
|
|
namespace SOH.FenZhen.Client
|
|||
|
|
{
|
|||
|
|
static class Program
|
|||
|
|
{
|
|||
|
|
/// <summary>
|
|||
|
|
/// 应用程序的主入口点。
|
|||
|
|
/// </summary>
|
|||
|
|
[STAThread]
|
|||
|
|
static void Main()
|
|||
|
|
{
|
|||
|
|
Application.EnableVisualStyles();
|
|||
|
|
Application.SetCompatibleTextRenderingDefault(false);
|
|||
|
|
var f = new FrmCall();
|
|||
|
|
Rectangle r= System.Windows.Forms.Screen.PrimaryScreen.Bounds;
|
|||
|
|
Point p = new Point();
|
|||
|
|
p.Y = 0;
|
|||
|
|
p.X = r.X + (r.Width - f.Width) / 2;
|
|||
|
|
f.Location = p;
|
|||
|
|
f.TopMost = true;
|
|||
|
|
f.TopLevel = true;
|
|||
|
|
f.StartPosition = FormStartPosition.Manual;
|
|||
|
|
Application.Run(f);
|
|||
|
|
}
|
|||
|
|
}
|
|||
|
|
}
|