private void btnSave_Click(object sender, EventArgs e)
        {
            decimal R;
            decimal P  = decimal.Parse(txtPrice.Text);
            int     T  = int.Parse(txtTime.Text);
            decimal Ti = decimal.Parse(txtTime.Text);
            decimal F  = decimal.Parse(lblmulti.Text);

            if (rdohappy.Checked)
            {
                happy = "Gut";
                R     = Ti / P * F * 2;
            }
            else if (rdounhappy.Checked)
            {
                happy = "Schlecht";
                R     = Ti / P * F / 2;
            }
            else if (rdososo.Checked)
            {
                happy = "Ok";
                R     = Ti / P * F;
            }
            else
            {
                happy = "Nothing";
                R     = Ti / P * F;
            }
            NewGameFunk startFunktion = new NewGameFunk();

            startFunktion.UpdateEi(txtName.Text, P, T, LoginInfo.UserEmail, trbPoints.Value, R, chkfin.Checked, happy);
        }
        private void btncheck_Click(object sender, EventArgs e)
        {
            NewGameFunk startFunktion = new NewGameFunk();

            vor  = startFunktion.GameCheck(txtName.Text);
            vor2 = startFunktion.GameCheck2(txtName.Text, LoginInfo.UserEmail);
            if (vor == true)
            {
                if (vor2 == true)
                {
                    txtName.BackColor = Color.Green;
                    vor  = false;
                    vor2 = false;
                }
                else
                {
                    txtName.BackColor = Color.Yellow;
                    vor = false;
                }
            }
            else
            {
                txtName.BackColor = Color.Red;
            }
        }
Ejemplo n.º 3
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            NewGameFunk startFunktion = new NewGameFunk();
            decimal     V             = decimal.Parse(lblmulti.Text);

            startFunktion.CreateFormel(V, txtGenre.Text, LoginInfo.UserEmail);
        }
        private void frmSpieleintragveraendern_Load(object sender, EventArgs e)
        {
            NewGameFunk startFunktion = new NewGameFunk();


            DataTable dt2 = startFunktion.LoadGenre(LoginInfo.UserEmail);

            cboGenre.DisplayMember = "Genre";
            cboGenre.DataSource    = dt2;
            lblmulti.Text          = startFunktion.Multipli(LoginInfo.UserEmail, cboGenre.Text);
        }
Ejemplo n.º 5
0
        private void frmAddGame_Load(object sender, EventArgs e)
        {
            NewGameFunk startFunktion = new NewGameFunk();
            DataTable   dt            = startFunktion.LoadPlatt();

            cboPlattform.DisplayMember = "Plattform";
            cboPlattform.DataSource    = dt;
            DataTable dt2 = startFunktion.LoadGenre(LoginInfo.UserEmail);

            cboGenre.DisplayMember = "Genre";
            cboGenre.DataSource    = dt2;
            lblmulti.Text          = startFunktion.Multipli(LoginInfo.UserEmail, cboGenre.Text);
        }
Ejemplo n.º 6
0
        private void frmRangliste_Load(object sender, EventArgs e)
        {
            NewGameFunk startFunktion = new NewGameFunk();
            DataTable   Grid3         = startFunktion.Grid(LoginInfo.UserEmail);

            dgvRang.DataSource = Grid3;
            lblmaxT.Text       = startFunktion.MaXT(LoginInfo.UserEmail) + " Stunden";
            lblAvgT.Text       = startFunktion.AvgT(LoginInfo.UserEmail) + " Stunden";
            lblGPSS.Text       = startFunktion.BilanzPlayer(LoginInfo.UserEmail) + " Stunden pro Franken";
            lblMaxK.Text       = startFunktion.MaXM(LoginInfo.UserEmail) + " Franken";
            lblDA.Text         = startFunktion.AvgM(LoginInfo.UserEmail) + " Franken";
            lblAS.Text         = startFunktion.CGame(LoginInfo.UserEmail) + " Spieleinträge";
        }
        private void cboGenre_SelectedIndexChanged(object sender, EventArgs e)
        {
            NewGameFunk startFunktion = new NewGameFunk();

            lblmulti.Text = startFunktion.Multipli(LoginInfo.UserEmail, cboGenre.Text);
        }
Ejemplo n.º 8
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            NewGameFunk startFunktion = new NewGameFunk();

            startFunktion.AddPlatt(txtplatt.Text);
        }