Esempio n. 1
0
        public frmLockDown()
        {
            InitializeComponent();
            base.UpdateResourcesInForm("en-US");

            this.powerManager = new PowerManagement();
            FullScreenHandle.StartFullScreen(this);

            this.txtEsc.Text = string.Empty;
        }
Esempio n. 2
0
        public frmLockDown()
        {
            InitializeComponent();
            base.UpdateResourcesInForm("en-US");

            FullScreenHandle.StartFullScreen(this);

            this.txtEsc.Text = string.Empty;
            //this.temp_Serial = GlobalVariable.GetSerialNumber().Replace(@"\0", "");
            //this.SCN_SERIAL = temp_Serial.Substring(temp_Serial.IndexOf("#") + 1, temp_Serial.Length - 9);
            this.IP_ADDRESS = string.Format("IP: {0}", GlobalVariable.GetIPAddress());
        }
Esempio n. 3
0
        private void OpenApplication(string appName, Button btnActive)
        {
            try
            {
                string codeBase = Assembly.GetExecutingAssembly().GetName().CodeBase;
                string appPath  = Path.GetDirectoryName(codeBase).Replace("bits_lockdown", string.Empty);

                string startAppName = string.Format("{0}\\{1}", appPath, appName);

                if (File.Exists(startAppName))
                {
                    this.IsRunning = true;

                    CreateLaunchApp.LaunchApp(startAppName, string.Empty);

                    //using (Process proc = new Process())
                    //{
                    //    proc.StartInfo.FileName = startAppName;
                    //    proc.StartInfo.Arguments = string.Empty;
                    //    proc.Start();
                    //    proc.WaitForExit();
                    //}

                    this.IsRunning = false;
                    FullScreenHandle.StartFullScreen(this);
                    this.txtEsc.Text = string.Empty;


                    Cursor.Current = Cursors.Default;
                    Cursor.Show();
                }
                else
                {
                    Cursor.Current = Cursors.Default;
                    Cursor.Show();

                    this.IsRunning = false;
                    MessageBox.Show(startAppName + "\nFile Not Exist");
                }

                Bt.ScanLib.Control.btScanDisable();
                btnActive.Focus();
            }
            catch (Exception ex)
            {
                this.IsRunning = false;
                MessageBox.Show(ex.Message);
            }
        }