Exemplo n.º 1
0
        static void DevModeEntry()
        {
            Console.WriteLine("Developer Mode Activated");

            Console.WriteLine("Please enter the SftpPlugin Directory");
            string address = Console.ReadLine();

            using (JsonHelper config = new JsonHelper("config.json"))
            {
                if (config.Has("SftpClientAddress"))
                {
                    if (address == "")
                    {
                        return;
                    }
                    config.SetProperty <string>("SftpClientAddress", address);
                }
                else
                {
                    config.AddProperty("SftpClientAddress", address);
                }
            }
        }