/// <summary> /// 创建新的分类到云端 /// </summary> /// <param name="tr"></param> /// <returns></returns> public static Boolean CreatNewType(DataSet.TypeRow tr) { ReadAllTypes(); Types.AddTypeRow(tr);//本地保存 SaveAllTypes(); //云端保存 DataSet.TypeDataTable NewType = new DataSet.TypeDataTable(); NewType.AddTypeRow(tr); NewType.WriteXml(FilePathUtils.LOCAL_TEMP + FilePathUtils.LOCAL_FILE_TYPE); String TypeStruct = File.ReadAllText(FilePathUtils.LOCAL_TEMP + FilePathUtils.LOCAL_FILE_TYPE); ConfigUtils.ServerProtocol.CreatType(TypeStruct, tr.BM); return(true); }