using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
using Ebel.Hardware.Communications;

namespace HwComWrapperNETGui.UserControls
{
    public partial class AnalyzerLoggingConfigurationDialog : Form
    {
        public AnalyzerLoggingConfigurationDialog()
        {
            InitializeComponent();
            if (!this.DesignMode)
            {
                this.nudChannelID.Value = 0;
                this.nudReferenceTimeChannelID.Value = 0;
                this.nudReferenceTimeChannelSlotID.Value = 0;
                this.nudMaxFileSize.Value = 1;
                this.nudPreLoggingRange.Value = 0;
                this.nudPostLoggingRange.Value = 0; 
                this.comboBoxFileFormat.DataSource = Enum.GetValues(typeof(LoggingFileFormat));
                this.comboBoxFileFormat.SelectedItem = LoggingFileFormat.mf4;
                this.comboBoxTimeOption.DataSource = Enum.GetValues(typeof(LoggingTimeOption));
                this.comboBoxTimeOption.SelectedItem = LoggingTimeOption.DeviceTime;
                this.comboBoxFilePath.DataSource = Enum.GetValues(typeof(LoggingFilePath));
                this.comboBoxFilePath.SelectedItem = LoggingFilePath.InternalSDCard;
                this.comboBoxStartupBehaviour.DataSource = Enum.GetValues(typeof(LoggingStartupBehaviour));
                this.comboBoxStartupBehaviour.SelectedItem = LoggingStartupBehaviour.AutoStart;
                this.comboBoxLoggingBehaviour.DataSource = Enum.GetValues(typeof(LoggingLoggingBehaviour));
                this.comboBoxLoggingBehaviour.SelectedItem = LoggingLoggingBehaviour.LoggingOnly;
            }
        }
    }
}
