Exemple #1
0
        public override void Open()
        {
            // Device State checking done in base class
            base.Open();

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

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

            Window = new CashDrawerSimulatorWindow(this);
            base.OnDrawerStateChanged += new DrawerStateChangedEventHandler(CashDrawerSimulator_OnDrawerStateChanged);

            Window.UpdateState();
        }
Exemple #2
0
		public override void Open()
		{
			// Device State checking done in base class
			base.Open();

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

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

			Window = new CashDrawerSimulatorWindow(this);
			base.OnDrawerStateChanged += new DrawerStateChangedEventHandler(CashDrawerSimulator_OnDrawerStateChanged);
			
			Window.UpdateState();
		}
Exemple #3
0
 private void CashDrawerSimulator_OnDrawerStateChanged(object sender, DrawerStateChangedEventArgs e)
 {
     Window.UpdateState();
 }