示例#1
0
		protected override void Dispose(bool disposing)
		{
			if (mclsTerminalDetails.FORM_Behavior == FORM_Behavior.MODAL)
			{
				TaskBarWnd taskbar = new TaskBarWnd();
				taskbar.Show();
				Cursor.Show();
				Resolution ChangeRes = new Resolution(tempWidth, tempHeight);
			}
			if (disposing)
			{
				if (components != null)
				{
					components.Dispose();
				}
			}
			base.Dispose(disposing);
		}
示例#2
0
		private void MainWnd_Load(object sender, System.EventArgs e)
		{
            //// 08Dec2014 : remove this here
            //// it's already loaded in MainWnd() initialization
			// this.LoadOptions();

			txtBarCode.Focus();
			lblTerminalNo.Text = mclsTerminalDetails.TerminalNo;
			lblCompanyName.Text = CompanyDetails.CompanyName;

            // Added June 30, 2013 handle if RetailPlus or Parking System
            this.Text = mclsTerminalDetails.IsParkingTerminal ? "RetailPlus™ Parking Terminal" : "RetailPlus™ POS Terminal"; 

			if (mclsTerminalDetails.FORM_Behavior == FORM_Behavior.MODAL)
			{
				TaskBarWnd taskbar = new TaskBarWnd();
				taskbar.Hide();

				Screen Srn = Screen.PrimaryScreen;
				tempHeight = Srn.Bounds.Height;
				tempWidth = Srn.Bounds.Width;

				Resolution ChangeRes = new Resolution(1024, 768);

				Hook = new KeyBoardHook.KeyBoardHook();
				Hook.KeyDown += new KeyEventHandler(MyKeyDown);

				this.FormBorderStyle = FormBorderStyle.FixedDialog;
				this.ControlBox = false;
				this.TopMost = true;
				this.Text = "";
				this.Height = 768;
				this.Width = 1024;
				this.Location = new Point(-1, -1);
				this.ShowInTaskbar = false;
				Cursor.Hide();
			}
			else
			{
				Screen Srn = Screen.PrimaryScreen;
				if (Srn.Bounds.Height <= 768)
				{
					this.FormBorderStyle = FormBorderStyle.FixedDialog;
					this.ControlBox = false;
					this.TopMost = true;
					this.Text = "";
					this.Height = 768;
					this.Width = 1024;
					this.Location = new Point(-1, -1);
					this.ShowInTaskbar = false;
				}
			}

			IsStartCutOffTimeOK();

			if (CONFIG.MallCode.ToUpper() == MallCodes.RLC)
				tmrRLC.Enabled = true;
		}