Ejemplo n.º 1
0
        private void button1_Click(object sender, EventArgs e)
        {
            JournalDirection j = new JournalDirection();

            CurID       = j.GetCurriculum(comboBox2.Text.ToString(), int.Parse(textBox1.Text));
            label1.Text = CurID.ToString();
            Update();
            button1.Enabled   = false;
            textBox1.Enabled  = false;
            comboBox2.Enabled = false;
            button2.Enabled   = true;
            Text += ": направление " + comboBox2.Text.TrimEnd() + ", семестр " + textBox1.Text;
        }
Ejemplo n.º 2
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (comboBox1.Text != "" && comboBox2.Text != "" && textBox1.Text != "")
     {
         Direction d = new Direction();
         SchID       = d.GetSchedule(comboBox2.Text, int.Parse(textBox1.Text));
         label4.Text = SchID.ToString();
         JournalDirection j = new JournalDirection();
         CurID = j.GetCurriculum(comboBox1.Text.ToString(), int.Parse(textBox1.Text));
         UpdateUndDiscipline();
         button2.Enabled   = true;
         comboBox1.Enabled = false;
         comboBox2.Enabled = false;
         textBox1.Enabled  = false;
         Text += " направление: " + comboBox1.Text.TrimEnd() + ", семестр: " + textBox1.Text;
     }
     else
     {
         MessageBox.Show("Заполните все поля", "Уведомление");
     }
     UpdateSch();
 }