Game Development Reference
In-Depth Information
string FilePattern
{
get;
set;
}
bool Cancelled
{
get;
set;
}
void Execute(string fullPath);
void Cancel();
void Notify(string message);
event FileAccessProcess OnProcess;
event FileAccessNotify OnNotify;
}
}
The following class implements the IFileAccessLogic interface and houses a lot of
the common functionality that is present in almost every batch file processing tool.
using System;
using System.IO;
namespace BatchFileFramework
{
public class FileAccessLogic : IFileAccessLogic
{
private bool verbose = false;
private bool recursive = false;
private bool skipReadOnly = false;
private bool forceWriteable = false;
private string filePattern = “*.*”;
private bool cancelled = false;
private bool running = false;
public event FileAccessProcess OnProcess = null;
public event FileAccessNotify OnNotify = null;
Search Nedrilad ::




Custom Search