Statistics
| Branch: | Revision:

root / trunk / Pithos.Client.WPF / FileProperties / ContainerPolicy.cs @ c92e02f3

History | View | Annotate | Download (921 Bytes)

1
using System;
2
using System.Collections.Generic;
3
using System.Linq;
4
using System.Text;
5
using Caliburn.Micro;
6

    
7
namespace Pithos.Client.WPF.FileProperties
8
{
9
    public enum Versioning
10
    {
11
        manual,
12
        auto,
13
        none
14
    }
15

    
16
    public class ContainerPolicy : PropertyChangedBase
17
    {
18
        private int _quota;
19
        public int Quota
20
        {
21
            get { return _quota; }
22
            set
23
            {
24
                if (value < 0)
25
                    throw new ArgumentOutOfRangeException("Quota");
26

    
27
                _quota = value;
28
                NotifyOfPropertyChange(()=>Quota);
29
            }
30
        }
31

    
32

    
33

    
34
        private Versioning _versioning;
35
        public Versioning Versioning
36
        {
37
            get { return _versioning; }
38
            set
39
            {
40
                _versioning = value;
41
                NotifyOfPropertyChange(()=>Versioning);
42
            }
43
        }
44
    }
45
}