Example #1
0
        public MainForm()
        {
            InitializeComponent();

            toolStripMenuItemSpanish.Checked = true;
            toolStripMenuItemEnglish.Checked = false;//default language is spanish
            _res_man     = new ResourceManager("PlantaPiloto.Resources.Res", typeof(MainForm).Assembly);
            _proyect     = new Proyect();
            _variable    = new Variable();
            _db_services = new DB_services(_cul);
            Switch_language();
            _timerRefreshDataGrid          = new System.Timers.Timer(2000);
            _timerRefreshDataGrid.Enabled  = false;
            _timerRefreshDataGrid.Elapsed += this.TimerElapsedEvent;
            _timerSaveFile                 = new System.Timers.Timer(2000);
            _timerSaveFile.Enabled         = false;
            _timerSaveFile.Elapsed        += this.TimerSaveFile;
            dgvProVars.Columns[0].ReadOnly = true;
            dgvProVars.Columns[1].ReadOnly = true;
            _helpProvider = new HelpProvider();
            _configsPath  = GlobalParameters.ConfigsPath;
            _filesPath    = GlobalParameters.FilesPath;
            _helpProvider.HelpNamespace = Path.Combine(_filesPath, "helpProyect.chm");
            _pdfPath   = Path.Combine(_filesPath, "Manual_Usuario.pdf");
            _exMg      = new ExceptionManagement(_cul);
            _fileSaver = new FileSaver();
        }
Example #2
0
 public SP_services()
 {
     _serialPort  = new SerialPort();
     _ports       = SerialPort.GetPortNames();
     _res_man     = new ResourceManager("PlantaPiloto.Resources.Res", typeof(MainForm).Assembly);
     _db_services = new DB_services(_cul);
     _lastRow     = new Proyect();
     _saveFile    = false;
     _exMg        = new ExceptionManagement(_cul);
     _time        = 0;
     _ts          = GlobalParameters.DefaultTs;
 }
Example #3
0
 public VarSelection()
 {
     InitializeComponent();
     _mainForm     = new MainForm();
     _res_man      = new ResourceManager("PlantaPiloto.Resources.Res", typeof(MainForm).Assembly);
     _proyect      = new Proyect();
     _db_services  = new DB_services(_cul);
     _helpProvider = new HelpProvider();
     _filesPath    = GlobalParameters.FilesPath;
     _helpProvider.HelpNamespace = Path.Combine(_filesPath, "helpProyect.chm");
     _exMg = new ExceptionManagement(_cul);
 }
Example #4
0
 public ConfigForm(CultureInfo cul)
 {
     InitializeComponent();
     _res_man      = new ResourceManager("PlantaPiloto.Resources.Res", typeof(MainForm).Assembly);
     _proyect      = new Proyect();
     _db_services  = new DB_services(_cul);
     _eagerLoading = 0;
     _helpProvider = new HelpProvider();
     _filesPath    = GlobalParameters.FilesPath;
     _configsPath  = GlobalParameters.ConfigsPath;
     _helpProvider.HelpNamespace = Path.Combine(_filesPath, "helpProyect.chm");
     _cul       = cul;
     _exMg      = new ExceptionManagement(_cul);
     _fileSaver = new FileSaver();
 }
Example #5
0
 public ChartForm()
 {
     InitializeComponent();
     _mainForm       = new MainForm();
     _res_man        = new ResourceManager("PlantaPiloto.Resources.Res", typeof(MainForm).Assembly);
     _variables      = new List <Variable>();
     _db_services    = new DB_services(_cul);
     _proyect        = new Proyect();
     _sqlData        = new List <List <Variable> >();
     _sqlTime        = new List <float>();
     _timer          = new System.Timers.Timer(2000);
     _timer.Enabled  = false;
     _timer.Elapsed += new ElapsedEventHandler(this.LoadChartsTimer);
     _chartAmount    = 100;
     _helpProvider   = new HelpProvider();
     _filesPath      = GlobalParameters.FilesPath;
     _helpProvider.HelpNamespace = Path.Combine(_filesPath, "helpProyect.chm");
     _exMg = new ExceptionManagement(_cul);
 }