Пример #1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            DialogView.AddBorder(Colors.PopUpShadowColor, 13);
            DialogView.AddShadow(Colors.PopUpShadowColor, 13, 0, 0);

            if (!String.IsNullOrEmpty(titleText))
            {
                TitleLabel.Text = titleText;
            }

            if (!String.IsNullOrEmpty(messageText))
            {
                MessageLabel.Text = messageText;
            }

            if (AttributedMessage != null)
            {
                MessageLabel.AttributedText = AttributedMessage;
            }

            if (!String.IsNullOrEmpty(leftButtonText))
            {
                LeftButton.SetTitle(leftButtonText, UIControlState.Normal);
            }

            if (!String.IsNullOrEmpty(rightButtonText))
            {
                RightButton.SetTitle(rightButtonText, UIControlState.Normal);
            }
        }
Пример #2
0
        public override void ViewWillAppear(bool animated)
        {
            base.ViewWillAppear(animated);
            MainMenu.dngNav.SetNavigationBarHidden(true, true);
            RoomImage.Image = rc.Image;
            TopButton.SetTitle(TopButtonDuty.ToString(), UIControlState.Normal);
            BottomButton.SetTitle(BottomButtonDuty.ToString(), UIControlState.Normal);
            RightButton.SetTitle(RightButtonDuty.ToString(), UIControlState.Normal);
            LeftButton.SetTitle(LeftButtonDuty.ToString(), UIControlState.Normal);


            base.ViewDidAppear(animated);
        }