예제 #1
0
    /// <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);
        }
    }
예제 #2
0
파일: bo_cmds.cs 프로젝트: nelsonjma/ntec
    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;
        }
    }
예제 #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);
    }