예제 #1
0
        public MainWindow()
        {
            InitializeComponent();
            FileWatchInterop.Init();
            FileWatchInterop.Window = this;

            this.Closing += HandleClosing;
        }
예제 #2
0
 private void HandleClosing(object sender, EventArgs e)
 {
     FileWatchInterop.Kill();
 }
예제 #3
0
 private void AddMonitoredFolderButton_Click(object sender, EventArgs e)
 {
     FolderBrowserDialog.ShowDialog();
     MonitoredFoldersListBox.Items.Add(FolderBrowserDialog.SelectedPath);
     FileWatchInterop.AddWatchedPath(FolderBrowserDialog.SelectedPath);
 }