public static Dictionary <string, string> GetPhaseLibrary(string directory) { JSONEditor jsonEditor = new JSONEditor(directory); Dictionary <string, string> library = new Dictionary <string, string> (); library.Add("glasswareStart", jsonEditor.GetMainValue("glasswareStart")); library.Add("compoundFormula", jsonEditor.GetMainValue("compoundFormula")); library.Add("volume", jsonEditor.GetMainValue("volume")); library.Add("molarity", jsonEditor.GetMainValue("molarity")); return(library); }
public static string LoadNotes() { string loadedNotes = ""; JSONEditor jsonEditor = new JSONEditor("anotacoes"); int numberOfNotes = int.Parse(jsonEditor.GetMainValue("quantidadeAnotacoes")); for (int i = 1; i <= numberOfNotes; i++) { loadedNotes += jsonEditor.GetMainValue(i.ToString()); loadedNotes += "\n"; } return(loadedNotes); }
public static string GetExperimentName(int experimentNumber) { json = new JSONEditor("journalItems" + experimentNumber.ToString()); return(json.GetMainValue("name")); }