COMPortTerminal.MainForm.UsePreferencesToSelectParameters C# (CSharp) Méthode

UsePreferencesToSelectParameters() private méthode

Set the text in the ToolStripStatusLabel. Set the user preferences or default values in the combo boxes and ports array using stored preferences or default values.
private UsePreferencesToSelectParameters ( ) : void
Résultat void
        private void UsePreferencesToSelectParameters()
        {
            int myPortIndex = 0;

            myPortIndex = MyPortSettingsDialog.SelectComPort(UserPort1.SavedPortName);
            MyPortSettingsDialog.SelectBitRate(UserPort1.SavedBitRate);
            UserPort1.SelectedPort.BaudRate = (int)MyPortSettingsDialog.cmbBitRate.SelectedItem;
            MyPortSettingsDialog.SelectHandshaking(UserPort1.SavedHandshake);
            UserPort1.SelectedPort.Handshake = (Handshake)MyPortSettingsDialog.cmbHandshaking.SelectedItem;
            MyPortSettingsDialog.chkOpenComPortOnStartup.Checked = savedOpenPortOnStartup;
        }