PageRenderTime 141ms CodeModel.GetById 49ms app.highlight 6ms RepoModel.GetById 75ms app.codeStats 0ms

/IZWebFileManager/FileManagerController.Events.cs

http://izwebfilemanager.googlecode.com/
C# | 125 lines | 82 code | 28 blank | 15 comment | 22 complexity | dc9f96a9570b120bc6b490410c122228 MD5 | raw file
  1// Copyright (C) 2006 Igor Zelmanovich <izwebfilemanager@gmail.com>
  2//
  3// This program is free software; you can redistribute it and/or modify
  4// it under the terms of the GNU General Public License as published by
  5// the Free Software Foundation; either version 2 of the License, or
  6// (at your option) any later version.
  7//
  8// This program is distributed in the hope that it will be useful,
  9// but WITHOUT ANY WARRANTY; without even the implied warranty of
 10// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 11// GNU General Public License for more details.
 12//
 13// You should have received a copy of the GNU General Public License
 14// along with this program; if not, write to the Free Software
 15// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 16
 17using System;
 18using System.Collections.Generic;
 19using System.Text;
 20using System.ComponentModel;
 21
 22namespace IZ.WebFileManager
 23{
 24	partial class FileManagerController
 25	{
 26		#region Events
 27
 28		[Category ("Action")]
 29		public event EventHandler<RenameCancelEventArgs> ItemRenaming;
 30
 31		[Category ("Action")]
 32		public event EventHandler<NewDocumentCancelEventArgs> NewDocumentCreating;
 33
 34		[Category ("Action")]
 35		public event EventHandler<NewDocumentEventArgs> NewDocumentCreated;
 36
 37		[Category ("Action")]
 38		public event EventHandler<ExecuteCommandEventArgs> ExecuteCommand;
 39
 40		[Category ("Action")]
 41		public event EventHandler<RenameEventArgs> ItemRenamed;
 42
 43		[Category ("Action")]
 44		public event EventHandler<NewFolderCancelEventArgs> NewFolderCreating;
 45
 46		[Category ("Action")]
 47		public event EventHandler<NewFolderEventArgs> NewFolderCreated;
 48
 49		[Category ("Action")]
 50		public event EventHandler<UploadFileCancelEventArgs> FileUploading;
 51
 52		[Category ("Action")]
 53		public event EventHandler<UploadFileEventArgs> FileUploaded;
 54
 55		[Category ("Action")]
 56		public event EventHandler<SelectedItemsActionCancelEventArgs> SelectedItemsAction;
 57
 58		[Category ("Action")]
 59		public event EventHandler<SelectedItemsActionEventArgs> SelectedItemsActionComplete;
 60
 61		[Category ("Action")]
 62		public event EventHandler<DownloadFileCancelEventArgs> FileDownload;
 63
 64		#endregion
 65
 66		#region OnEvent Methods
 67
 68		private void OnItemRenaming (RenameCancelEventArgs e) {
 69			if (ItemRenaming != null)
 70				ItemRenaming (this, e);
 71		}
 72
 73		private void OnItemRenamed (RenameEventArgs e) {
 74			if (ItemRenamed != null)
 75				ItemRenamed (this, e);
 76		}
 77
 78		private void OnNewFolderCreating (NewFolderCancelEventArgs e) {
 79			if (NewFolderCreating != null)
 80				NewFolderCreating (this, e);
 81		}
 82
 83		private void OnNewFolderCreated (NewFolderEventArgs e) {
 84			if (NewFolderCreated != null)
 85				NewFolderCreated (this, e);
 86		}
 87
 88		private void OnFileUploading (UploadFileCancelEventArgs e) {
 89			if (FileUploading != null)
 90				FileUploading (this, e);
 91		}
 92
 93		private void OnFileUploaded (UploadFileEventArgs e) {
 94			if (FileUploaded != null)
 95				FileUploaded (this, e);
 96		}
 97
 98		private void OnSelectedItemsAction (SelectedItemsActionCancelEventArgs e) {
 99			if (SelectedItemsAction != null)
100				SelectedItemsAction (this, e);
101		}
102
103		private void OnSelectedItemsActionComplete (SelectedItemsActionEventArgs e) {
104			if (SelectedItemsActionComplete != null)
105				SelectedItemsActionComplete (this, e);
106		}
107
108		private void OnNewDocumentCreating (NewDocumentCancelEventArgs e) {
109			if (NewDocumentCreating != null)
110				NewDocumentCreating (this, e);
111		}
112
113		private void OnNewDocumentCreated (NewDocumentEventArgs e) {
114			if (NewDocumentCreated != null)
115				NewDocumentCreated (this, e);
116		}
117
118		private void OnExecuteCommand (ExecuteCommandEventArgs e) {
119			if (ExecuteCommand != null)
120				ExecuteCommand (this, e);
121		}
122
123		#endregion
124	}
125}