Exemple #1
0
        static public void SetConfig(QueueConfig qc, string sectionName)
        {
            AppSetting.BatchBegin();
            try
            {
                SettingItem queueSetting = AppSettingHelper.GetSpecifySection(sectionName);

                queueSetting.WriteSetting("DefaultQueueName", qc.DefaultQueueName);

                AppSetting.BatchCommit();
            }
            catch (Exception ex)
            {
                AppSetting.BatchCancel();

                MsgBox.ShowException(ex);
            }
        }
Exemple #2
0
        static public void SetConfig(PedalConfig cc)
        {
            AppSetting.BatchBegin();
            try
            {
                AppSetting.WriteSetting("PealDeviceName", cc.PealDeviceName);
                AppSetting.WriteSetting("TouchWay", cc.TouchWay.ToString());
                AppSetting.WriteInt("TouchInterval", cc.TouchInterval);
                AppSetting.WriteInt("SignCount", cc.SignCount);

                AppSetting.BatchCommit();
            }
            catch (Exception ex)
            {
                AppSetting.BatchCancel();

                MsgBox.ShowException(ex);
            }
        }