src/FingersDance.Data/Project.cs
author cavaliet
Wed, 28 Oct 2009 17:07:27 +0100
changeset 182 25b49d4f1635
parent 148 c379899e9c94
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;

namespace FingersDance.Data
{
    [Serializable]
    public class Project
    {
        private string _name = "";
        private string _date = DateTime.Now.ToString();
        private string _description = "";

        private String _videoname = "";
        private String _videopath = "";
        
        //private User _user = new User();
        //private Cutting _cutting = new Cutting();
        private List<Cutting> _cuttings = new List<Cutting>();
        
        #region Constructor

        public Project(string videoName, string videoPath)
        {
            _videoname = videoName;
            _videopath = videoPath;
        }

        public Project(string name, string date, string desc)
        {
            _date = date;
            _description = desc;
            _name = name;
            //_user = u;
            //_cutting = c;
        }

        //public Project(User u, Cutting c)
        //{
        //    _user = u;
        //    _cutting = c;
        //}

        public Project()
        {}

        #endregion

        #region Properties

        public string Date
        {
            get { return _date; }
            set { _date = value; }
        }

        public string Name
        {
            get { return _name; }
            set { _name = value; }
        }

        public string Description
        {
            get { return _description; }
            set { _description = value; }
        }

        public String VideoPath
        {
            get { return _videopath; }
            set { _videopath = value; }
        }

        //public User User
        //{
        //    get { return _user; }
        //    set { _user = value; }
        //}

        //public Cutting Cutting
        //{
        //    get { return _cutting; }
        //    set { _cutting = value; }
        //}

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

        #endregion
    }

}