~halega/+junk/sharpdevelop

« back to all changes in this revision

Viewing changes to src/Main/Base/Project/Src/Services/File/FileEventArgs.cs

  • Committer: sk
  • Date: 2011-09-10 05:17:57 UTC
  • Revision ID: halega@halega.com-20110910051757-qfouz1llya9m6boy
4.1.0.7915 Release Candidate 1

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// Copyright (c) AlphaSierraPapa for the SharpDevelop Team (for details please see \doc\copyright.txt)
 
2
// This code is distributed under the GNU LGPL (for details please see \doc\license.txt)
 
3
 
 
4
using System;
 
5
 
 
6
namespace ICSharpCode.SharpDevelop
 
7
{
 
8
        public class FileEventArgs : EventArgs
 
9
        {
 
10
                string fileName   = null;
 
11
                
 
12
                bool   isDirectory;
 
13
                
 
14
                public string FileName {
 
15
                        get {
 
16
                                return fileName;
 
17
                        }
 
18
                }
 
19
                
 
20
                public bool IsDirectory {
 
21
                        get {
 
22
                                return isDirectory;
 
23
                        }
 
24
                }
 
25
                
 
26
                public FileEventArgs(string fileName, bool isDirectory)
 
27
                {
 
28
                        this.fileName = fileName;
 
29
                        this.isDirectory = isDirectory;
 
30
                }
 
31
        }
 
32
        
 
33
        public class FileCancelEventArgs : FileEventArgs
 
34
        {
 
35
                bool cancel;
 
36
 
 
37
                public bool Cancel {
 
38
                        get {
 
39
                                return cancel;
 
40
                        }
 
41
                        set {
 
42
                                cancel = value;
 
43
                        }
 
44
                }
 
45
                
 
46
                bool operationAlreadyDone;
 
47
                
 
48
                public bool OperationAlreadyDone {
 
49
                        get {
 
50
                                return operationAlreadyDone;
 
51
                        }
 
52
                        set {
 
53
                                operationAlreadyDone = value;
 
54
                        }
 
55
                }
 
56
                
 
57
                public FileCancelEventArgs(string fileName, bool isDirectory) : base(fileName, isDirectory)
 
58
                {
 
59
                }
 
60
        }
 
61
}