public bool InitTest() { string path = "C:\\Users\\dewints\\Downloads\\fdm.key"; if (!KeyFile.TryLoadFromFile(path, "DEMO" /* TODO use your own passphase */, out k)) { Debug.WriteLine("Unable to load the key file \"" + path + "\"."); return(false); } c = FDMClient.CreateClient(k, Languages.English); if (c == null) { Debug.WriteLine("Unable to create the FDM client."); return(false); } return(true); }
public bool InitializeFDMClient() { KeyFile k; string path = "C:\\Users\\dewints\\Downloads\\fdm.key"; // TODO: Use our own passphase. if (!KeyFile.TryLoadFromFile(path, "DEMO", out k)) { Debug.WriteLine("Unable to load the key file \"" + path + "\"."); return(false); } FDMClient = FDMClient.CreateClient(k, Languages.English); if (FDMClient == null) { Debug.WriteLine("Unable to create the FDM client."); return(false); } return(true); }