/// <summary>
    /// Save information of options textarea
    /// </summary>
    private static void SaveOptions(string optionsData)
    {
        try
        {
            db_config_frontoffice dcf = new db_config_frontoffice();
            dcf.Open();

            dcf.Get.Options = optionsData;
            dcf.Commit();

            dcf.Close();
        }
        catch (Exception ex)
        {
            throw new Exception("error: Save Options: " + ex.Message);
        }
    }
Exemple #2
0
    public string GetFrontOfficeOption(string ctrl)
    {
        string crlHash = Generic.GetHash(Generic.GetWebConfigValue("WebServiceKey"));

        if (ctrl != crlHash) return string.Empty;

        try
        {
            db_config_frontoffice dcf = new db_config_frontoffice();
            dcf.Open();

            string options = dcf.Get.Options;

            dcf.Close();

            return options;
        }
        catch (Exception ex)
        {
            return ex.Message;
        }
    }
Exemple #3
0
    private void Startup()
    {
        db_config_frontoffice dcf = new db_config_frontoffice();
        dcf.Open();

        OptionItems oi = new OptionItems(dcf.Get.Options);

        ChangeCss(oi.GetSingle("css"));

        FillMenuBar(oi);
    }