Exemple #1
0
        public MainDialog()
        {
            InitializeComponent();
            logsForm = new LogsDialog();
            SetupMainDialogStatusTexts();
            HandleCreated    += OnHandleCreated;
            ProcessManager    = new ProcessManager();
            metricsManager    = new Metrics.Manager();
            screenshotService = new ExecutorService();

            ProcessListView.SetDoubleBuffered(true);
            MetricsChart.SetDoubleBuffered(true);
        }
Exemple #2
0
        private void DisposeAddedComponents()
        {
            screenshotService?.Dispose();
            metricsManager?.Dispose();
            ProcessManager?.Dispose();
            sensuInterface?.Dispose();
            editProcessForm?.Dispose();
            addProcessForm?.Dispose();
            settingsForm?.Dispose();
            aboutForm?.Dispose();
            logsForm?.Dispose();

            screenshotService = null;
            metricsManager    = null;
            ProcessManager    = null;
            sensuInterface    = null;
            editProcessForm   = null;
            addProcessForm    = null;
            settingsForm      = null;
            aboutForm         = null;
            logsForm          = null;
        }