Ejemplo n.º 1
0
        public FormRmsFileWatcher()
        {
            InitializeComponent();

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

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

            SafeNativeMethods.IpcInitialize();
            populatePolicyList();

            setFormStateFromConfiguration();
        }
        public FormRmsFileWatcher()
        {
            InitializeComponent();

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

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

            SafeNativeMethods.IpcInitialize();
            populatePolicyList();
            
            setFormStateFromConfiguration();
        }
        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();
        }