示例#1
0
        /// <summary>
        /// Will connect the views of the layout to the fields of this class.
        /// </summary>
        private void setupViews()
        {
            _developedBy   = FindViewById <MainTextView>(Resource.Id.AboutDevelopedBy);
            _description   = FindViewById <MainTextView>(Resource.Id.AboutDescription);
            _reviewButton  = FindViewById <Button>(Resource.Id.AboutReviewButton);
            _contactButton = FindViewById <Button>(Resource.Id.AboutContactButton);

            _developedBy.MakeBold();
            _developedBy.Text = Localization.Static.Raw(ResourceKeyNames.Static.DevelopedBy);
            _description.Text = Localization.Static.Raw(ResourceKeyNames.Static.AboutText);
            _description.ChangeFontSize(16);
            _reviewButton.Text  = Localization.Static.Raw(ResourceKeyNames.Static.Review);
            _contactButton.Text = Localization.Static.Raw(ResourceKeyNames.Static.Mail);
        }
        /// <summary>
        /// Will connect the views to the local fields of this class.
        /// </summary>
        private void setupViews()
        {
            _progBar      = FindViewById <ProgressBar>(Resource.Id.ComposeProgressBar);
            _charsLeft    = FindViewById <MainTextView>(Resource.Id.ComposeCharsLeft);
            _composer     = FindViewById <MainTextView>(Resource.Id.ComposeComposer);
            _editText     = FindViewById <MainEditText>(Resource.Id.ComposeEditText);
            _submitButton = FindViewById <Button>(Resource.Id.ComposeSubmitButton);

            _progBar.Visibility = ViewStates.Invisible;
            _charsLeft.Text     = _maxLength.ToString();
            _composer.Text      = DBManager.Static.DBAccessor.Select <SimpleItem>()[0].Value;
            _composer.MakeBold();
            _editText.ChangeFontSize(19);
            _submitButton.Text    = Localization.Static.Raw(ResourceKeyNames.Static.Submit);
            _submitButton.Enabled = false;
        }