private void Create_btn_Click(object sender, EventArgs e) { bool newDir = false; bool isOK = false; if (!useOriginalMod_cb.Checked) { // !!! HAS TO BE HERE FOR NOW !!! // string destModPath = ImportantMethods.GetDirectoryPathOnly(ProgramConsole.GetModuleInfoPath()) + '\\' + destinationModul_txt.Text; newDir = !Directory.Exists(destModPath); if (newDir) { Directory.CreateDirectory(destModPath); } // !!! HAS TO BE HERE FOR NOW !!! // } isOK = CreateProjectFolder(); if (!useOriginalMod_cb.Checked && isOK) { isOK = CreateModuleFolder(newDir); } if (isOK) { ProgramConsole.LoadProject(CodeReader.ProjectPath, true); ProjectCreated = true; } Close(); }
private bool LoadProject(string projectPath) { bool success = false; try { ProgramConsole.LoadProject(projectPath, true); RemoveAllTabPagesExeptConsole(); LoadProjectExplorer(); success = true; } catch (Exception) { } return(success); }