Exemplo n.º 1
0
        static void Main()
        {
            Application.EnableVisualStyles();
            Application.SetCompatibleTextRenderingDefault(false);
            AppSkin appSkin = new AppSkin();

            appSkin.ShowDialog();
            if (appSkin.InitializeState == SeatManage.EnumType.HandleResult.Failed)
            {
                Application.Exit();
                return;
            }
            else
            {
                Application.Run(new EnterOutForm());
            }
        }
Exemplo n.º 2
0
 void clientObject_UpdateConfigError(object sender, EventArgs e)
 {
     this.Invoke(new Action(() =>
     {
         SystemObject obj = sender as SystemObject;
         obj.StopUpdateConfig();
         obj.ObjCardReader.Stop();
         AppSkin appSkin = new AppSkin();
         this.Hide();
         appSkin.ShowDialog();
         if (appSkin.InitializeState == HandleResult.Successed)
         {
             obj.ObjCardReader.Start();
             obj.StartAutoUpdateConfig();
             this.Show();
         }
         else
         {
             Application.Exit();
         }
     }));
 }