Exemple #1
0
        public NotificationViewModel()
        {
            this.loggedUser = TabbedHomeViewModel.getUserInstance();

            Thread t = new Thread(RefreshNotifications);

            t.Start();
        }
        public RecipeDetailViewModel(Recipe recipe)
        {
            this.loggedUser  = TabbedHomeViewModel.getUserInstance();
            this.UserRecipe  = recipe;
            this.Punctuation = UserRecipe.Punctuation;

            this.LikeSourse = loadLikeButton();

            this.loadComments();
        }
        public AddRecipeViewModel()
        {
            this.loggedUser = TabbedHomeViewModel.getUserInstance();

            this.TextAuthor = loggedUser.Email;

            this.DurationHourValue    = 0;
            this.DurationMinutesValue = 10;
            this.TextDishType         = "Breakfast";
            this.PortionsValue        = 1;
            this.TextDishTime         = "Appetizer";
            this.DifficultyValue      = 3;
            this.AddImageSource       = "AddImageIcon";
        }
Exemple #4
0
        public UserDetailViewModel(User user)
        {
            this.loggedUser = TabbedHomeViewModel.getUserInstance();
            this.User       = user;
            if (this.User.IsCompany == true)
            {
                this.IsCompany = true;
                this.TextQuery = "Add admin";
            }
            else
            {
                this.TextQuery = "Chef Query";
            }
            init();
            this.SortList("0");

            this.TextFollow = this.loadFollowButton();
        }
Exemple #5
0
        public MyMenuViewModel()
        {
            this.loggedUser = TabbedHomeViewModel.getUserInstance();
            if (this.loggedUser.IsCompany)
            {
                this.IsCompany = true;
                this.TextQuery = "Add admin";
            }
            else
            {
                this.TextQuery = "Chef Query";
            }
            init();
            this.SortList("0");

            if (this.loggedUser.Chef)
            {
                this.VisibleChef = true;
            }
        }
 public NewsFeedViewModel()
 {
     this.UsersFollowing = TabbedHomeViewModel.getUserInstance().UsersFollowing;
     this.LoadRecipes();
     this.IsRefreshing = false;
 }
 public ChefQueryViewModel()
 {
     this.loggedUser = TabbedHomeViewModel.getUserInstance();
 }