private void HidePage(int _iPageIdx) { switch (_iPageIdx) { case 0: FrmOperation.Hide(); break; case 1: FrmDevice.Hide(); FrmDeviceSet.Hide(); break; case 2: /*FrmMacro .Hide();*/ break; case 3: FrmOption.Hide(); break; case 4: FrmSPC.Hide(); break; case 5: SM.HideDllMainWin(); break; default: FrmOperation.Hide(); break; } }