Exemple #1
0
        protected override void watchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (watchForm == null)
            {
                watchForm = new WatchForm();
            }

            watchForm.WatchFolder  = watchFolder;
            watchForm.OutputFolder = outputFolder;
            watchForm.WatchEnabled = watchEnabled;

            if (watchForm.ShowDialog() == DialogResult.OK)
            {
                watchFolder     = watchForm.WatchFolder;
                outputFolder    = watchForm.OutputFolder;
                watchEnabled    = watchForm.WatchEnabled;
                watcher.Path    = watchFolder;
                watcher.Enabled = watchEnabled;
            }
        }
Exemple #2
0
        protected override void watchToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (watchForm == null)
            {
                watchForm = new WatchForm();
            }

            watchForm.WatchFolder = watchFolder;
            watchForm.OutputFolder = outputFolder;
            watchForm.WatchEnabled = watchEnabled;

            if (watchForm.ShowDialog() == DialogResult.OK)
            {
                watchFolder = watchForm.WatchFolder;
                outputFolder = watchForm.OutputFolder;
                watchEnabled = watchForm.WatchEnabled;
                watcher.Path = watchFolder;
                watcher.Enabled = watchEnabled;
            }
        }