protected string appPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);//获取路径
 public CheckManual()
 {
     InitializeComponent();
     this.picCheckManul.Image = new Bitmap(appPath + @"\Pics\chkent.png");
     this.picDo.Image         = new Bitmap(appPath + @"\Pics\chkentchk.png");
     this.picBack.Image       = new Bitmap(appPath + @"\Pics\tckback.png");
     this.pic_logout.Image    = new Bitmap(appPath + @"\Pics\chkentcancel.png");
     FullScreen.HideHHTaskBar();
     this.WindowState = FormWindowState.Maximized;
 }
Exemple #2
0
 protected string appPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);//获取路径
 public CheckMain()
 {
     InitializeComponent();
     this.picCheckMain.Image = new Bitmap(@"\Program Files\PocketGate\Pics\chkmain.png");
     this.pic_auto.Image     = new Bitmap(@"\Program Files\PocketGate\Pics\chkmainbtn.png");
     this.pic_manul.Image    = new Bitmap(@"\Program Files\PocketGate\Pics\chkmainbtn.png");
     this.pic_logout.Image   = new Bitmap(@"\Program Files\PocketGate\Pics\chkmaincancel.png");
     FullScreen.HideHHTaskBar();
     this.WindowState = FormWindowState.Maximized;
 }
 private void Main_QD_Load(object sender, EventArgs e)
 {
     try
     {
         ThreadStart starter = delegate { ThreadCallBusy("正在启动..."); };
         tBusy = new Thread(starter);
         tBusy.Start();
         //隐藏输入法
         ImmDisableIME(0);
         //隐藏任务栏
         FullScreen.HideHHTaskBar();
         this.WindowState = FormWindowState.Maximized;
         Config           = Configuration.ReadConfig();
         if (Config == null)
         {
             MessageBox.Show("配置文件丢失!", "提示");
             if (tBusy != null)
             {
                 tBusy.Abort();
             }
             Close();
         }
         //创建桌面快速启动图标
         CreateDesktopIcon();
         //读登录页设备码和用户名
         txtDevice.Text = Config.DeviceCode;
         txtUsr.Text    = Config.UserName;
         timer.Tick    += new EventHandler(timer_Tick);
         timer.Interval = 1000;
         timer.Enabled  = true;
         timedelay      = int.Parse(Config.ReturnDelay);
     }
     catch (Exception ex)
     {
         MessageBox.Show(ex.Message, "严重错误即将关闭");
         Close();
     }
     finally
     {
         if (tBusy != null)
         {
             tBusy.Abort();
         }
     }
 }
Exemple #4
0
 protected string appPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);//获取路径
 public Login()
 {
     //Graphics m_graphics = this.CreateGraphics();
     //Bitmap bm = new Bitmap("logo.png");
     //m_graphics.DrawImage(bm, 100, 100);
     //Bitmap bt = new Bitmap(50, 50);
     //Graphics gg = Graphics.FromImage(bt);
     InitializeComponent();
     this.picLoginMain.Image = new Bitmap(@"\Program Files\PocketGate\Pics\login.png");//\Program Files\PocketGate\Pics\login.png
     this.picLogin.Image     = new Bitmap(@"\Program Files\PocketGate\Pics\loginbtn.png");
     FullScreen.HideHHTaskBar();
     this.WindowState = FormWindowState.Maximized;
     Config           = Configuration.ReadConfig();
     if (Config == null)
     {
         this.Close();
     }
 }
 protected string appPath = System.IO.Path.GetDirectoryName(System.Reflection.Assembly.GetExecutingAssembly().GetName().CodeBase);//获取路径
 public CheckScan()
 {
     InitializeComponent();
     FullScreen.HideHHTaskBar();
     this.WindowState = FormWindowState.Maximized;
 }