/// <summary> /// Initializes a new instance of the <b>FileSystemWatcher</b> class. /// </summary> public FileSystemWatcher() { notifyFilter = NotifyFilters.FileName | NotifyFilters.LastWrite | NotifyFilters.DirectoryName; #if !NDOC windowSink = new WindowSink(this); #endif }
/// <summary> /// Initializes a new instance of the <b>FileSystemWatcher</b> class, given the specified directory and type of files to monitor. /// </summary> /// <param name="path">The directory to monitor, in standard or Universal Naming Convention (UNC) notation.</param> /// <param name="filter">The type of files to watch. For example, "*.txt" watches for changes to all text files.</param> public FileSystemWatcher(string path, string filter) { if (!Device.Win32Library("aygshell").Exists) { throw new PlatformNotSupportedException("The FileSystemWatcher required aygshell.dll in the platform OS. Either add it or consider using the FileSystemMonitor class."); } if (path == null) { throw new ArgumentNullException(); } IncludeSubdirectories = false; NotifyFilter = NotifyFilters.FileName | NotifyFilters.LastWrite | NotifyFilters.DirectoryName; #if !NDOC windowSink = new WindowSink(this); #endif this.Path = path; this.Filter = filter; // TODO: check for AYGSHELL }
//Constructor public NotifyIcon() { //Create instance of the MessageWindow subclass windowSink = new WindowSink(this); windowSink.uID = uID; }
//Constructor public NotifyIcon() { //Create instance of the MessageWindow subclass windowSink = new WindowSink(this); windowSink.uID = uID; }
/// <summary> /// Initializes a new instance of the <b>FileSystemWatcher</b> class. /// </summary> public FileSystemWatcher() { notifyFilter = NotifyFilters.FileName | NotifyFilters.LastWrite | NotifyFilters.DirectoryName; #if !NDOC windowSink = new WindowSink(this); #endif }