private void configureView() { TitleViewLabel.Font = Styles.SetHelveticaBoldFont(18); DescriptionLabel.Font = Styles.SetHelveticaBoldFont(18); AlarmRequestLabel1.Font = Styles.SetHelveticaFont(15); AlarmRequestLabel2.Font = Styles.SetHelveticaFont(15); ConfirmLabel.Font = Styles.SetHelveticaFont(15); DownloadLabel.Font = Styles.SetHelveticaFont(15); NumberConfirmLabel.Font = Styles.SetHelveticaBoldFont(16); NumberRequestLabel.Font = Styles.SetHelveticaBoldFont(16); NumberDownloadLabel.Font = Styles.SetHelveticaBoldFont(16); DownloadButton.SetTitleColor(Colors.primaryRed, UIControlState.Normal); DownloadButton.Layer.BorderColor = UIColor.Black.CGColor; DownloadButton.Layer.BorderWidth = 1.0f; DownloadButton.Layer.CornerRadius = 4; ButtonMail.SetTitleColor(Colors.primaryRed, UIControlState.Normal); TitleViewLabel.Text = AppDelegate.LanguageBundle.GetLocalizedString("alarm_title"); DescriptionLabel.Text = AppDelegate.LanguageBundle.GetLocalizedString("alarm_description"); AlarmRequestLabel1.AttributedText = Styles.ConvertHTMLStyles(AppDelegate.LanguageBundle.GetLocalizedString("alarm_request_date_text_1"), AlarmRequestLabel1.Font.Name, AlarmRequestLabel1.Font.PointSize); AlarmRequestLabel2.Text = AppDelegate.LanguageBundle.GetLocalizedString("alarm_request_date_text_2"); ConfirmLabel.AttributedText = Styles.ConvertHTMLStyles(AppDelegate.LanguageBundle.GetLocalizedString("alarm_confirm_date"), ConfirmLabel.Font.Name, ConfirmLabel.Font.PointSize); DownloadLabel.AttributedText = Styles.ConvertHTMLStyles(AppDelegate.LanguageBundle.GetLocalizedString("alarm_download_skype"), DownloadLabel.Font.Name, DownloadLabel.Font.PointSize); DownloadButton.SetTitle(AppDelegate.LanguageBundle.GetLocalizedString("alarm_download_skype_link"), UIControlState.Normal); EmailButton.SetTitle(AppDelegate.LanguageBundle.GetLocalizedString("alarm_request_button"), UIControlState.Normal); ButtonMail.SetTitle(AppDelegate.LanguageBundle.GetLocalizedString("alarm_email"), UIControlState.Normal); }
partial void DownloadButtonClicked(UIButton sender) { if (currentActiveView == 2) { return; } BluetoothViewObj.Hidden = true; DownloadViewObj.Hidden = false; // Make the current button bold and stand out DownloadButton.SetTitleColor(UIColor.FromRGBA(82, 99, 227, 255), UIControlState.Normal); DownloadButton.Font = UIFont.BoldSystemFontOfSize(17.0f); // Make other fonts smaller DashboardButton.Font = UIFont.SystemFontOfSize(17.0f); BluetoothButton.Font = UIFont.SystemFontOfSize(17.0f); DashboardButton.SetTitleColor(UIColor.FromRGBA(82, 99, 227, 175), UIControlState.Normal); BluetoothButton.SetTitleColor(UIColor.FromRGBA(82, 99, 227, 175), UIControlState.Normal); currentActiveView = 2; }