Exemplo n.º 1
0
        void ReleaseDesignerOutlets()
        {
            if (AllUsersButton != null)
            {
                AllUsersButton.Dispose();
                AllUsersButton = null;
            }

            if (FollowersButton != null)
            {
                FollowersButton.Dispose();
                FollowersButton = null;
            }

            if (FollowingButton != null)
            {
                FollowingButton.Dispose();
                FollowingButton = null;
            }

            if (HomeButton != null)
            {
                HomeButton.Dispose();
                HomeButton = null;
            }

            if (FriendsButton != null)
            {
                FriendsButton.Dispose();
                FriendsButton = null;
            }

            if (AddPostButton != null)
            {
                AddPostButton.Dispose();
                AddPostButton = null;
            }

            if (ProfileButton != null)
            {
                ProfileButton.Dispose();
                ProfileButton = null;
            }

            if (UsersCollectionView != null)
            {
                UsersCollectionView.Dispose();
                UsersCollectionView = null;
            }
        }
 public void SetCommands()
 {
     AllUsersButton.SetCommand(dataContext.ShowAllUsersCommand);
     FollowersButton.SetCommand(dataContext.ShowFollowersCommand);
     FollowingButton.SetCommand(dataContext.ShowFollowingCommand);
 }