Ejemplo n.º 1
0
        private void buttonSave_Click(object sender, EventArgs e)
        {
            try
            {
                param = read_param();

                create();
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }

            DialogResult = DialogResult.OK;
        }
Ejemplo n.º 2
0
        private STParamReportStatsPlayer read_param()
        {
            STParamReportStatsPlayer ret = new STParamReportStatsPlayer();
            List <int> li = new List <int>();

            try
            {
                ret.idseason = IS.idseason;

                if (comboBoxDivision.Text.Length > 0)
                {
                    clDiv          = new CDivision(connect, IS.idseason, comboBoxDivision.Text.Trim());
                    ret.iddivision = clDiv.stDiv.id;
                }
                else
                {
                    ret.iddivision = 0;
                }

                for (int i = 0; i < checkedListBoxGroup.Items.Count; i++)
                {
                    if (checkedListBoxGroup.GetItemChecked(i))
                    {
                        clGroup = new CGroup(connect, IS.idseason, ret.iddivision,
                                             checkedListBoxGroup.Items[i].ToString());
                        li.Add(clGroup.stGroup.idgroup);
                    }
                }

                ret.arr_idgroup = new int[li.Count];

                for (int j = 0; j < ret.arr_idgroup.Length; j++)
                {
                    ret.arr_idgroup[j] = li[j];
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }

            return(ret);
        }