public void BlockControls(bool block) { ProfileManager.OnProfileLocked(block); GuildNameTextBox.IsEnabled = !block; ComboBoxServer.IsEnabled = !block; SearchButton.IsEnabled = !block; IsDetailedCheckbox.IsEnabled = !block; }