Exemplo n.º 1
0
        /// <summary>
        /// Evento que atiende al botón de gráfica. Abre una ventana donde se seleccionan las variables a mostrar en gráficas
        /// </summary>
        /// <param name="sender"></param>
        /// <param name="e"></param>
        private void btnChart_Click(object sender, EventArgs e)
        {
            _proyect.Variables.ToList().ForEach(p => p.Value = _lastRowSP.Variables.FirstOrDefault(q => q.Name == p.Name).Value);
            VarSelection _varSelection = new VarSelection(_proyect, EnumVarSelection.Chart, this.getCulture());

            _varSelection.ShowChart += ShowChart;
            _varSelection.ShowDialog();
        }
Exemplo n.º 2
0
 /// <summary>
 /// Evento que atiende al botón de Variables. Abre una ventana donde se muestran todas las variables.
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnVar_Click(object sender, EventArgs e)
 {
     _proyect.Variables.ToList().ForEach(p => p.Value = _lastRowSP.Variables.FirstOrDefault(q => q.Name == p.Name).Value);
     if (_proyect.Variables.Count(p => p.Value == null) == 0)
     {
         VarSelection _varSelection = new VarSelection(_proyect, EnumVarSelection.Vars, this.getCulture());
         _varSelection.MdiParent = this.MdiParent;
         _varSelection.ShowDialog();
     }
 }
Exemplo n.º 3
0
 /// <summary>
 /// Evento que se ejecuta cuando el botón Archivo es pulsado
 /// </summary>
 /// <param name="sender"></param>
 /// <param name="e"></param>
 private void btnFile_Click(object sender, EventArgs e)
 {
     if (_timerSaveFile.Enabled)
     {
         _timerSaveFile.Enabled = false;
         this.btnFile.Text      = _res_man.GetString("btnFile_txt", _cul);
     }
     else
     {
         _proyect.Variables.ToList().ForEach(p => p.Value = _lastRowSP.Variables.FirstOrDefault(q => q.Name == p.Name).Value);
         VarSelection _varSelection = new VarSelection(_proyect, EnumVarSelection.File, this.getCulture());
         _varSelection.MdiParent  = this.MdiParent;
         _varSelection.Save_file += SaveFile;
         _varSelection.ShowDialog();
     }
 }