public bool Save() { m_SaveOptionForm = new SaveOptionForm(); DialogResult dr = m_SaveOptionForm.ShowDialog(); if (dr != DialogResult.OK) { return(false); } int nRet = m_CheckRelive.Recheck(); if (nRet == 0) { return(true); } EngineLayer.ATLBase.SetCurDir(); EngineLayer.ATLBase.ShowProgressForm(1); m_doc.SaveEditorIni(); if (m_SaveOptionForm.m_ComputeCell) { m_doc.ComputeCells(m_SaveOptionForm.m_AppointCell, m_SaveOptionForm.m_ClearCell); } if (m_SaveOptionForm.m_UpdateAllRest) { m_doc.UpdateAllRest(m_SaveOptionForm.m_AllRest); } if (!m_SaveOptionForm.m_SaveIniOnly && m_SaveOptionForm.m_SaveLogics) { m_doc.ExchangeLogics(); } EngineLayer.ATLBase.ShowProgressForm(0); m_CheckRelive.SaveSetting(); return(true); }
public bool Save() { m_SaveOptionForm = new SaveOptionForm(); DialogResult dr = m_SaveOptionForm.ShowDialog(); if (dr != DialogResult.OK) return false; int nRet = m_CheckRelive.Recheck(); if (nRet == 0) { return true; } EngineLayer.ATLBase.SetCurDir(); EngineLayer.ATLBase.ShowProgressForm(1); m_doc.SaveEditorIni(); if (m_SaveOptionForm.m_ComputeCell) { m_doc.ComputeCells(m_SaveOptionForm.m_AppointCell, m_SaveOptionForm.m_ClearCell); } if (m_SaveOptionForm.m_UpdateAllRest) { m_doc.UpdateAllRest(m_SaveOptionForm.m_AllRest); } if (!m_SaveOptionForm.m_SaveIniOnly && m_SaveOptionForm.m_SaveLogics) { m_doc.ExchangeLogics(); } EngineLayer.ATLBase.ShowProgressForm(0); m_CheckRelive.SaveSetting(); return true; }