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();
}