Exemplo n.º 1
0
 public frmUtility()
 {
     InitializeComponent();
     base.UpdateResourcesInForm(GlobalVariable.LanguageSelect);
     FullScreenHandle.StartFullScreen(this);
     this.IP_ADDRESS = string.Format("IP: {0}", GlobalVariable.GetIPAddress());
 }
Exemplo n.º 2
0
        protected override void OnPaintBackground(PaintEventArgs e)
        {
            if (backgroundBmp == null)
            {
                backgroundBmp = ResourceManager.Instance.GetBitmap("BG_01"); //(Bitmap)Properties.Resources.ResourceManager.GetObject("SplashBitmap");
            }
            if (backgroundBmp != null)
            {
                e.Graphics.DrawImage(backgroundBmp, 0, 0);
            }

            string date  = string.Empty;
            string month = string.Empty;
            string year  = string.Empty;

            date  = DateTime.Today.ToString("dd");
            month = DateTime.Today.ToString("MMMM", CultureInfo.InvariantCulture);
            year  = DateTime.Today.ToString("yyyy", CultureInfo.InvariantCulture);

            e.Graphics.DrawString(DateTime.Now.ToString("HH:mm", CultureInfo.InvariantCulture), new Font("Century Gothic", 22, FontStyle.Regular), new SolidBrush(Color.White), 10, 205);
            e.Graphics.DrawString(DateTime.Now.DayOfWeek.ToString(), new Font("Century Gothic", 16, FontStyle.Regular), new SolidBrush(Color.White), 10, 240);
            e.Graphics.DrawString(month + " " + date + ", " + year, new Font("Century Gothic", 16, FontStyle.Regular), new SolidBrush(Color.White), 10, 265);

            e.Graphics.DrawString(string.Format("IP : {0}", GlobalVariable.GetIPAddress()), new Font("Century Gothic", 10, FontStyle.Bold), new SolidBrush(Color.FromArgb(1, 4, 65)), 9, 20);
            //e.Graphics.DrawString("For Exit", new Font("Tahoma", 7, FontStyle.Bold), new SolidBrush(Color.Yellow), 155, 5);
            e.Graphics.DrawString("LOCKDOWN SCREEN", new Font("Century Gothic", 15, FontStyle.Bold), new SolidBrush(Color.FromArgb(3, 1, 89)), 18, 60);

            e.Graphics.DrawString("BASICS PRO [1]", new Font("Century Gothic", 10, FontStyle.Bold), new SolidBrush(Color.FromArgb(2, 16, 150)), 122, 100);
            //e.Graphics.DrawString("BASICS VMI [1]", new Font("Century Gothic", 10, FontStyle.Bold), new SolidBrush(Color.FromArgb(2, 16, 150)), 123, 100);
            //e.Graphics.DrawString("TEMPORARY MHM [2]", new Font("Century Gothic", 10, FontStyle.Bold), new SolidBrush(Color.FromArgb(2, 16, 150)), 85, 125);
            //e.Graphics.DrawString("BASICS PRO [3]", new Font("Century Gothic", 10, FontStyle.Bold), new SolidBrush(Color.FromArgb(2, 16, 150)), 122, 150);

            e.Graphics.DrawString("@2015 Hi-Tech Nittsu. All rights reserved", new Font("Tahoma", 7, FontStyle.Regular), new SolidBrush(Color.FromArgb(100, 100, 100)), 10, 305);
        }
Exemplo n.º 3
0
        /// <summary>
        /// UpdateGUI delegate. Processes and display the power information
        /// provided by the power management on the system.
        /// </summary>
        private void UpdateGUI(object sender, EventArgs e)
        {
            try
            {
                // Get the information
                PowerManagement.PowerInfo powerInfo = base.PowerMgr.GetNextPowerInfo();

                this.ShowBattery();

                this.IP_ADDRESS = string.Format("IP: {0}", GlobalVariable.GetIPAddress());
                // Determine if we are on battery or AC
                //if (powerInfo.Message == PowerManagement.MessageTypes.Status)
                //{
                //    //if (powerInfo.ACLineStatus == PowerManagement.ACLineStatus.OnLine)
                //    //{
                //    //    this.imgMode.Image = Properties.Resources.Icon_AC;
                //    //}
                //    //else
                //    //{
                //    //    this.imgMode.Image = Properties.Resources.Icon_Battery;
                //    //}

                //    //this.checkBattery(Convert.ToInt32(powerInfo.BatteryLifePercent));

                //}
                //else if (powerInfo.Flags == PowerManagement.SystemPowerStates.Suspend)
                //{
                //    lblErrorMessageStatus.Text = "Device resumed from a suspend. ";
                //}
            }
            catch (Exception ex)
            {
                //
            }
        }
Exemplo n.º 4
0
        public frmMainMenu()
        {
            InitializeComponent();
            base.UpdateResourcesInForm(GlobalVariable.LanguageSelect);

            FullScreenHandle.StartFullScreen(this);

            this.IP_ADDRESS      = string.Format("IP: {0}", GlobalVariable.GetIPAddress());
            this.lblVersion.Text = string.Format("V. {0}", System.Reflection.Assembly.GetExecutingAssembly().GetName().Version.ToString());
        }
Exemplo n.º 5
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());
        }