static public void SetConfig(CaptureConfig cc, string sectionName)
        {
            SettingItem imageSetting = AppSettingHelper.GetSpecifySection(sectionName);

            imageSetting.BatchBegin();
            try
            {
                imageSetting.WriteSetting("VideoDeviceName", cc.VideoDeviceName);
                imageSetting.WriteInt("ResolutionIndex", cc.ResolutionIndex);
                imageSetting.WriteInt("InputPort", cc.InputPort);
                imageSetting.WriteSetting("VideoEncode", cc.VideoEncode.ToString());

                imageSetting.WriteBool("SoundHint", cc.SoundHint);
                imageSetting.WriteBool("PopupHint", cc.PopupHint);
                imageSetting.WriteInt("FrameRate", cc.FrameRate);
                imageSetting.WriteBool("RecordDate", cc.RecordDate);

                imageSetting.BatchCommit();
            }
            catch (Exception ex)
            {
                imageSetting.BatchCancel();
                MsgBox.ShowException(ex);
            }
        }
        static public void SetConfig(ImageConfig ic, string sectionName)
        {
            SettingItem imageSetting = AppSettingHelper.GetSpecifySection(sectionName);

            imageSetting.BatchBegin();
            try
            {
                imageSetting.WriteInt("RecordCount", ic.RecordCount);

                imageSetting.BatchCommit();
            }
            catch (Exception ex)
            {
                imageSetting.BatchCancel();
                MsgBox.ShowException(ex);
            }
        }