Beispiel #1
0
        public RecordsPerson(SqlConnection cn, STInfoSeason inf)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
        }
Beispiel #2
0
        public ImportStats(SqlConnection cn, STInfoSeason si)
        {
            InitializeComponent();

            connect = cn;
            IS      = si;
        }
Beispiel #3
0
        public ReportReferee(SqlConnection cn, STInfoSeason inf)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
        }
Beispiel #4
0
        public PreViewGame(SqlConnection cn, STInfoSeason inf)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
        }
Beispiel #5
0
        public ReportPreViewWeb(SqlConnection cn, STInfoSeason inf)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
        }
Beispiel #6
0
        private void buttonSave_Click(object sender, EventArgs e)
        {
            try
            {
                sdata = read_data();

                /* провер¤ем текущий сезон*/
                if (sdata.flag == 1)
                {
                    STInfoSeason?cd = cis.GetCurretDataSeason();
                    if (cd != null)
                    {
                        STInfoSeason dat = (STInfoSeason)cd;
                        cis.RemoveCurrentSeason(dat.idseason);
                    }
                }

                if (type == 0)
                {
                    cis.Insert(sdata);
                }
                if (type == 1)
                {
                    cis.Update(sdata, IS.idseason);
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }

            DialogResult = DialogResult.OK;
        }
Beispiel #7
0
        public Draft(SqlConnection cn, STInfoSeason inf)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
        }
Beispiel #8
0
        public RankingTeam(SqlConnection cn, STInfoSeason iss)
        {
            InitializeComponent();

            connect = cn;
            IS      = iss;
        }
Beispiel #9
0
 public CalendarGames(SqlConnection cn, STInfoSeason st, ushort md)
 {
     InitializeComponent();
     connect = cn;
     IS      = st;
     mode    = md;
 }
Beispiel #10
0
        bool prAll;             // учитывать игры других этапов

        public ReportStatsTeamAndPlayers(SqlConnection cn, STInfoSeason inf)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
        }
Beispiel #11
0
        private void edit()
        {
            try
            {
                STInfoSeason data = GetSelectionData();

                ParamSeason wnd = new ParamSeason(connect, data);

                DialogResult result = wnd.ShowDialog();

                if (result == DialogResult.OK)
                {
                    flawour = wnd.GetFl();

                    init_data();

                    if (gpos >= 0 && dataGridViewSeason.Rows.Count > 0)
                    {
                        dataGridViewSeason.Rows[gpos].Selected             = true;
                        dataGridViewSeason.FirstDisplayedScrollingRowIndex = gpos;
                    }
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }
Beispiel #12
0
        public Symbol5(SqlConnection cn, STInfoSeason si)
        {
            InitializeComponent();

            connect = cn;
            IS      = si;
        }
Beispiel #13
0
        private void InitParamSeason()
        {
            string sNewCapture;

            CInfoSeason cis = new CInfoSeason(connect);

            STInfoSeason?NN = cis.GetCurretDataSeason();

            if (NN != null)
            {
                IS = (STInfoSeason)NN;

                string text = string.Format("(Наименование сезона: {0}. Дата начала сезона: {1})", IS.nameseason,
                                            IS.datebegin.ToLongDateString().Trim());

                sNewCapture = sBaseCapture + text;

                this.Text = sNewCapture;
            }
            else
            {
                MessageBox.Show("Текущего сезона не существует!\r\nНеобходимо создать новый, либо установить текущий сезон.",
                                "Внимание", MessageBoxButtons.OK, MessageBoxIcon.Information);

                ChangeSeason wnd = new ChangeSeason(connect, mode);

                DialogResult result = wnd.ShowDialog();

                IS = new STInfoSeason();
                InitParamSeason();
            }
        }
Beispiel #14
0
        public ListToTablo(SqlConnection cn, STInfoSeason si)
        {
            InitializeComponent();

            connect = cn;
            IS      = si;
        }
Beispiel #15
0
        public HistoryEntryPlayers(SqlConnection cn, STInfoSeason inf)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
        }
Beispiel #16
0
        public ReportRatingsTeam(SqlConnection cn, STInfoSeason inf)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
        }
Beispiel #17
0
        public ReportTeamStanding(SqlConnection cn, STInfoSeason inf)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
        }
Beispiel #18
0
        public ReportBestPlayer(SqlConnection cn, STInfoSeason inf)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
        }
Beispiel #19
0
        public ReportExcelProtocols(SqlConnection cn, STInfoSeason inf)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
        }
Beispiel #20
0
        private STInfoSeason GetSelectionData()
        {
            STInfoSeason ret = new STInfoSeason();

            int id;

            try
            {
                if (g_f)
                {
                    foreach (DataGridViewRow item in dataGridViewSeason.SelectedRows)
                    {
                        id = int.Parse(item.Cells[0].Value.ToString());

                        foreach (STInfoSeason s in list)
                        {
                            if (id == s.idseason)
                            {
                                ret = s;
                            }
                        }
                    }
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }

            return(ret);
        }
Beispiel #21
0
        public Participant(SqlConnection cn, STInfoSeason inf, ushort md)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
            mode    = md;
        }
Beispiel #22
0
        public TableDiscvalification(SqlConnection cn, STInfoSeason inf, ushort md)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
            mode    = md;
        }
Beispiel #23
0
        public DlgTransferNews(SqlConnection cn, STInfoSeason inf, int md)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
            mode    = md;
        }
Beispiel #24
0
        public DisplayStats(SqlConnection cn, STInfoSeason iss, ushort md)
        {
            InitializeComponent();

            connect = cn;
            mode    = md;
            IS      = iss;
        }
Beispiel #25
0
        public StatsCoach(SqlConnection cn, STInfoSeason st, ushort md)
        {
            InitializeComponent();

            connect = cn;
            IS      = st;
            mode    = md;
        }
Beispiel #26
0
        public FanGameReportItog(SqlConnection cn, STInfoSeason si, int m)
        {
            InitializeComponent();

            connect = cn;
            IS      = si;
            mode    = m;
        }
Beispiel #27
0
        public TableTehnicalFouls(SqlConnection cn, STInfoSeason inf, ushort md)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
            mode    = md;
        }
Beispiel #28
0
        public EntryPlayer(SqlConnection cn, STInfoSeason inf, ushort md)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
            mode    = md;
        }
Beispiel #29
0
        public FinalResult(SqlConnection cn, STInfoSeason inf, ushort md)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
            mode    = md;
        }
Beispiel #30
0
        public DlgDraft(SqlConnection cn, STInfoSeason inf, STDraftPlayer?data)
        {
            InitializeComponent();

            connect = cn;
            IS      = inf;
            oldData = data;
        }