예제 #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();
        }
예제 #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();
		}
예제 #3
0
 private void CashDrawerSimulator_OnDrawerStateChanged(object sender, DrawerStateChangedEventArgs e)
 {
     Window.UpdateState();
 }