public string GetVersion() { string path = ValutechUpdaterConfiguration.GetInstance().LocalLocation; string version = String.Empty; if (path != null || path != String.Empty) { VersionIniFile versionFile = new VersionIniFile(path); version = versionFile.Version; } return(version); }
private new string GetType() { string path = ValutechUpdaterConfiguration.GetInstance().UpdatesLocation; string type = String.Empty; if (path != null || path != String.Empty) { Regex reg = new Regex(@"[^\\]{1,}$"); Match match = reg.Match(path.Substring(0, path.Length - 1)); type = match.ToString(); } return(type); }