public void ShowNumPad(Control target) { if (target != null) { NumPad.SetTarget(target); NumPad.Visibility = Visibility.Visible; } else { NumPad.Visibility = Visibility.Collapsed; } }
public void OnInputfieldClick(object objectInp, UIPointerEventArgs args) { GameObject clickedObject = args.currentTarget; if (MenuManager.Instance.menuStack.Peek() != Instance) { //this menu is not visible return; } InputField clickedInputField = clickedObject.GetComponent <InputField>(); if (clickedInputField != null) { currentInputfield = clickedInputField; string userInput = "Enter the desired Value!"; NumPad.Show(FillInputfield, userInput); } }
public void TriggerGate(NumPad inKeyCode) { DeactiveWall(); switch (inKeyCode) { case NumPad.ONE: SpawnWall(SpawnPoints[0].transform.position, SpawnPoints[0].transform.rotation); break; case NumPad.TWO: SpawnWall(SpawnPoints[1].transform.position, SpawnPoints[1].transform.rotation); break; case NumPad.THREE: SpawnWall(SpawnPoints[2].transform.position, SpawnPoints[2].transform.rotation); break; case NumPad.FOUR: SpawnWall(SpawnPoints[3].transform.position, SpawnPoints[3].transform.rotation); break; case NumPad.SIX: SpawnWall(SpawnPoints[4].transform.position, SpawnPoints[4].transform.rotation); break; case NumPad.SEVEN: SpawnWall(SpawnPoints[5].transform.position, SpawnPoints[5].transform.rotation); break; case NumPad.EIGHT: SpawnWall(SpawnPoints[6].transform.position, SpawnPoints[6].transform.rotation); break; case NumPad.NINE: SpawnWall(SpawnPoints[7].transform.position, SpawnPoints[7].transform.rotation); break; default: break; } }
public void OnInputFieldClick(object obj, UIPointerEventArgs args) { GameObject clickedObject = args.currentTarget; if (MenuManager.Instance.menuStack.Peek() != Instance) { //this menu is not visible return; } InputField clickedInputField = clickedObject.GetComponent <InputField>(); if (clickedInputField != null) { if (clickedInputField.name.Contains("ID")) { NumPad.Show(EditID, "Set desired ID!"); } else if (clickedInputField.name.Contains("Name")) { KeyboardManager.Show(EditName, "Set desired Name!"); } } }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.panelBase = new DevExpress.XtraEditors.PanelControl(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.flowLayoutPanel = new System.Windows.Forms.FlowLayoutPanel(); this.labelAmountDue = new System.Windows.Forms.Label(); this.labelAmountDueValue = new System.Windows.Forms.Label(); this.tableLayoutPanel2 = new System.Windows.Forms.TableLayoutPanel(); this.numCashNumpad = new LSRetailPosis.POSProcesses.WinControls.NumPad(); this.panelAmount = new DevExpress.XtraEditors.PanelControl(); this.tableLayoutPanel4 = new System.Windows.Forms.TableLayoutPanel(); this.lblPayAmt = new System.Windows.Forms.Label(); this.amtCashAmounts = new LSRetailPosis.POSProcesses.WinControls.AmountViewer(); this.tableLayoutPanel3 = new System.Windows.Forms.TableLayoutPanel(); this.btnCancel = new LSRetailPosis.POSProcesses.WinControls.SimpleButtonEx(); this.btnOK = new LSRetailPosis.POSProcesses.WinControls.SimpleButtonEx(); ((System.ComponentModel.ISupportInitialize)(this.styleController)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.panelBase)).BeginInit(); this.panelBase.SuspendLayout(); this.tableLayoutPanel1.SuspendLayout(); this.flowLayoutPanel.SuspendLayout(); this.tableLayoutPanel2.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelAmount)).BeginInit(); this.panelAmount.SuspendLayout(); this.tableLayoutPanel4.SuspendLayout(); this.tableLayoutPanel3.SuspendLayout(); this.SuspendLayout(); // // panelBase // this.panelBase.Controls.Add(this.tableLayoutPanel1); this.panelBase.Dock = System.Windows.Forms.DockStyle.Fill; this.panelBase.Location = new System.Drawing.Point(0, 0); this.panelBase.Name = "panelBase"; this.panelBase.Size = new System.Drawing.Size(944, 767); this.panelBase.TabIndex = 10; // // tableLayoutPanel1 // this.tableLayoutPanel1.ColumnCount = 1; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.Controls.Add(this.flowLayoutPanel, 0, 0); this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel2, 0, 1); this.tableLayoutPanel1.Controls.Add(this.tableLayoutPanel3, 0, 2); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(2, 2); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(30, 40, 30, 11); this.tableLayoutPanel1.RowCount = 3; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.Size = new System.Drawing.Size(940, 763); this.tableLayoutPanel1.TabIndex = 10; // // flowLayoutPanel // this.flowLayoutPanel.Anchor = System.Windows.Forms.AnchorStyles.None; this.flowLayoutPanel.AutoSize = true; this.tableLayoutPanel1.SetColumnSpan(this.flowLayoutPanel, 3); this.flowLayoutPanel.Controls.Add(this.labelAmountDue); this.flowLayoutPanel.Controls.Add(this.labelAmountDueValue); this.flowLayoutPanel.Location = new System.Drawing.Point(201, 43); this.flowLayoutPanel.Name = "flowLayoutPanel"; this.flowLayoutPanel.Size = new System.Drawing.Size(537, 95); this.flowLayoutPanel.TabIndex = 22; // // labelAmountDue // this.labelAmountDue.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelAmountDue.AutoSize = true; this.labelAmountDue.Font = new System.Drawing.Font("Segoe UI Light", 36F); this.labelAmountDue.Location = new System.Drawing.Point(0, 0); this.labelAmountDue.Margin = new System.Windows.Forms.Padding(0); this.labelAmountDue.Name = "labelAmountDue"; this.labelAmountDue.Padding = new System.Windows.Forms.Padding(0, 0, 0, 30); this.labelAmountDue.Size = new System.Drawing.Size(398, 95); this.labelAmountDue.TabIndex = 0; this.labelAmountDue.Tag = ""; this.labelAmountDue.Text = "Total amount due:"; // // labelAmountDueValue // this.labelAmountDueValue.Anchor = System.Windows.Forms.AnchorStyles.None; this.labelAmountDueValue.AutoSize = true; this.labelAmountDueValue.Font = new System.Drawing.Font("Segoe UI Light", 36F); this.labelAmountDueValue.Location = new System.Drawing.Point(398, 0); this.labelAmountDueValue.Margin = new System.Windows.Forms.Padding(0); this.labelAmountDueValue.Name = "labelAmountDueValue"; this.labelAmountDueValue.Padding = new System.Windows.Forms.Padding(0, 0, 0, 30); this.labelAmountDueValue.Size = new System.Drawing.Size(139, 95); this.labelAmountDueValue.TabIndex = 1; this.labelAmountDueValue.Text = "$0.00"; // // tableLayoutPanel2 // this.tableLayoutPanel2.Anchor = System.Windows.Forms.AnchorStyles.None; this.tableLayoutPanel2.ColumnCount = 2; this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel2.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel2.Controls.Add(this.numCashNumpad, 0, 1); this.tableLayoutPanel2.Controls.Add(this.panelAmount, 1, 1); this.tableLayoutPanel2.Location = new System.Drawing.Point(182, 205); this.tableLayoutPanel2.Name = "tableLayoutPanel2"; this.tableLayoutPanel2.RowCount = 2; this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F)); this.tableLayoutPanel2.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel2.Size = new System.Drawing.Size(576, 412); this.tableLayoutPanel2.TabIndex = 10; // // numCashNumpad // this.numCashNumpad.Anchor = System.Windows.Forms.AnchorStyles.Top; this.numCashNumpad.Appearance.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.numCashNumpad.Appearance.Options.UseFont = true; this.numCashNumpad.AutoSize = true; this.numCashNumpad.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.numCashNumpad.CurrencyCode = null; this.numCashNumpad.EnteredQuantity = new decimal(new int[] { 0, 0, 0, 0 }); this.numCashNumpad.EnteredValue = ""; this.numCashNumpad.EntryType = Microsoft.Dynamics.Retail.Pos.Contracts.UI.NumpadEntryTypes.Price; this.numCashNumpad.Location = new System.Drawing.Point(20, 53); this.numCashNumpad.MaskChar = ""; this.numCashNumpad.MaskInterval = 0; this.numCashNumpad.MaxNumberOfDigits = 9; this.numCashNumpad.MinimumSize = new System.Drawing.Size(248, 314); this.numCashNumpad.Name = "numCashNumpad"; this.numCashNumpad.NegativeMode = false; this.numCashNumpad.NoOfTries = 0; this.numCashNumpad.NumberOfDecimals = 2; this.numCashNumpad.Padding = new System.Windows.Forms.Padding(0, 10, 0, 0); this.numCashNumpad.PromptText = null; this.numCashNumpad.ShortcutKeysActive = false; this.numCashNumpad.Size = new System.Drawing.Size(248, 314); this.numCashNumpad.TabIndex = 8; this.numCashNumpad.TimerEnabled = true; this.numCashNumpad.EnterButtonPressed += new LSRetailPosis.POSProcesses.WinControls.NumPad.enterbuttonDelegate(this.numPad1_EnterButtonPressed); // // panelAmount // this.panelAmount.Anchor = System.Windows.Forms.AnchorStyles.Top; this.panelAmount.Controls.Add(this.tableLayoutPanel4); this.panelAmount.Location = new System.Drawing.Point(344, 50); this.panelAmount.Margin = new System.Windows.Forms.Padding(0); this.panelAmount.Name = "panelAmount"; this.panelAmount.Size = new System.Drawing.Size(176, 317); this.panelAmount.TabIndex = 16; // // tableLayoutPanel4 // this.tableLayoutPanel4.ColumnCount = 1; this.tableLayoutPanel4.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel4.Controls.Add(this.lblPayAmt, 0, 0); this.tableLayoutPanel4.Controls.Add(this.amtCashAmounts, 0, 1); this.tableLayoutPanel4.Location = new System.Drawing.Point(2, 2); this.tableLayoutPanel4.Margin = new System.Windows.Forms.Padding(3, 14, 3, 3); this.tableLayoutPanel4.Name = "tableLayoutPanel4"; this.tableLayoutPanel4.RowCount = 2; this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel4.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel4.Size = new System.Drawing.Size(172, 310); this.tableLayoutPanel4.TabIndex = 1; // // lblPayAmt // this.lblPayAmt.Anchor = System.Windows.Forms.AnchorStyles.Bottom; this.lblPayAmt.AutoSize = true; this.lblPayAmt.Font = new System.Drawing.Font("Segoe UI", 14.25F); this.lblPayAmt.Location = new System.Drawing.Point(30, 0); this.lblPayAmt.Margin = new System.Windows.Forms.Padding(3, 0, 3, 5); this.lblPayAmt.Name = "lblPayAmt"; this.lblPayAmt.Size = new System.Drawing.Size(112, 25); this.lblPayAmt.TabIndex = 10; this.lblPayAmt.Text = "Pay amount"; // // amtCashAmounts // this.amtCashAmounts.CurrencyRate = new decimal(new int[] { 0, 0, 0, 0 }); this.amtCashAmounts.Dock = System.Windows.Forms.DockStyle.Fill; this.amtCashAmounts.ForeignCurrencyMode = false; this.amtCashAmounts.HighestOptionAmount = new decimal(new int[] { 0, 0, 0, 0 }); this.amtCashAmounts.IncludeRefAmount = true; this.amtCashAmounts.LocalCurrencyCode = ""; this.amtCashAmounts.Location = new System.Drawing.Point(0, 30); this.amtCashAmounts.LowesetOptionAmount = new decimal(new int[] { 0, 0, 0, 0 }); this.amtCashAmounts.Margin = new System.Windows.Forms.Padding(0, 0, 0, 0); this.amtCashAmounts.Name = "amtCashAmounts"; this.amtCashAmounts.OptionsLimit = 5; this.amtCashAmounts.Orientation = System.Windows.Forms.Orientation.Vertical; this.amtCashAmounts.ShowBorder = false; this.amtCashAmounts.Size = new System.Drawing.Size(172, 280); this.amtCashAmounts.TabIndex = 9; this.amtCashAmounts.UsedCurrencyCode = ""; this.amtCashAmounts.ViewOption = LSRetailPosis.POSProcesses.WinControls.AmountViewer.ViewOptions.HigherAmounts; this.amtCashAmounts.AmountChanged += new LSRetailPosis.POSProcesses.WinControls.AmountViewer.OutputChanged(this.amountViewer1_AmountChanged); // // tableLayoutPanel3 // this.tableLayoutPanel3.Anchor = ((System.Windows.Forms.AnchorStyles)((((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Bottom) | System.Windows.Forms.AnchorStyles.Left) | System.Windows.Forms.AnchorStyles.Right))); this.tableLayoutPanel3.ColumnCount = 2; this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel3.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel3.Controls.Add(this.btnCancel, 0, 0); this.tableLayoutPanel3.Controls.Add(this.btnOK, 0, 0); this.tableLayoutPanel3.Location = new System.Drawing.Point(33, 684); this.tableLayoutPanel3.Name = "tableLayoutPanel3"; this.tableLayoutPanel3.RowCount = 1; this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel3.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.tableLayoutPanel3.Size = new System.Drawing.Size(874, 65); this.tableLayoutPanel3.TabIndex = 21; // // btnCancel // this.btnCancel.Anchor = System.Windows.Forms.AnchorStyles.Left; this.btnCancel.Appearance.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnCancel.Appearance.Options.UseFont = true; this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(441, 4); this.btnCancel.Margin = new System.Windows.Forms.Padding(4); this.btnCancel.Name = "btnCancel"; this.btnCancel.Size = new System.Drawing.Size(127, 57); this.btnCancel.TabIndex = 6; this.btnCancel.Text = "Cancel"; // // btnOK // this.btnOK.Anchor = System.Windows.Forms.AnchorStyles.Right; this.btnOK.Appearance.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnOK.Appearance.Options.UseFont = true; this.btnOK.DialogResult = System.Windows.Forms.DialogResult.OK; this.btnOK.Location = new System.Drawing.Point(306, 4); this.btnOK.Margin = new System.Windows.Forms.Padding(4); this.btnOK.Name = "btnOK"; this.btnOK.Size = new System.Drawing.Size(127, 57); this.btnOK.TabIndex = 5; this.btnOK.Text = "OK"; this.btnOK.Click += new System.EventHandler(this.btnOk_Click); // // frmPayCash // this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(944, 767); this.Controls.Add(this.panelBase); this.LookAndFeel.SkinName = "Money Twins"; this.Name = "frmPayCash"; this.Controls.SetChildIndex(this.panelBase, 0); ((System.ComponentModel.ISupportInitialize)(this.styleController)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.panelBase)).EndInit(); this.panelBase.ResumeLayout(false); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); this.flowLayoutPanel.ResumeLayout(false); this.flowLayoutPanel.PerformLayout(); this.tableLayoutPanel2.ResumeLayout(false); this.tableLayoutPanel2.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelAmount)).EndInit(); this.panelAmount.ResumeLayout(false); this.tableLayoutPanel4.ResumeLayout(false); this.tableLayoutPanel4.PerformLayout(); this.tableLayoutPanel3.ResumeLayout(false); this.ResumeLayout(false); }
public override void Start() { base.Start(); numpad = this.transform.parent.GetComponent<NumPad>(); }
/// <summary> /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// </summary> private void InitializeComponent() { this.lblMsg = new System.Windows.Forms.Label(); this.btnOk = new LSRetailPosis.POSProcesses.WinControls.SimpleButtonEx(); this.btnCancel = new LSRetailPosis.POSProcesses.WinControls.SimpleButtonEx(); this.tableLayoutPanel1 = new System.Windows.Forms.TableLayoutPanel(); this.numUserId = new LSRetailPosis.POSProcesses.WinControls.NumPad(); this.panelControl1 = new DevExpress.XtraEditors.PanelControl(); ((System.ComponentModel.ISupportInitialize)(this.styleController)).BeginInit(); this.tableLayoutPanel1.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).BeginInit(); this.panelControl1.SuspendLayout(); this.SuspendLayout(); // // lblMsg // this.lblMsg.Anchor = System.Windows.Forms.AnchorStyles.Top; this.lblMsg.AutoSize = true; this.tableLayoutPanel1.SetColumnSpan(this.lblMsg, 2); this.lblMsg.Font = new System.Drawing.Font("Segoe UI Light", 36F); this.lblMsg.Location = new System.Drawing.Point(285, 40); this.lblMsg.Name = "lblMsg"; this.lblMsg.Padding = new System.Windows.Forms.Padding(0, 0, 0, 30); this.lblMsg.Size = new System.Drawing.Size(449, 95); this.lblMsg.TabIndex = 0; this.lblMsg.Text = "Enter an Operator ID"; this.lblMsg.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; // // btnOk // this.btnOk.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.btnOk.Appearance.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnOk.Appearance.Options.UseFont = true; this.btnOk.Location = new System.Drawing.Point(379, 688); this.btnOk.Margin = new System.Windows.Forms.Padding(4); this.btnOk.Name = "btnOk"; this.btnOk.Padding = new System.Windows.Forms.Padding(0); this.btnOk.Size = new System.Drawing.Size(127, 57); this.btnOk.TabIndex = 2; this.btnOk.Text = "OK"; this.btnOk.Click += new System.EventHandler(this.OnBtnOkClicked); // // btnCancel // this.btnCancel.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); this.btnCancel.Appearance.Font = new System.Drawing.Font("Segoe UI", 12F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.btnCancel.Appearance.Options.UseFont = true; this.btnCancel.DialogResult = System.Windows.Forms.DialogResult.Cancel; this.btnCancel.Location = new System.Drawing.Point(514, 688); this.btnCancel.Margin = new System.Windows.Forms.Padding(4); this.btnCancel.Name = "btnCancel"; this.btnCancel.Padding = new System.Windows.Forms.Padding(0); this.btnCancel.Size = new System.Drawing.Size(127, 57); this.btnCancel.TabIndex = 3; this.btnCancel.Text = "Cancel"; // // tableLayoutPanel1 // this.tableLayoutPanel1.ColumnCount = 2; this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.tableLayoutPanel1.Controls.Add(this.lblMsg, 0, 0); this.tableLayoutPanel1.Controls.Add(this.numUserId, 0, 1); this.tableLayoutPanel1.Controls.Add(this.btnOk, 0, 2); this.tableLayoutPanel1.Controls.Add(this.btnCancel, 1, 2); this.tableLayoutPanel1.Dock = System.Windows.Forms.DockStyle.Fill; this.tableLayoutPanel1.Location = new System.Drawing.Point(2, 2); this.tableLayoutPanel1.Margin = new System.Windows.Forms.Padding(0); this.tableLayoutPanel1.Name = "tableLayoutPanel1"; this.tableLayoutPanel1.Padding = new System.Windows.Forms.Padding(30, 40, 30, 15); this.tableLayoutPanel1.RowCount = 3; this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.tableLayoutPanel1.RowStyles.Add(new System.Windows.Forms.RowStyle()); this.tableLayoutPanel1.Size = new System.Drawing.Size(1020, 764); this.tableLayoutPanel1.TabIndex = 0; // // numUserId // this.numUserId.Anchor = System.Windows.Forms.AnchorStyles.None; this.numUserId.Appearance.Font = new System.Drawing.Font("Segoe UI", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); this.numUserId.Appearance.Options.UseFont = true; this.numUserId.AutoSize = true; this.numUserId.AutoSizeMode = System.Windows.Forms.AutoSizeMode.GrowAndShrink; this.tableLayoutPanel1.SetColumnSpan(this.numUserId, 2); this.numUserId.CurrencyCode = null; this.numUserId.EnteredQuantity = new decimal(new int[] { 0, 0, 0, 0 }); this.numUserId.EnteredValue = ""; this.numUserId.EntryType = Microsoft.Dynamics.Retail.Pos.Contracts.UI.NumpadEntryTypes.Barcode; this.numUserId.Location = new System.Drawing.Point(315, 193); this.numUserId.Margin = new System.Windows.Forms.Padding(0); this.numUserId.MaskChar = ""; this.numUserId.MaskInterval = 0; this.numUserId.MaxNumberOfDigits = 20; this.numUserId.MinimumSize = new System.Drawing.Size(390, 432); this.numUserId.Name = "numUserId"; this.numUserId.NegativeMode = false; this.numUserId.NoOfTries = 0; this.numUserId.NumberOfDecimals = 0; this.numUserId.PromptText = "Operator ID"; this.numUserId.ShortcutKeysActive = false; this.numUserId.Size = new System.Drawing.Size(390, 432); this.numUserId.TabIndex = 1; this.numUserId.TimerEnabled = true; this.numUserId.EnterButtonPressed += new LSRetailPosis.POSProcesses.WinControls.NumPad.enterbuttonDelegate(this.OnNumPadEnterButtonPressed); this.numUserId.CardSwept += new LSRetailPosis.POSProcesses.WinControls.NumPad.cardSwipedDelegate(this.numUserId_CardSwept); // // panelControl1 // this.panelControl1.Controls.Add(this.tableLayoutPanel1); this.panelControl1.Dock = System.Windows.Forms.DockStyle.Fill; this.panelControl1.Location = new System.Drawing.Point(0, 0); this.panelControl1.Margin = new System.Windows.Forms.Padding(0); this.panelControl1.Name = "panelControl1"; this.panelControl1.Size = new System.Drawing.Size(1024, 768); this.panelControl1.TabIndex = 0; // // ManagerAccessForm // this.AutoSize = true; this.CancelButton = this.btnCancel; this.ClientSize = new System.Drawing.Size(1024, 768); this.Controls.Add(this.panelControl1); this.LookAndFeel.SkinName = "Money Twins"; this.MinimumSize = new System.Drawing.Size(420, 539); this.Name = "ManagerAccessForm"; this.Controls.SetChildIndex(this.panelControl1, 0); ((System.ComponentModel.ISupportInitialize)(this.styleController)).EndInit(); this.tableLayoutPanel1.ResumeLayout(false); this.tableLayoutPanel1.PerformLayout(); ((System.ComponentModel.ISupportInitialize)(this.panelControl1)).EndInit(); this.panelControl1.ResumeLayout(false); this.ResumeLayout(false); }
public void OnEvent(NumPad.CombinationChangedEvent e) { text.text = e.combination; }