src/FingersDance.ViewModel/ProjectViewModel.cs
author cavaliet
Wed, 28 Oct 2009 17:07:27 +0100
changeset 182 25b49d4f1635
parent 148 c379899e9c94
child 192 11083c390ce4
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 ProjectViewModel : ViewModelBase
    {
        private Project project = new Project();

        private Dictionary<String, Cutting> _cuttingsDict = new Dictionary<string,Cutting>();

        #region Constructor

        public ProjectViewModel() { }

        public ProjectViewModel(Project p)
        {
            project = p;
        }

        #endregion

        #region Properties

        public Project Project
        {
            get { return project; }
            set { project = value; }
        }

        public string Date
        {
            get { return project.Date; }
            set { project.Date = value; }
        }

        public string Name
        {
            get { return project.Name; }
            set { project.Name = value; }
        }

        public string Description
        {
            get { return project.Description; }
            set { project.Description = value; }
        }

        public String VideoPath
        {
            get { return project.VideoPath; }
            set { project.VideoPath = value; }
        }

        //public User User
        //{
        //    get { return project.User; }
        //    set { project.User = value; }
        //}

        public List<Cutting> Cuttings
        {
            get { return project.Cuttings; }
            set { project.Cuttings = value; }
        }

        public Dictionary<String, Cutting> CuttingsDict
        {
            get { return _cuttingsDict;  }
            set { _cuttingsDict = value; }
        }

        #endregion
    }
}