Beispiel #1
0
        private void RatingsTeam_Load(object sender, EventArgs e)
        {
            try
            {
                clDiv    = new CDivision(connect);
                clScheme = new CScheme(connect);
                tp       = new CTypeGames();

                checkBoxStage.Checked = false;
                checkBoxType.Checked  = false;

                comboBoxStage.Enabled = false;
                comboBoxType.Enabled  = false;
                comboBoxType.Text     = null;
                comboBoxStage.Text    = null;

                init_combo_division();
                init_combo_type();

                iddivision = 0;
                type       = -1;
                idstage    = 0;
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }
Beispiel #2
0
        private void ReportBestPlayer_Load(object sender, EventArgs e)
        {
            try
            {
                clDiv = new CDivision(connect);
                tp    = new CTypeGames();


                init_combo_type();
                init_combo_division();
                init_combo_date();

                textBoxLimit2.Text  = "3,1";
                textBoxLimit3.Text  = "1,2";
                textBoxLimitFt.Text = "1,9";

                textBoxPCG.Text = "51";

                textBoxCntPlayer.Text = "30";

                radioButtonOneDate.Checked    = true;
                dateTimePickerDateEnd.Enabled = false;
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }
Beispiel #3
0
        private void DlgScheme_Load(object sender, EventArgs e)
        {
            try
            {
                this.Text = caption;

                clScheme = new CScheme(connect);
                cl       = new CTypeGames();

                init_combo();

                set_data();
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }
Beispiel #4
0
        private void init_data(int iddivision)
        {
            dataGridViewScheme.Rows.Clear();

            CScheme         clScheme = new CScheme(connect);
            List <STScheme> list     = clScheme.GetListScheme((int)IS.idseason, iddivision);

            ListCompare lt = new ListCompare();

            CTypeGames clTp = new CTypeGames();

            try
            {
                list.Sort(lt);

                if (list.Count > 0)
                {
                    g_f = true;

                    dataGridViewScheme.Rows.Add(list.Count);

                    for (int i = 0; i < list.Count; i++)
                    {
                        dataGridViewScheme.Rows[i].Cells[0].Value = clTp.GetTypeName(list[i].type);

                        dataGridViewScheme.Rows[i].Cells[1].Value = list[i].namestage;

                        dataGridViewScheme.Rows[i].Cells[2].Value = list[i].cntround.ToString();

                        dataGridViewScheme.Rows[i].Cells[3].Value = list[i].idstage.ToString();

                        if (flawour.Equals(list[i]))
                        {
                            gpos = i;
                        }
                    }

                    dataGridViewScheme.AllowUserToAddRows = false;
                }
                else
                {
                    dataGridViewScheme.AllowUserToAddRows = false;
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }
Beispiel #5
0
        private void ReportBestPlayer_Load(object sender, EventArgs e)
        {
            try
            {
                clDiv = new CDivision(connect);
                tp    = new CTypeGames();


                init_combo_type();
                init_combo_division();

                textBoxLimit2.Text  = "3,1";
                textBoxLimit3.Text  = "1,2";
                textBoxLimitFt.Text = "1,9";

                textBoxPCG.Text = "51";

                textBoxCntPlayer.Text = "30";
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }