Acrolinx.Sdk.Sidebar.Util.Configuration.Options.Options C# (CSharp) Метод

Options() публичный Метод

public Options ( string serverAddress, bool showSelectInSidebarOption = false ) : System
serverAddress string
showSelectInSidebarOption bool
Результат System
        public Options(string serverAddress, bool showSelectInSidebarOption = false)
        {
            InitializeComponent();

            SetLocalizations();

            checkSelectInSidebar.Visible = showSelectInSidebarOption;
            checkSelectInSidebar.Checked = showSelectInSidebarOption && serverAddress == null;

            textLogDirectory.Text = Logging.Logger.Directory;
            buttonBrowse.Enabled = !(String.IsNullOrWhiteSpace(textLogDirectory.Text));

            if (serverAddress != null)
            {
                this.textServerAddress.Text = serverAddress;
            }

            validationSidebar.SidebarSourceNotReachable += Validation_SidebarSourceNotReachable;
            validationSidebar.DocumentLoaded += Validation_SidebarLoaded;
            this.textServerAddress.TextChanged += ServerAddressText_TextChanged;

            validateOptionsAndAdjustControlStates();
        }