예제 #1
0
        private void Spromo_Click(object sender, EventArgs e)
        {
            int projekti = 0;

            if (pr1.Checked)
            {
                projekti++;
            }
            if (pr2.Checked)
            {
                projekti++;
            }
            if (pr3.Checked)
            {
                projekti++;
            }
            if (pr4.Checked)
            {
                projekti++;
            }
            MessageBox.Show("projekti:" + projekti);
            SeniorClass s1 = new SeniorClass(fname.Text, lname.Text, ranklabel.Text);

            s1.CorporationRank = comboBox1.SelectedItem.ToString();
            s1.PovecanjePlate(projekti, Convert.ToInt32(extrahours.Value));
            s1.PrintInformation();
        }
예제 #2
0
        private void Button1_Click(object sender, EventArgs e)
        {
            int projekti = 0;

            if (pr1.Checked)
            {
                projekti++;
            }
            if (pr2.Checked)
            {
                projekti++;
            }
            if (pr3.Checked)
            {
                projekti++;
            }
            if (pr4.Checked)
            {
                projekti++;
            }
            SeniorClass s1 = new SeniorClass(fname.Text, lname.Text, ranklabel.Text);

            s1.CorporationRank = comboBox1.SelectedItem.ToString();
            s1.Promocija(projekti);
            s1.PrintInformation();
        }