Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            string name  = textBoxSubj.Text;
            string score = textBoxScore.Text;

            if (name.Length != 0 && score.Length != 0)
            {
                if (UpdatingInformation.UpdateMaxScore(name, Int32.Parse(score)))
                {
                    MessageBox.Show("Successfully update!");
                }
                else
                {
                    MessageBox.Show("Oops... Something went wrong! Try again.");
                }
            }
            else
            {
                MessageBox.Show("Incorrect info!");
            }
        }
Ejemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            string name   = textBoxSpec.Text;
            string amount = textBoxAmount.Text;

            if (name.Length != 0 && amount.Length != 0)
            {
                if (UpdatingInformation.UpdatePlanOfAdmission(name, Int32.Parse(amount)))
                {
                    MessageBox.Show("Successfully update!");
                }
                else
                {
                    MessageBox.Show("Oops... Something went wrong! Try again.");
                }
            }
            else
            {
                MessageBox.Show("Incorrect info!");
            }
        }
Ejemplo n.º 3
0
        private void ButtonUpdLeader_Click(object sender, EventArgs e)
        {
            string name = textBoxLeader.Text;
            string year = textBoxYear.Text;

            if (name.Length != 0 && CheckingInfo.CheckCorectness(year))
            {
                if (UpdatingInformation.UpdateHistory(name, Int32.Parse(year)))
                {
                    MessageBox.Show("Successfully update!");
                }
                else
                {
                    MessageBox.Show("Oops... Something went wrong! Try again.");
                }
            }
            else
            {
                MessageBox.Show("Incorrect info!");
            }
        }