Beispiel #1
0
        private void ListToTablo_Load(object sender, EventArgs e)
        {
            clParamApp = new CParamApp();

            filename = "табло.txt";

            fullpath = Path.Combine(clParamApp.s_Path.pathreport, filename);
        }
Beispiel #2
0
        private void Symbol5_Load(object sender, EventArgs e)
        {
            clParamApp = new CParamApp();

            checkBoxFlaf.Checked = false;

            init_combo_division();
            lst_idgroup = new List <int>();
        }
Beispiel #3
0
        private void ImportStats_Load(object sender, EventArgs e)
        {
            try
            {
                clParam = new CParamApp();

                clFileInfo = new CFileInfo(connect);
                clRecords  = new CRecordsPerson(connect);
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }
Beispiel #4
0
        private void HistoryPlayer_Load(object sender, EventArgs e)
        {
            try
            {
                clParam = new CParamApp();

                set_data();
                init_data_in();
                init_data_stats();
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }
Beispiel #5
0
        public DlgPlayers(SqlConnection cn, ushort md)
        {
            InitializeComponent();

            connect = cn;
            mode    = md;

            clPlayer = new CPlayer(connect);
            clParam  = new CParamApp();

            gid = clPlayer.GetFreeId();

            caption = "Новый игрок";
        }
Beispiel #6
0
        public DlgReferee(SqlConnection cn, ushort md)
        {
            InitializeComponent();

            connect = cn;
            mode    = md;

            clReferee = new CReferee(connect);
            clParam   = new CParamApp();

            gid = clReferee.GetFreeId();

            caption = "Ќовый судь¤";
        }
Beispiel #7
0
        public DlgCoach(SqlConnection cn, ushort md)
        {
            InitializeComponent();

            connect = cn;
            mode    = md;

            clCoach = new CCoach(connect);
            clParam = new CParamApp();

            gid = clCoach.GetFreeId();

            caption = "Ќовый тренер";
        }
Beispiel #8
0
        public DlgParticipant(SqlConnection cn, ushort md)
        {
            InitializeComponent();

            connect = cn;
            mode    = md;

            clParticipant = new CParticipant(connect);
            clParam       = new CParamApp();

            gid = clParticipant.GetFreeId();

            caption = "Ќовый участник";
        }
Beispiel #9
0
        public DlgReferee(SqlConnection cn, ushort md, STReferee st)
        {
            InitializeComponent();

            connect    = cn;
            mode       = md;
            gstReferee = st;

            gid = gstReferee.idref;

            clReferee = new CReferee(connect);
            clParam   = new CParamApp();

            caption = "–едактировать данные судьи";
        }
Beispiel #10
0
        public DlgParticipant(SqlConnection cn, ushort md, STParticipant st)
        {
            InitializeComponent();

            connect        = cn;
            mode           = md;
            gstParticipant = st;

            gid = gstParticipant.idpart;

            clParticipant = new CParticipant(connect);
            clParam       = new CParamApp();

            caption = "–едактировать данные участника";
        }
Beispiel #11
0
        public DlgCoach(SqlConnection cn, ushort md, STCoach st)
        {
            InitializeComponent();

            connect  = cn;
            mode     = md;
            gstCoach = st;

            gid = gstCoach.idcoach;

            clCoach = new CCoach(connect);
            clParam = new CParamApp();

            caption = "–едактировать данные тренера";
        }
Beispiel #12
0
        public DlgPlayers(SqlConnection cn, ushort md, STPlayer st)
        {
            InitializeComponent();

            connect   = cn;
            mode      = md;
            gstPlayer = st;

            gid = gstPlayer.idplayer;

            clPlayer = new CPlayer(connect);
            clParam  = new CParamApp();

            caption = "Редактировать данные игрока";
        }
Beispiel #13
0
        private void DlgBookOut_Load(object sender, EventArgs e)
        {
            try
            {
                clParamApp = new CParamApp();

                pathbook = Path.Combine(clParamApp.s_Path.pathreport, "Book");
                pathgame = Path.Combine(clParamApp.s_Path.pathreport, "Pre");

                DirectoryInfo dir     = new DirectoryInfo(pathbook);
                DirectoryInfo dirgame = new DirectoryInfo(pathgame);

                dirgame.Create();
                dir.Create();

                checkBoxBook.Checked  = true;
                checkBoxGames.Checked = true;

                textBoxGamesBegin.Focus();
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }
Beispiel #14
0
        private void DlgParticipant_Load(object sender, EventArgs e)
        {
            string text = null;

            try
            {
                clWork  = new CParticipant(connect);
                clParam = new CParamApp();
                clPost  = new CPostment(connect);

                if (oldData != null)
                {
                    mode = 1;
                }
                else
                {
                    mode = 0;
                }

                if (mode == 0)
                {
                    text = "Ќовый участник";
                    int n = clWork.GetFreeId();
                    textBoxId.Text = n.ToString();
                    textBoxFamily.Focus();
                }
                if (mode == 1)
                {
                    text = "–едактировать данные участника";
                    set_data((STParticipant)oldData);
                }
                this.Text = text;

                init_combo_country();

                init_list_post();
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }
Beispiel #15
0
        private void Symbol5_Load(object sender, EventArgs e)
        {
            clParamApp = new CParamApp();

            checkBoxFlaf.Checked = false;
        }
Beispiel #16
0
 public Mode()
 {
     InitializeComponent();
     mode       = 0;
     clParamApp = new CParamApp();
 }
Beispiel #17
0
        public Connect()
        {
            InitializeComponent();

            clParamApp = new CParamApp();
        }