private void button1_Click(object sender, EventArgs e) { SGSScanDevice device = new SGSScanDevice(); device.isRedeem = true; Switch(device); }
private void button2_Click(object sender, EventArgs e) { SGSScanDevice scan = new SGSScanDevice(); scan.isRedeem = true; Switch(scan as IPanelProvider); }