public ConfigXmlControl(ConfigFile file, OperationsController controller)
        {
            InitializeComponent();

            _dataContext         = file;
            _controller          = controller;
            labelFileName.Text   = file.Path;
            dgvConfig.DataSource = file.ConfigElements;
        }
        public ConfigXmlControl(ConfigFile file, OperationsController controller)
        {
            InitializeComponent();

            _dataContext = file;
            _controller = controller;
            labelFileName.Text = file.Path;
            dgvConfig.DataSource = file.ConfigElements;
        }
        public FormMain()
        {
            InitializeComponent();

            try
            {
                _controller = new OperationsController();
                _controller.FilesChanged += _controller_FilesChanged;
            }
            catch(Exception ex)
            {
                MessageBox.Show("Error :" + ex.Message);
                throw;
            }
            _controller.ReloadConfigs();
        }
        public FormMain()
        {
            InitializeComponent();

            try
            {
                _controller = new OperationsController();
                _controller.FilesChanged += _controller_FilesChanged;
            }
            catch (Exception ex)
            {
                MessageBox.Show("Error :" + ex.Message);
                throw;
            }
            _controller.ReloadConfigs();
        }