public frmBuscarEquipoCategoria(List <Equipo> teamPool, List <EquipoxEvento> newTeams, CATEGORIA cat)
 {
     InitializeComponent();
     _teamPool         = teamPool;
     _newTeams         = newTeams;
     _filterTeam       = _teamPool;
     comboBox1.Text    = cat.ToString();
     comboBox1.Enabled = false;
     Update();
 }
        public frmMostrarEquiposEncuesta(Evento evento, CATEGORIA cat, List <Pregunta> preguntas)
        {
            InitializeComponent();
            _myEvent = evento;

            textBox1.Text    = evento.EventName;
            textBox2.Text    = cat.ToString();
            textBox1.Enabled = false;
            textBox2.Enabled = false;
            _filterEquip     = _myEvent.Participants;
            _preguntas       = preguntas;
            Update();
        }
Example #3
0
        public static double GetDoubleConfig(String sParametro, CATEGORIA CAT, double fDefault)
        {
            double dValue = fDefault;

            try
            {
                double.TryParse(GetStringConfig(sParametro, CAT, fDefault.ToString()), out dValue);
            }
            catch (System.Exception ex)
            {
                Logger.Instance.LogException(Logger.typeUserActions.SELECT, "GetDoubleConfig(" + sParametro + "," + CAT.ToString() + "," + fDefault.ToString() + ")", ref ex);
            }
            return(dValue);
        }