Exemplo n.º 1
0
        public ActionResult DeleteConfirmed(int id)
        {
            GroupTitle grouptitle = db.GroupTitles.Single(g => g.GroupTitleID == id);

            db.GroupTitles.DeleteObject(grouptitle);
            db.SaveChanges();
            return(RedirectToAction("Index"));
        }
Exemplo n.º 2
0
        //
        // GET: /Groups/Delete/5

        public ActionResult Delete(int id = 0)
        {
            GroupTitle grouptitle = db.GroupTitles.Single(g => g.GroupTitleID == id);

            if (grouptitle == null)
            {
                return(HttpNotFound());
            }
            return(View(grouptitle));
        }
Exemplo n.º 3
0
 public ActionResult Edit(GroupTitle grouptitle)
 {
     if (ModelState.IsValid)
     {
         db.GroupTitles.Attach(grouptitle);
         db.ObjectStateManager.ChangeObjectState(grouptitle, EntityState.Modified);
         db.SaveChanges();
         return(RedirectToAction("Index"));
     }
     return(View(grouptitle));
 }
Exemplo n.º 4
0
        public ActionResult Create(GroupTitle grouptitle)
        {
            if (ModelState.IsValid)
            {
                db.GroupTitles.AddObject(grouptitle);
                db.SaveChanges();
                return(RedirectToAction("Index"));
            }

            return(View(grouptitle));
        }
Exemplo n.º 5
0
        /// <summary>
        /// Loads the title.
        /// </summary>
        /// <param name="group">The group.</param>
        public void LoadTitle(Model.Group.Group group)
        {
            this.GroupData = group;
            GroupTitle title = new GroupTitle();

            title.LoadData(group);
            title.SubscribeToGroup += new Delegates.Delegates.SubscribeToGroupHandler(title_SubscribeToGroup);
            title.Dock              = DockStyle.Fill;
            this.pTitle.Controls.Clear();
            this.pTitle.Controls.Add(title);
            title.Show();
            title.BringToFront();
        }
Exemplo n.º 6
0
        //
        // GET: /Groups/Details/5

        public ActionResult Details(int id = 0)
        {
            GroupTitle grouptitle = db.GroupTitles.Single(g => g.GroupTitleID == id);

            if (grouptitle == null)
            {
                return(HttpNotFound());
            }
            GroupMemberList gm = new GroupMemberList();

            ViewData["GroupMembers"] = gm.GetGroupMemberList(id);
            return(View(grouptitle));
        }
Exemplo n.º 7
0
        public void DisplayView(string groupTitle, string distance, string meetingTime, int groupId)
        {
            // store the group ID as we'll need it if they hit submit
            GroupID = groupId;

            // set the group title
            GroupTitle.Text = groupTitle;
            GroupTitle.SizeToFit( );

            // set the details for the group (distance, meeting time, etc)
            GroupDetails.Text          = meetingTime + "\n" + distance;
            GroupDetails.TextAlignment = TextAlignment.Center;
            GroupDetails.SizeToFit( );

            FirstName.Text = MobileApp.Shared.Network.RockMobileUser.Instance.Person.NickName;
            LastName.Text  = MobileApp.Shared.Network.RockMobileUser.Instance.Person.LastName;


            Email.Text     = MobileApp.Shared.Network.RockMobileUser.Instance.Person.Email;
            CellPhone.Text = MobileApp.Shared.Network.RockMobileUser.Instance.CellPhoneNumberDigits( );

            ResultView.Hide( );
        }
Exemplo n.º 8
0
        public void Create(object masterView, RectangleF frame)
        {
            View = PlatformView.Create( );
            View.BackgroundColor = ControlStylingConfig.BackgroundColor;
            View.AddAsSubview(masterView);

            GroupTitle = PlatformLabel.Create( );
            GroupTitle.AddAsSubview(masterView);
            GroupTitle.SetFont(ControlStylingConfig.Font_Bold, ControlStylingConfig.Large_FontSize);
            GroupTitle.TextColor     = ControlStylingConfig.TextField_ActiveTextColor;
            GroupTitle.TextAlignment = TextAlignment.Center;

            /*GroupDetailsLayer = PlatformView.Create( );
             * GroupDetailsLayer.AddAsSubview( masterView );
             * GroupDetailsLayer.BackgroundColor = ControlStylingConfig.BG_Layer_Color;
             * GroupDetailsLayer.BorderColor = ControlStylingConfig.BG_Layer_BorderColor;
             * GroupDetailsLayer.BorderWidth = ControlStylingConfig.BG_Layer_BorderWidth;*/

            GroupDetails = PlatformLabel.Create( );
            GroupDetails.AddAsSubview(masterView);
            GroupDetails.SetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Medium_FontSize);
            GroupDetails.TextColor = ControlStylingConfig.TextField_ActiveTextColor;


            // Name Info
            FirstNameLayer = PlatformView.Create( );
            FirstNameLayer.AddAsSubview(masterView);
            FirstNameLayer.BackgroundColor = ControlStylingConfig.BG_Layer_Color;
            FirstNameLayer.BorderColor     = ControlStylingConfig.BG_Layer_BorderColor;
            FirstNameLayer.BorderWidth     = ControlStylingConfig.BG_Layer_BorderWidth;

            FirstName = PlatformTextField.Create( );
            FirstName.AddAsSubview(masterView);
            FirstName.SetFont(ControlStylingConfig.Font_Regular, ControlStylingConfig.Medium_FontSize);
            FirstName.PlaceholderTextColor   = ControlStylingConfig.TextField_PlaceholderTextColor;
            FirstName.Placeholder            = ConnectStrings.JoinGroup_FirstNamePlaceholder;
            FirstName.TextColor              = ControlStylingConfig.TextField_ActiveTextColor;
            FirstName.KeyboardAppearance     = KeyboardAppearanceStyle.Dark;
            FirstName.AutoCapitalizationType = AutoCapitalizationType.Words;
            FirstName.AutoCorrectionType     = AutoCorrectionType.No;


            LastNameLayer = PlatformView.Create( );
            LastNameLayer.AddAsSubview(masterView);
            LastNameLayer.BackgroundColor = ControlStylingConfig.BG_Layer_Color;
            LastNameLayer.BorderColor     = ControlStylingConfig.BG_Layer_BorderColor;
            LastNameLayer.BorderWidth     = ControlStylingConfig.BG_Layer_BorderWidth;

            LastName = PlatformTextField.Create( );
            LastName.AddAsSubview(masterView);
            LastName.SetFont(ControlStylingConfig.Font_Regular, ControlStylingConfig.Medium_FontSize);
            LastName.PlaceholderTextColor   = ControlStylingConfig.TextField_PlaceholderTextColor;
            LastName.Placeholder            = ConnectStrings.JoinGroup_LastNamePlaceholder;
            LastName.TextColor              = ControlStylingConfig.TextField_ActiveTextColor;
            LastName.KeyboardAppearance     = KeyboardAppearanceStyle.Dark;
            LastName.AutoCapitalizationType = AutoCapitalizationType.Words;
            LastName.AutoCorrectionType     = AutoCorrectionType.No;

            SpouseNameLayer = PlatformView.Create( );
            SpouseNameLayer.AddAsSubview(masterView);
            SpouseNameLayer.BackgroundColor = ControlStylingConfig.BG_Layer_Color;
            SpouseNameLayer.BorderColor     = ControlStylingConfig.BG_Layer_BorderColor;
            SpouseNameLayer.BorderWidth     = ControlStylingConfig.BG_Layer_BorderWidth;

            SpouseName = PlatformTextField.Create( );
            SpouseName.AddAsSubview(masterView);
            SpouseName.SetFont(ControlStylingConfig.Font_Regular, ControlStylingConfig.Medium_FontSize);
            SpouseName.PlaceholderTextColor   = ControlStylingConfig.TextField_PlaceholderTextColor;
            SpouseName.Placeholder            = ConnectStrings.JoinGroup_SpouseNamePlaceholder;
            SpouseName.TextColor              = ControlStylingConfig.TextField_ActiveTextColor;
            SpouseName.KeyboardAppearance     = KeyboardAppearanceStyle.Dark;
            SpouseName.AutoCapitalizationType = AutoCapitalizationType.Words;
            SpouseName.AutoCorrectionType     = AutoCorrectionType.No;

            // Contact Info
            EmailLayer = PlatformView.Create( );
            EmailLayer.AddAsSubview(masterView);
            EmailLayer.BackgroundColor = ControlStylingConfig.BG_Layer_Color;
            EmailLayer.BorderColor     = ControlStylingConfig.BG_Layer_BorderColor;
            EmailLayer.BorderWidth     = ControlStylingConfig.BG_Layer_BorderWidth;

            Email = PlatformTextField.Create( );
            Email.AddAsSubview(masterView);
            Email.SetFont(ControlStylingConfig.Font_Regular, ControlStylingConfig.Medium_FontSize);
            Email.PlaceholderTextColor   = ControlStylingConfig.TextField_PlaceholderTextColor;
            Email.Placeholder            = ConnectStrings.JoinGroup_EmailPlaceholder;
            Email.TextColor              = ControlStylingConfig.TextField_ActiveTextColor;
            Email.KeyboardAppearance     = KeyboardAppearanceStyle.Dark;
            Email.AutoCapitalizationType = AutoCapitalizationType.None;
            Email.AutoCorrectionType     = AutoCorrectionType.No;

            CellPhoneLayer = PlatformView.Create( );
            CellPhoneLayer.AddAsSubview(masterView);
            CellPhoneLayer.BackgroundColor = ControlStylingConfig.BG_Layer_Color;
            CellPhoneLayer.BorderColor     = ControlStylingConfig.BG_Layer_BorderColor;
            CellPhoneLayer.BorderWidth     = ControlStylingConfig.BG_Layer_BorderWidth;

            CellPhone = PlatformTextField.Create( );
            CellPhone.AddAsSubview(masterView);
            CellPhone.SetFont(ControlStylingConfig.Font_Regular, ControlStylingConfig.Medium_FontSize);
            CellPhone.PlaceholderTextColor   = ControlStylingConfig.TextField_PlaceholderTextColor;
            CellPhone.Placeholder            = ConnectStrings.JoinGroup_CellPhonePlaceholder;
            CellPhone.TextColor              = ControlStylingConfig.TextField_ActiveTextColor;
            CellPhone.KeyboardAppearance     = KeyboardAppearanceStyle.Dark;
            CellPhone.AutoCapitalizationType = AutoCapitalizationType.None;
            CellPhone.AutoCorrectionType     = AutoCorrectionType.No;


            // Join Button
            JoinButton = PlatformButton.Create( );
            JoinButton.AddAsSubview(masterView);
            JoinButton.ClickEvent      = JoinClicked;
            JoinButton.BackgroundColor = ControlStylingConfig.Button_BGColor;
            JoinButton.TextColor       = ControlStylingConfig.Button_TextColor;
            JoinButton.CornerRadius    = ControlStylingConfig.Button_CornerRadius;
            JoinButton.Text            = ConnectStrings.JoinGroup_JoinButtonLabel;
            JoinButton.SizeToFit( );
            JoinButton.UserInteractionEnabled = true;

            // Create our results view overlay
            ResultView = new UIResultView(masterView, View.Frame, OnResultViewDone);

            // Create our blocker view
            BlockerView = new UIBlockerView(masterView, View.Frame);
        }
Exemplo n.º 9
0
        public void LayoutChanged(RectangleF containerBounds)
        {
            View.Frame = new RectangleF(containerBounds.Left, containerBounds.Top, containerBounds.Width, containerBounds.Height);

            BlockerView.SetBounds(containerBounds);
            ResultView.SetBounds(containerBounds);

            if (IsDownloading == false)
            {
                float sectionSpacing = Rock.Mobile.Graphics.Util.UnitToPx(25);
                float textLeftInset  = Rock.Mobile.Graphics.Util.UnitToPx(10);
                float textTopInset   = Rock.Mobile.Graphics.Util.UnitToPx(2);
                float textRightInset = textLeftInset * 2;
                float textBotInset   = textTopInset * 2;

                float buttonWidth  = Rock.Mobile.Graphics.Util.UnitToPx(122);
                float buttonHeight = Rock.Mobile.Graphics.Util.UnitToPx(44);

                GroupTitle.Hidden = false;
                GroupTitle.Frame  = new RectangleF(textLeftInset, 0, View.Frame.Width - textRightInset, 0);
                GroupTitle.SizeToFit( );
                GroupTitle.Bounds = new RectangleF(0, 0, View.Frame.Width - textRightInset, GroupTitle.Bounds.Height);

                // layout the meeting itme
                MeetingTime.Hidden = false;
                MeetingTime.Frame  = new RectangleF(textLeftInset, GroupTitle.Frame.Bottom, View.Frame.Width - textRightInset, 0);
                MeetingTime.SizeToFit( );
                MeetingTime.Bounds = new RectangleF(0, 0, View.Frame.Width - textRightInset, MeetingTime.Bounds.Height);

                float nextYPos = MeetingTime.Frame.Bottom;

                // layout the childcare banner
                if (string.IsNullOrWhiteSpace(ChildcareProvided.Text) == false)
                {
                    ChildcareProvided.Hidden = false;
                    ChildcareProvided.Frame  = new RectangleF(textLeftInset, nextYPos, View.Frame.Width - textRightInset, 0);
                    ChildcareProvided.SizeToFit( );
                    ChildcareProvided.Bounds = new RectangleF(0, 0, View.Frame.Width - textRightInset, ChildcareProvided.Bounds.Height);

                    nextYPos = ChildcareProvided.Frame.Bottom;
                }
                else
                {
                    ChildcareProvided.Hidden = true;
                }

                // layout the young adults banner
                if (string.IsNullOrWhiteSpace(YoungAdults.Text) == false)
                {
                    YoungAdults.Hidden = false;
                    YoungAdults.Frame  = new RectangleF(textLeftInset, nextYPos, View.Frame.Width - textRightInset, 0);
                    YoungAdults.SizeToFit( );
                    YoungAdults.Bounds = new RectangleF(0, 0, View.Frame.Width - textRightInset, YoungAdults.Bounds.Height);

                    nextYPos = YoungAdults.Frame.Bottom;
                }
                else
                {
                    YoungAdults.Hidden = true;
                }
                nextYPos += sectionSpacing;

                // layout the group description header (IF there's a description or group photo)
                if (string.IsNullOrWhiteSpace(GroupDesc.Text) == false || FamilyImageValid == true)
                {
                    // display and position the header
                    GroupDescHeader.Hidden = false;
                    GroupDescHeader.Frame  = new RectangleF(textLeftInset, nextYPos + textTopInset, View.Frame.Width - textRightInset, 0);
                    GroupDescHeader.SizeToFit( );
                    GroupDescHeader.Bounds = new RectangleF(0, 0, View.Frame.Width - textRightInset, GroupDescHeader.Bounds.Height);
                    nextYPos = GroupDescHeader.Frame.Bottom;

                    // now try the image
                    if (FamilyImageValid == true)
                    {
                        // setup padding for the image
                        float imageTopPadding        = textTopInset * 2;
                        float imageBotPadding        = textBotInset * 2;
                        float leaderImageLayerHeight = Rock.Mobile.Graphics.Util.UnitToPx(PrivateConnectConfig.GroupInfo_Leader_ImageSize);

                        FamilyImage.Hidden   = false;
                        FamilyImage.Position = new PointF((View.Frame.Width - FamilyImage.Frame.Width) / 2, nextYPos + imageTopPadding);

                        FamilyImageLayer.Hidden = false;
                        FamilyImageLayer.Frame  = new RectangleF(0, nextYPos, View.Frame.Width, leaderImageLayerHeight + imageBotPadding);

                        nextYPos = FamilyImageLayer.Frame.Bottom + sectionSpacing;
                    }

                    // try to layout the group description
                    if (string.IsNullOrWhiteSpace(GroupDesc.Text) == false)
                    {
                        GroupDesc.Hidden = false;
                        GroupDesc.Frame  = new RectangleF(textLeftInset, nextYPos + textTopInset, View.Frame.Width - textRightInset, 0);
                        GroupDesc.SizeToFit( );
                        GroupDesc.Bounds = new RectangleF(0, 0, View.Frame.Width - textRightInset, GroupDesc.Bounds.Height);

                        GroupDescLayer.Hidden = false;
                        GroupDescLayer.Frame  = new RectangleF(0, nextYPos, View.Frame.Width, GroupDesc.Frame.Height + textBotInset);

                        nextYPos = GroupDescLayer.Frame.Bottom + textBotInset + sectionSpacing;
                    }

                    // now try the image
                    if (GroupImageValid == true)
                    {
                        // setup padding for the image
                        float imageTopPadding       = textTopInset * 2;
                        float imageBotPadding       = textBotInset * 2;
                        float groupImageLayerHeight = Rock.Mobile.Graphics.Util.UnitToPx(PrivateConnectConfig.GroupInfo_Group_ImageSize);

                        GroupImage.Hidden   = false;
                        GroupImage.Position = new PointF((View.Frame.Width - GroupImage.Frame.Width) / 2, nextYPos + imageTopPadding);

                        GroupImageLayer.Hidden = false;
                        GroupImageLayer.Frame  = new RectangleF(0, nextYPos, View.Frame.Width, groupImageLayerHeight + imageBotPadding);

                        nextYPos = GroupImageLayer.Frame.Bottom + sectionSpacing;
                    }

                    // regardless of which (or both) of the above displayed, add an additional sectionSpacing
                    // so that the next major section, ChildDesc, has more spacing.
                    nextYPos += sectionSpacing;
                }

                // layout the child info header
                if (string.IsNullOrWhiteSpace(ChildDesc.Text) == false)
                {
                    ChildDescHeader.Hidden = false;
                    ChildDescHeader.Frame  = new RectangleF(textLeftInset, nextYPos + textTopInset, View.Frame.Width - textRightInset, 0);
                    ChildDescHeader.SizeToFit( );
                    ChildDescHeader.Bounds = new RectangleF(0, 0, View.Frame.Width - textRightInset, ChildDescHeader.Bounds.Height);
                    nextYPos = ChildDescHeader.Frame.Bottom;

                    // layout child info
                    ChildDesc.Hidden = false;
                    ChildDesc.Frame  = new RectangleF(textLeftInset, nextYPos + textTopInset, View.Frame.Width - textRightInset, 0);
                    ChildDesc.SizeToFit( );
                    ChildDesc.Bounds = new RectangleF(0, 0, View.Frame.Width - textRightInset, ChildDesc.Bounds.Height);

                    ChildDescLayer.Hidden = false;
                    ChildDescLayer.Frame  = new RectangleF(0, nextYPos, View.Frame.Width, ChildDesc.Frame.Height + textBotInset);

                    nextYPos = ChildDescLayer.Frame.Bottom + sectionSpacing;
                }


                // Join Button
                JoinButton.Hidden = false;
                JoinButton.Frame  = new RectangleF((View.Frame.Width - buttonWidth) / 2, nextYPos + sectionSpacing, buttonWidth, buttonHeight);
            }
        }
Exemplo n.º 10
0
        public void Create(object masterView, RectangleF frame, OnButtonClick onJoinClicked)
        {
            OnButtonClicked = onJoinClicked;

            View = PlatformView.Create( );
            View.BackgroundColor = ControlStylingConfig.BackgroundColor;
            View.AddAsSubview(masterView);

            // Group Title
            GroupTitle = PlatformLabel.Create( );
            GroupTitle.AddAsSubview(masterView);
            GroupTitle.SetFont(ControlStylingConfig.Font_Bold, ControlStylingConfig.Large_FontSize);
            GroupTitle.TextColor     = ControlStylingConfig.TextField_ActiveTextColor;
            GroupTitle.TextAlignment = TextAlignment.Center;

            // Meeting Time
            MeetingTime = PlatformLabel.Create( );
            MeetingTime.AddAsSubview(masterView);
            MeetingTime.SetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Medium_FontSize);
            MeetingTime.TextColor     = ControlStylingConfig.TextField_ActiveTextColor;
            MeetingTime.TextAlignment = TextAlignment.Center;

            // Childcare Provided
            ChildcareProvided = PlatformLabel.Create( );
            ChildcareProvided.AddAsSubview(masterView);
            ChildcareProvided.SetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Medium_FontSize);
            ChildcareProvided.TextColor     = ControlStylingConfig.TextField_ActiveTextColor;
            ChildcareProvided.TextAlignment = TextAlignment.Center;

            // Young Adults
            YoungAdults = PlatformLabel.Create( );
            YoungAdults.AddAsSubview(masterView);
            YoungAdults.SetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Medium_FontSize);
            YoungAdults.TextColor     = ControlStylingConfig.TextField_ActiveTextColor;
            YoungAdults.TextAlignment = TextAlignment.Center;



            // Family Image and Layer
            FamilyImageLayer = PlatformView.Create( );
            FamilyImageLayer.AddAsSubview(masterView);
            FamilyImageLayer.BackgroundColor = ControlStylingConfig.BG_Layer_Color;
            FamilyImageLayer.BorderColor     = ControlStylingConfig.BG_Layer_BorderColor;
            FamilyImageLayer.BorderWidth     = ControlStylingConfig.BG_Layer_BorderWidth;

            FamilyImage = PlatformImageView.Create( );
            FamilyImage.AddAsSubview(masterView);
            FamilyImage.ImageScaleType  = PlatformImageView.ScaleType.ScaleAspectFit;
            FamilyImage.BackgroundColor = 0;


            // Group Desc
            GroupDescLayer = PlatformView.Create( );
            GroupDescLayer.AddAsSubview(masterView);
            GroupDescLayer.BackgroundColor = ControlStylingConfig.BG_Layer_Color;
            GroupDescLayer.BorderColor     = ControlStylingConfig.BG_Layer_BorderColor;
            GroupDescLayer.BorderWidth     = ControlStylingConfig.BG_Layer_BorderWidth;

            GroupDesc = PlatformLabel.Create( );
            GroupDesc.AddAsSubview(masterView);
            GroupDesc.TextAlignment = TextAlignment.Center;
            GroupDesc.SetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Medium_FontSize);
            GroupDesc.TextColor = ControlStylingConfig.TextField_ActiveTextColor;

            // Group Desc Header
            GroupDescHeader = PlatformLabel.Create( );
            GroupDescHeader.AddAsSubview(masterView);
            GroupDescHeader.TextAlignment = TextAlignment.Center;
            GroupDescHeader.SetFont(ControlStylingConfig.Font_Bold, ControlStylingConfig.Medium_FontSize);
            GroupDescHeader.TextColor = ControlStylingConfig.TextField_ActiveTextColor;
            GroupDescHeader.Text      = ConnectStrings.GroupInfo_AboutGroup;


            // Childcare Desc
            ChildDescLayer = PlatformView.Create( );
            ChildDescLayer.AddAsSubview(masterView);
            ChildDescLayer.BackgroundColor = ControlStylingConfig.BG_Layer_Color;
            ChildDescLayer.BorderColor     = ControlStylingConfig.BG_Layer_BorderColor;
            ChildDescLayer.BorderWidth     = ControlStylingConfig.BG_Layer_BorderWidth;

            ChildDesc = PlatformLabel.Create( );
            ChildDesc.AddAsSubview(masterView);
            ChildDesc.SetFont(ControlStylingConfig.Font_Light, ControlStylingConfig.Medium_FontSize);
            ChildDesc.TextColor     = ControlStylingConfig.TextField_ActiveTextColor;
            ChildDesc.TextAlignment = TextAlignment.Center;

            // Child Desc Header
            ChildDescHeader = PlatformLabel.Create( );
            ChildDescHeader.AddAsSubview(masterView);
            ChildDescHeader.TextAlignment = TextAlignment.Center;
            ChildDescHeader.SetFont(ControlStylingConfig.Font_Bold, ControlStylingConfig.Medium_FontSize);
            ChildDescHeader.TextColor = ControlStylingConfig.TextField_ActiveTextColor;
            ChildDescHeader.Text      = ConnectStrings.GroupInfo_AboutChildcare;


            // Group Image and Layer
            GroupImageLayer = PlatformView.Create( );
            GroupImageLayer.AddAsSubview(masterView);
            GroupImageLayer.BackgroundColor = ControlStylingConfig.BG_Layer_Color;
            GroupImageLayer.BorderColor     = ControlStylingConfig.BG_Layer_BorderColor;
            GroupImageLayer.BorderWidth     = ControlStylingConfig.BG_Layer_BorderWidth;

            GroupImage = PlatformImageView.Create( );
            GroupImage.AddAsSubview(masterView);
            GroupImage.ImageScaleType  = PlatformImageView.ScaleType.ScaleAspectFit;
            GroupImage.BackgroundColor = 0;


            // Join Button
            JoinButton = PlatformButton.Create( );
            JoinButton.AddAsSubview(masterView);
            JoinButton.ClickEvent      = JoinClicked;
            JoinButton.BackgroundColor = ControlStylingConfig.Button_BGColor;
            JoinButton.TextColor       = ControlStylingConfig.Button_TextColor;
            JoinButton.CornerRadius    = ControlStylingConfig.Button_CornerRadius;
            JoinButton.Text            = ConnectStrings.JoinGroup_JoinButtonLabel;
            JoinButton.SizeToFit( );
            JoinButton.UserInteractionEnabled = true;

            // Create our results view overlay
            ResultView = new UIResultView(masterView, View.Frame, OnResultViewDone);

            // Create our blocker view
            BlockerView = new UIBlockerView(masterView, View.Frame);
        }
Exemplo n.º 11
0
 public void UpdateLabel()
 {
     GroupTitleLabel.UpdateTranslation(new TranslationData($"SCOREBOARD.GROUP.{GroupTitle.ToUpper()}", GroupMembers));
 }