示例#1
0
        /// <summary>
        /// Sets the options according to the controls.
        /// </summary>
        private void ControlsToOptions()
        {
            // general options
            options.Retention  = Convert.ToInt32(numRetention.Value);
            options.LogEnabled = chkLogEnabled.Checked;

            // database options
            options.UseStorageConn = chkUseStorageConn.Checked;
            options.Connection     = cbConnection.Text;
            options.MaxQueueSize   = Convert.ToInt32(numMaxQueueSize.Value);
            options.PartitionSize  = (PartitionSize)cbPartitionSize.SelectedIndex;

            options.AddToOptionList(archiveConfig.CustomOptions);
        }