Exemple #1
0
        public Main()
        {
            this.InitializeComponent();
            this._bindingSource.DataSource = this._speedReports;
            this.dataGridView1.DataSource  = this._bindingSource;

            this.comboBoxAxisType.DataSource    = Enum.GetValues(typeof(AxisType));
            this.comboBoxAxisType.SelectedIndex = 0;

            var dialog = new CommunicationDialog();

            dialog.StartPosition = FormStartPosition.CenterScreen;
            var dialogResult = dialog.ShowDialog(this);

            if (dialogResult == DialogResult.OK)
            {
                this._communication = dialog.Communication;
            }
        }
Exemple #2
0
        public Main()
        {
            this.InitializeComponent();
            this._bindingSource.DataSource   = this._speedReports;
            this.dataGridViewAxis.DataSource = this._bindingSource;

            this.comboBoxAxisType.DataSource    = Enum.GetValues(typeof(AxisType));
            this.comboBoxAxisType.SelectedIndex = 0;
            this.buttonAbortQuickCheck.Enabled  = false;

            var dialog = new CommunicationDialog
            {
                StartPosition = FormStartPosition.CenterScreen
            };
            var dialogResult = dialog.ShowDialog(this);

            if (dialogResult == DialogResult.OK)
            {
                this._communication      = dialog.Communication;
                this._panTiltControlType = dialog.PanTiltControlType;
            }
        }