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