public string CreateKey(string key, string version, string max, string mark, string password) { JavaDLL dll = new JavaDLL(); if (dll.Login("admin").UserPass.Equals(password)) { return(dll.addKeys(key, Convert.ToInt32(max), version, mark).ToString()); } else { return("Password error"); } }