Ejemplo n.º 1
0
 /// <summary>
 /// Initialize group in the app
 /// </summary>
 /// <param name="group"> Take group </param>
 /// <returns> Convert group </returns>
 public GroupItemListViewModel GroupInitialize(UsersInGroups group) =>
 new GroupItemListViewModel
 {
     Initials          = group.Group.Initials,
     Discription       = group.Group.Discription,
     ProfilePictureRGB = group.Group.ProfilePictureRGB,
     Name           = group.Group.Name,
     FollowBtnColor = group.Group.FollowBtnColor,
     UserCount      = group.Group.UserCount,
     NewGroup       = true
 };
Ejemplo n.º 2
0
        /// <summary>
        /// Deafault constructor
        /// </summary>
        public GroupViewModel()
        {
            ShowHamburgerCommand = new RelayCommand(ShowHamburgerMethod);
            ShowBubbleCommand    = new RelayCommand(ShowBubbleMethod);
            FilterCommand        = new RelayCommand(FilterMethod);

            UsersInGroups borov = new UsersInGroups
            {
                Group = new Group
                {
                    Name              = "B o r o v",
                    Initials          = "BV",
                    ProfilePictureRGB = "ff4"
                }
            };

            Groups.Add(GroupInitialize(borov));
            IoC.Base.Groups.Add(borov);
        }