Ejemplo n.º 1
0
        private void SavePluginSettings(string name, T plugin, string path = null)
        {
            var text = SaveFunc?.Invoke(plugin);

            if (text == null)
            {
                return;
            }

            path = path ?? GetDefaultSettingsPath(name, plugin);
            File.WriteAllText(path, text);
        }
Ejemplo n.º 2
0
        public void SavePluginSettings(string name, T plugin)
        {
            if (plugin == null)
            {
                return;
            }

            var list = SaveFunc?.Invoke(plugin);

            if (list == null)
            {
                return;
            }

            var text = JsonConvert.SerializeObject(list, Formatting.Indented);
            var path = GetSettingsFilePath(name);

            File.WriteAllText(path, text);
        }
Ejemplo n.º 3
0
    public bool CheckIPN(SaveFunc save)
    {
        Logs.Write("in CheckIpn function");
        bool result = false;

        GetStatus();
        Logs.Write("in CheckIpn response");
        Logs.Write("response=" + response);
        Logs.Write("PaymentStatus=" + Payment_status);

        if (Payment_status == "Completed")
        {
            Logs.Write("In the case completed");
            result = save(Custom + ":" + Invoice + ":" + Txn_id);
        }
        else
        {
        }
        return(result);
    }
Ejemplo n.º 4
0
            public void SaveFunction(SavedFunctionControl NS)
            {
                SaveFunc SF = new SaveFunc(NS);

                FuncInfo.Add(SF);
            }