src/FingersDance.ViewModel/UserViewModel.cs
author cavaliet
Wed, 28 Oct 2009 17:07:27 +0100
changeset 182 25b49d4f1635
parent 179 97ef988c92c2
permissions -rw-r--r--
First step of data reorganisation : session is meant to disappear : a "session" is in fact a project and one project owns several cuttings, one per user. WARNING : this commit builds without problems but we can not open more than one UserPanel.

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
    }
}