/// <summary>
 /// Handle protection policy selection change to track policy to apply to files.
 /// </summary>
 private void comboBoxTemplates_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (comboBoxTemplates.SelectedIndex != -1)
     {
         currentProtectionPolicy = findLabel((string)comboBoxTemplates.SelectedItem);
     }
 }
        public FormRmsFileWatcher(ApplicationInfo appInfo)
        {
            InitializeComponent();

            buttonCollapseLog.Tag = false;
            labels = null;
            currentProtectionPolicy = null;

            fileWatchEngine = new FileWatchEngine();
            fileWatchEngine.MillisecondsBeforeProcessing = waitPeriodToProcess;
            fileWatchEngine.EngineEvent += fileWatchEngine_EngineEvent;

            // Initialize Action class, passing in AppInfo.
            action = new Action(appInfo);

            populatePolicyList();

            setFormStateFromConfiguration();
        }