Ejemplo n.º 1
0
        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);
        }
Ejemplo n.º 2
0
        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);
        }