示例#1
0
        private void DlgAwards_Load(object sender, EventArgs e)
        {
            string text = null;

            try
            {
                clWork = new CAward(connect);

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

                if (mode == 0)
                {
                    text = "Добавить номинацию";
                    int n = clWork.GetFreeId();
                    textBoxId.Text = n.ToString();
                    textBoxName.Focus();
                }
                if (mode == 1)
                {
                    text = "Редактировать номинацию";
                    set_data((STAward)oldData);
                }
                this.Text = text;
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }
示例#2
0
文件: Awards.cs 项目: Pavlo7/NBLStats
        private void Awards_Load(object sender, EventArgs e)
        {
            try
            {
                clWork = new CAward(connect);

                this.WindowState = FormWindowState.Maximized;

                init_data();
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }
示例#3
0
        private void AwardsResult_Load(object sender, EventArgs e)
        {
            try
            {
                clDiv   = new CDivision(connect);
                clWork  = new CAwarsResult(connect);
                clTeam  = new CTeam(connect);
                clAward = new CAward(connect);

                init_combo();
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }
示例#4
0
        private void DlgAwardsResult_Load(object sender, EventArgs e)
        {
            try
            {
                if (oldData != null)
                {
                    mode = 1;
                }
                else
                {
                    mode = 0;
                }

                clAward = new CAward(connect);
                clWork  = new CAwarsResult(connect);

                view_param.idseason = IS.idseason;

                this.Text = caption;

                init_combo_award();

                init_combo_player();

                if (mode == 0)
                {
                    caption = "Добавить награду";
                }
                if (mode == 1)
                {
                    caption = "Редактировать награду";
                    set_data((STAwardsResult)oldData);
                }
            }
            catch (Exception ex) { MessageBox.Show(ex.Message, ex.Source); }
        }