public void ShowPage(int _iPageIdx) { FrmDeviceSet.UpdateDevInfo(true); PM.UpdatePstn(true); PM.Load(OM.GetCrntDev()); switch (_iPageIdx) { case 0: FrmOperation.Show(); break; case 1: FrmDevice.Show(); break; case 2: /*FrmMacro .Show();*/ break; case 3: FrmOption.Show(); FrmOption.bUpdate = true; break; case 4: FrmSPC.Show(); break; //FrmSPC .ShowUpdate(); break; case 5: SM.SetDllMainWin(ref pnBase); break; default: FrmOperation.Show(); break; } }