/// <summary>窗体初始并初始数据</summary>
 public LoginWindow()
 {
     InitializeComponent();
     //必要环境初始化
     MysqlHelper.ConnStr = string.Format("Data Source={0};Database={1};User ID=root;Password=root;SslMode=None;", IrAdvanced.ReadString("ServerIp"), IrAdvanced.ReadString("DbName"));
     FaceFun.BaseDir     = AppDomain.CurrentDomain.BaseDirectory;
     //初始化基础数据
     IrAdvanced.InitBaseData("AFT_SYSTEM");
     //是否调试状态
     Cursor = IrAdvanced.IsDebug ? Cursors.Arrow : Cursors.None;
     //是否置顶
     //Topmost = !IrAdvanced.IsDebug;
     if (IrAdvanced.ReadBoolean("UpData"))
     {
         IrAdvanced.RunApp(AppDomain.CurrentDomain.BaseDirectory + "updata.exe");
     }
 }