src/FingersDance.ViewModel/UserViewModel.cs
author cavaliet
Mon, 09 Nov 2009 12:11:42 +0100
changeset 190 619ca3ae13c7
parent 179 97ef988c92c2
permissions -rw-r--r--
MainViewModel is now well linked to all the users'cuttings. At any moment, the MVM has all annotations. This step prepares data saving.

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using FingersDance.Data;

namespace FingersDance.ViewModels
{
    public class UserViewModel : ViewModelBase
    {
        readonly User user = new User();

        #region Constructor

        public UserViewModel(User u) {
            user.Name = u.Name;
            user.Email = u.Email;
            //Possibles Commands
        }
        #endregion

        #region Properties

        public String Name
        {
            get { return user.Name; }
            set { user.Name = value; }
        }

        public String Email
        {
            get { return user.Email; }
            set { user.Email = value; }
        }

        public String Color
        {
            get { return user.Color; }
            set { user.Color = value; }
        }

        #endregion
    }
}