Bend.Settings.ControlInitialized C# (CSharp) Method

ControlInitialized() private method

private ControlInitialized ( object sender, EventArgs e ) : void
sender object
e System.EventArgs
return void
        private void ControlInitialized(object sender, EventArgs e)
        {
            this.UpdateButtons();
            CheckForUpdatesButton.IsEnabled = ApplicationDeployment.IsNetworkDeployed;

            // Load defaults from persistant storage
            JSBeautifyPreserveLine.IsChecked = PersistantStorage.StorageObject.JSBeautifyPreserveLine;
            JSBeautifyIndent.Text = PersistantStorage.StorageObject.JSBeautifyIndent.ToString();
            JSBeautifyUseSpaces.IsChecked = PersistantStorage.StorageObject.JSBeautifyUseSpaces;
            JSBeautifyUseTabs.IsChecked = PersistantStorage.StorageObject.JSBeautifyUseTabs;

            this.UpdateOptions();
        }