using System;
using System.Net;
using System.Windows.Forms;
using WMS.Business;
using WMS.Business.Base;
namespace WMS.Frm
{
static class Program
{
///
/// 应用程序的主入口点。
///
[STAThread]
static void Main()
{
// IBussFactory.Instance().InsertLocationInfo(20, 107, 6, 110);
DevExpress.UserSkins.BonusSkins.Register();
DevExpress.Skins.SkinManager.EnableFormSkins();
Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
string errText = string.Empty;
try
{
using (FormLogin login = new FormLogin())
{
DialogResult dia = login.ShowDialog();
if (dia ==DialogResult.OK)
{
WMS.Ctrl.LoadForm load = new WMS.Ctrl.LoadForm();
FrmSysFrame frame = new WMS.Frm.FrmSysFrame();
DevExpress.XtraSplashScreen.SplashScreenManager.ShowForm(load, load.GetType(), false, true, false, 70);
DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormCaption("");//设置标题
DevExpress.XtraSplashScreen.SplashScreenManager.Default.SetWaitFormDescription("努力加载中...");//设置加载信息
FrmSysFrame.userData = login.userData;
Application.Run(frame);
}
}
}
catch (Exception ex)
{
WMS.Common.LogWriteText.WriteLog("登录异常:" + ex.Message.ToString());
}
}
}
}