예제 #1
0
 protected override void Dispose(bool disposing)
 {
     try
     {
         if (disposing)
         {
             Logger.Info("PinpadSimulator", "Disposing class: " + this.ToString());
             // Release the managed resources you added in
             // this derived class here.
         }
         // Release the native unmanaged resources
         // WindowThread needs to be treated as an unmanaged resource because
         // it is a class that contain threads and windows and won't get collected
         // by the GC
         if (Window != null)
         {
             Window.Close();
         }
         Window = null;
     }
     finally
     {
         // Call Dispose on your base class.
         base.Dispose(disposing);
     }
 }
예제 #2
0
        public override void Open()
        {
            // Device State checking done in base class
            base.Open();

            // Set values for common statistics
            SetStatisticValue(StatisticManufacturerName, "Microsoft Corporation");
            SetStatisticValue(StatisticManufactureDate, "2004-05-23");
            SetStatisticValue(StatisticModelName, "PinPad Simulator");
            SetStatisticValue(StatisticMechanicalRevision, "1.0");
            SetStatisticValue(StatisticInterface, "Other");

            // Initialize the CheckHealthText property to an empty string
            checkhealthtext = "";

            // Set capabilities
            Properties.CapDisplay        = PinPadDisplay.PinRestricted;
            Properties.CapKeyboard       = false;
            Properties.CapLanguage       = PinPadLanguage.None;
            Properties.CapMacCalculation = false;
            Properties.CapTone           = false;

            Properties.AvailablePromptsList = new PinPadMessage[] { PinPadMessage.EnterPin };


            // show simulation window
            Window = new PinPadSimulatorWindow(this);
        }
예제 #3
0
		protected override void Dispose(bool disposing)
		{
			try
			{
				if(disposing)
				{
					Logger.Info("PinpadSimulator", "Disposing class: " + this.ToString());
					// Release the managed resources you added in
					// this derived class here.

				}
				// Release the native unmanaged resources
				// WindowThread needs to be treated as an unmanaged resource because
				// it is a class that contain threads and windows and won't get collected
				// by the GC
				if (Window != null)
					Window.Close();
				Window = null;
				
			}
			finally
			{
				// Call Dispose on your base class.
				base.Dispose(disposing);
			}
		}
예제 #4
0
		public override void Open()
		{
			// Device State checking done in base class
			base.Open();

			// Set values for common statistics
			SetStatisticValue(StatisticManufacturerName, "Microsoft Corporation");
			SetStatisticValue(StatisticManufactureDate, "2004-05-23");
			SetStatisticValue(StatisticModelName, "PinPad Simulator");
			SetStatisticValue(StatisticMechanicalRevision, "1.0");
			SetStatisticValue(StatisticInterface, "Other");

			// Initialize the CheckHealthText property to an empty string
			checkhealthtext = "";

			// Set capabilities
			Properties.CapDisplay = PinPadDisplay.PinRestricted;
			Properties.CapKeyboard = false;
			Properties.CapLanguage = PinPadLanguage.None;
			Properties.CapMacCalculation = false;
			Properties.CapTone = false;

			Properties.AvailablePromptsList = new PinPadMessage[] {PinPadMessage.EnterPin};
			

			// show simulation window
			Window = new PinPadSimulatorWindow(this);
		}