public MainViewModel(IPLCMethods plcMethods, IPlcServices plcServices, ICSVWritter csvWritter, ICSVReader csvReader)
        {
            #region Commands
            _connectCommand = new RelayCommand(Connect);
            _viewCommand    = new RelayCommand(View);
            _viewFolder     = new RelayCommand(NewFolder);
            _webPage        = new RelayCommand(OpenWeb);
            _resetSaving    = new RelayCommand(Reset);


            #endregion

            #region Interfaces
            _plcMethods  = plcMethods;
            _plcServices = plcServices;
            _csvReader   = csvReader;
            _csvWritter  = csvWritter;
            #endregion

            #region ViewModels
            _messageViewModel = new MessageViewModel();
            #endregion

            #region Methods
            Fill();
            StartTimer();
            #endregion
        }
        public ViewPLCViewModel(ICSVWritter csvWritter, ICSVReader csvReader, IPLCMethods plcMethods, PLConnection pLConnection, IPlcServices plcServices)
        {
            #region RelayCommands
            _refreshCommand        = new RelayCommand(Refresh);
            _exportCommand         = new RelayCommand(Export);
            _writteArticleCommand  = new RelayCommand(WritteArticle);
            _writteOrderCommand    = new RelayCommand(WritteOrder);
            _writtePositionCommand = new RelayCommand(WrittePosition);
            _writteMetersCommand   = new RelayCommand(WritteMeters);
            _backToMenuCommand     = new RelayCommand(BacktoMenu);
            #endregion

            #region Interfaces
            _csvReader   = csvReader;
            _csvWritter  = csvWritter;
            _plcMethods  = plcMethods;
            _plcServices = plcServices;
            #endregion

            #region Services
            _messageViewModel = new MessageViewModel();
            #endregion

            #region Connection
            _pLConnection = pLConnection;
            //plc = new Plc(pLConnection.CPUType, pLConnection.CurrentIp, pLConnection.Rack, pLConnection.Slot);
            //_plcMethods.StartNewConnection(plc);
            #endregion

            #region Fill Data
            Fill(plc);
            #endregion

            #region ViewsModels
            #endregion
        }