private void prepareViews() { // Syncing indicator colors setIndicatorSyncColor(SyncedIcon); setIndicatorSyncColor(SyncingIndicator); setIndicatorSyncColor(LoggingOutIndicator); // Resize Switches AddMobileTagSwitch.Resize(); TwentyFourHourClockSwitch.Resize(); // Disable unused settings SubscriptionView.Hidden = true; TwentyFourHourClockView.Hidden = true; AddMobileTagView.Hidden = true; FeedbackView.Hidden = true; RateView.Hidden = true; UpdateView.Hidden = true; HelpView.Hidden = true; }
void ReleaseDesignerOutlets() { if (EmailLabel != null) { EmailLabel.Dispose(); EmailLabel = null; } if (WorkspaceLabel != null) { WorkspaceLabel.Dispose(); WorkspaceLabel = null; } if (PlanLabel != null) { PlanLabel.Dispose(); PlanLabel = null; } if (TwentyFourHourClockSwitch != null) { TwentyFourHourClockSwitch.Dispose(); TwentyFourHourClockSwitch = null; } if (AddMobileTagSwitch != null) { AddMobileTagSwitch.Dispose(); AddMobileTagSwitch = null; } if (FeedbackView != null) { FeedbackView.Dispose(); FeedbackView = null; } if (RateView != null) { RateView.Dispose(); RateView = null; } if (UpdateView != null) { UpdateView.Dispose(); UpdateView = null; } if (HelpView != null) { HelpView.Dispose(); HelpView = null; } if (VersionLabel != null) { VersionLabel.Dispose(); VersionLabel = null; } if (AddMobileTagView != null) { AddMobileTagView.Dispose(); AddMobileTagView = null; } if (TwentyFourHourClockView != null) { TwentyFourHourClockView.Dispose(); TwentyFourHourClockView = null; } if (SubscriptionView != null) { SubscriptionView.Dispose(); SubscriptionView = null; } if (WorkspaceView != null) { WorkspaceView.Dispose(); WorkspaceView = null; } if (EmailView != null) { EmailView.Dispose(); EmailView = null; } if (LoggingOutIndicator != null) { LoggingOutIndicator.Dispose(); LoggingOutIndicator = null; } if (LoggingOutLabel != null) { LoggingOutLabel.Dispose(); LoggingOutLabel = null; } if (LoggingOutView != null) { LoggingOutView.Dispose(); LoggingOutView = null; } if (LogoutButton != null) { LogoutButton.Dispose(); LogoutButton = null; } if (SyncedIcon != null) { SyncedIcon.Dispose(); SyncedIcon = null; } if (SyncedLabel != null) { SyncedLabel.Dispose(); SyncedLabel = null; } if (SyncedView != null) { SyncedView.Dispose(); SyncedView = null; } if (SyncingIndicator != null) { SyncingIndicator.Dispose(); SyncingIndicator = null; } if (SyncingLabel != null) { SyncingLabel.Dispose(); SyncingLabel = null; } if (SyncingView != null) { SyncingView.Dispose(); SyncingView = null; } }