Пример #1
0
        private void OKButton_Click(object sender, System.EventArgs e)
        {
            PinPadSimulator Sim = ServiceObjectReference.Target as PinPadSimulator;

            if (Sim != null)
            {
                Sim.OnOK(PINtextBox.Text, AdditionalInfotextBox.Text);
            }
        }
Пример #2
0
        private void BadKeybutton_Click(object sender, System.EventArgs e)
        {
            PinPadSimulator Sim = ServiceObjectReference.Target as PinPadSimulator;

            if (Sim != null)
            {
                Sim.OnBadKey();
            }
        }
Пример #3
0
        private void SetButtonState()
        {
            PinPadSimulator Sim = ServiceObjectReference.Target as PinPadSimulator;

            if (Sim != null && Sim.State != ControlState.Closed)
            {
                OKButton.Enabled      = Sim.PinEntryEnabled;
                Cancelbutton.Enabled  = OKButton.Enabled;
                BadKeybutton.Enabled  = OKButton.Enabled;
                Timeoutbutton.Enabled = OKButton.Enabled;
            }
        }
Пример #4
0
		public PinPadSimulatorWindow(PinPadSimulator serviceObject) : base(serviceObject)
		{
			Invoke(new MethodDelegate(InitializeComponent));
		}
Пример #5
0
 public PinPadSimulatorWindow(PinPadSimulator serviceObject) : base(serviceObject)
 {
     Invoke(new MethodDelegate(InitializeComponent));
 }