private FlowInfo doCheckDBInstalled(FlowInfo flowInfo) { bool prevDbExists = ctr.prevDbExists(); FrmDbInstall frmDbInstall = new FrmDbInstall(this.context, ctr); //포트 확인 및 선택 if (frmDbInstall.ShowDialog(wrapper) == DialogResult.OK) { Logger.info(string.Format("ctr.DbPort[{0}]ctr.NeedPrevDbRemove[{1}]", ctr.DbPort, ctr.NeedPrevDbRemove)); ctr.UpdateDbPort(); } else { Logger.error("DB설치중 설치취소"); throw new Exception("DB설치중 설치취소"); } frmDbInstall.Dispose(); if (prevDbExists) { if (ctr.NeedPrevDbRemove) { flowInfo.PrevStep = Step.CHECK_DB_INSTALLED; flowInfo.NextStep = Step.DELETE_INSTALL_DB; } else { flowInfo.PrevStep = Step.CHECK_DB_INSTALLED; flowInfo.NextStep = Step.CHECK_WEDO_INSTALLED; } } else { flowInfo.PrevStep = Step.CHECK_DB_INSTALLED; flowInfo.NextStep = Step.INSTALL_NEW_DB; } return(flowInfo); }
private FlowInfo doCheckDBInstalled(FlowInfo flowInfo) { bool prevDbExists = ctr.prevDbExists(); FrmDbInstall frmDbInstall = new FrmDbInstall(this.context, ctr); //포트 확인 및 선택 if (frmDbInstall.ShowDialog(wrapper) == DialogResult.OK) { Logger.info(string.Format("ctr.DbPort[{0}]ctr.NeedPrevDbRemove[{1}]", ctr.DbPort, ctr.NeedPrevDbRemove)); ctr.UpdateDbPort(); } else { Logger.error("DB설치중 설치취소"); throw new Exception("DB설치중 설치취소"); } frmDbInstall.Dispose(); if (prevDbExists) { if (ctr.NeedPrevDbRemove) { flowInfo.PrevStep = Step.CHECK_DB_INSTALLED; flowInfo.NextStep = Step.DELETE_INSTALL_DB; } else { flowInfo.PrevStep = Step.CHECK_DB_INSTALLED; flowInfo.NextStep = Step.CHECK_WEDO_INSTALLED; } } else { flowInfo.PrevStep = Step.CHECK_DB_INSTALLED; flowInfo.NextStep = Step.INSTALL_NEW_DB; } return flowInfo; }