private void create_Click(object sender, EventArgs e) { MCProj m = new MCProj(); m.name = projPath.Text; m.path = projPath.Text; m.Save(); projectCreated = m; }
private bool SaveProjPrompt() { if (currentProj == null) { CreateProj j = new CreateProj(); j.ShowDialog(); if (j.projectCreated == null) { return(false); } else { currentProj = j.projectCreated; return(true); } } else { currentProj.Save(); return(true); } }