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.
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     1
using System;
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     2
using System.Collections.Generic;
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     3
using System.Linq;
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     4
using System.Text;
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     5
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     6
namespace FingersDance.Data
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     7
{
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     8
    [Serializable]
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
     9
    public class Project
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    10
    {
148
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    11
        private string _name = "";
182
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    12
        private string _date = DateTime.Now.ToString();
148
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    13
        private string _description = "";
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    14
182
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    15
        private String _videoname = "";
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    16
        private String _videopath = "";
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    17
        
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    18
        //private User _user = new User();
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    19
        //private Cutting _cutting = new Cutting();
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    20
        private List<Cutting> _cuttings = new List<Cutting>();
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    21
        
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    22
        #region Constructor
148
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    23
182
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    24
        public Project(string videoName, string videoPath)
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    25
        {
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    26
            _videoname = videoName;
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    27
            _videopath = videoPath;
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    28
        }
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    29
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    30
        public Project(string name, string date, string desc)
148
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    31
        {
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    32
            _date = date;
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    33
            _description = desc;
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    34
            _name = name;
182
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    35
            //_user = u;
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    36
            //_cutting = c;
148
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    37
        }
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    38
182
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    39
        //public Project(User u, Cutting c)
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    40
        //{
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    41
        //    _user = u;
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    42
        //    _cutting = c;
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    43
        //}
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    44
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    45
        public Project()
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    46
        {}
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    47
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    48
        #endregion
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    49
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    50
        #region Properties
148
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    51
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    52
        public string Date
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    53
        {
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    54
            get { return _date; }
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    55
            set { _date = value; }
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    56
        }
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    57
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    58
        public string Name
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    59
        {
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    60
            get { return _name; }
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    61
            set { _name = value; }
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    62
        }
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    63
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    64
        public string Description
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    65
        {
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    66
            get { return _description; }
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    67
            set { _description = value; }
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    68
        }
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    69
182
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    70
        public String VideoPath
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    71
        {
182
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    72
            get { return _videopath; }
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    73
            set { _videopath = value; }
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    74
        }
148
PAMPHILE Jonathan <pamphile@efrei.fr>
parents: 143
diff changeset
    75
182
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    76
        //public User User
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    77
        //{
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    78
        //    get { return _user; }
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    79
        //    set { _user = value; }
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    80
        //}
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    81
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    82
        //public Cutting Cutting
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    83
        //{
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    84
        //    get { return _cutting; }
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    85
        //    set { _cutting = value; }
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    86
        //}
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    87
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    88
        public List<Cutting> Cuttings
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    89
        {
182
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    90
            get { return _cuttings; }
25b49d4f1635 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.
cavaliet
parents: 148
diff changeset
    91
            set { _cuttings = value; }
143
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    92
        }
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    93
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    94
        #endregion
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    95
    }
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    96
PAMPHILE Jonathan <pamphile@efrei.fr>
parents:
diff changeset
    97
}