/// <summary> /// Write data from configuration form to json file /// </summary> /// <param name="list"></param> public static void WriteToFile(List <GitToolMenuItem> list) { var json = JsonConvertEx.SerializeObject(list); File.WriteAllText(_fileName, json); }
/// <summary> /// Create initial json file with above menu items /// </summary> /// <returns></returns> public static string Json() => JsonConvertEx.SerializeObject(CreateList());