public static VersionCell GetVersionCode() { VersionCell vc = new VersionCell(); vc.CalculateVersion(VersionTool.packageVersion); return(vc); }
public void InitVersionData() { if (File.Exists(PathTool.VersionFilePath)) { string tmp = File.ReadAllText(PathTool.VersionFilePath); string fileVersion = tmp; currentVersion = fileVersion; } else { currentVersion = packageVersion; FileUtils.WriteAllText(PathTool.VersionFilePath, currentVersion); } currentVersionCell = new VersionCell(); currentVersionCell.CalculateVersion(currentVersion); }