Newer
Older
laserPTZ_CS / Program.cs
wangxitong on 11 Sep 803 bytes first commit
using laserPTZ.AI;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Windows.Forms;

namespace laserPTZ
{
    static class Program
    {
        /// <summary>
        /// 应用程序的主入口点。
        /// </summary>
        [STAThread]
        static void Main()
        {
            try
            {
                Application.EnableVisualStyles();
                Application.SetCompatibleTextRenderingDefault(false);

                FormLogin frm = new FormLogin();
                if (frm.ShowDialog() == DialogResult.OK)
                {
                    Application.Run(new FormMain());
                }
                else
                    MessageBox.Show("登录失败!");
            }
            catch { }
           
        }
    }
}