Ejemplo n.º 1
0
        private void VersionLinkLabel_LinkClicked(object?sender, LinkLabelLinkClickedEventArgs e)
        {
            using var form = new ProtocolVersionSelectionForm
                  {
                      Version = settings.ProtocolVersionOrDefault
                  };

            if (ShowDialogForm(form) == DialogResult.OK)
            {
                settings.ProtocolVersion = form.Version.ToString();
                UpdateControlsFromSettings();
                UpdateSessionManagerFromSettings();
            }
        }
        private void VersionLinkLabel_LinkClicked([CanBeNull] object sender, [NotNull] LinkLabelLinkClickedEventArgs e)
        {
            using (var form = new ProtocolVersionSelectionForm())
            {
                form.Version = settings.ProtocolVersionOrDefault;

                if (form.ShowDialog(this) == DialogResult.OK)
                {
                    settings.ProtocolVersion = form.Version?.ToString();
                    UpdateControlsFromSettings();
                    UpdateSessionManagerFromSettings();
                }
            }
        }