コード例 #1
0
ファイル: RoomsRegister.cs プロジェクト: Chebotkov/Polyclinic
        private void comboBox2_SelectedIndexChanged(object sender, EventArgs e)
        {
            listBox1.Enabled = true;

            SpecializationChoise?.Invoke(this, new EntityIdEventArgs(Editor.GetId(comboBox2.SelectedItem.ToString())));
            listBox1.DataSource = rooms;
        }
コード例 #2
0
ファイル: RoomsRegister.cs プロジェクト: Chebotkov/Polyclinic
        private void comboBox1_SelectedIndexChanged(object sender, EventArgs e)
        {
            SpecializationChoise?.Invoke(this, new EntityIdEventArgs(Editor.GetId(comboBox1.SelectedItem.ToString())));

            groupBox1.Enabled = true;
            radioButton1.Select();
            textBox1.Clear();
            textBox2.Clear();
            textBox3.Clear();
        }
コード例 #3
0
        /// <summary>
        /// Triggered when specialization was chosen.
        /// </summary>
        /// <param name="sender">Sender</param>
        /// <param name="e">EventArgs</param>
        private void comboBox3_SelectedIndexChanged(object sender, EventArgs e)
        {
            SpecializationChoise?.Invoke(this, new PolyclinicBL.PatientsIdAndSpecializationNameEventArgs(PolyclinicBL.Editor.GetId(comboBox1.SelectedItem.ToString()), PolyclinicBL.Editor.GetId(comboBox3.SelectedItem.ToString())));

            monthCalendar1.Enabled = false;
            domainUpDown1.Enabled  = false;
            button1.Enabled        = false;
            comboBox4.Text         = "";
            domainUpDown1.Text     = "";
            domainUpDown1.Items.Clear();

            if (comboBox4.Items.Count == 0)
            {
                MessageBox.Show("Не найдено врачей с данной специализацией", "Внимание!", MessageBoxButtons.OK, MessageBoxIcon.Information);
                comboBox4.Enabled = false;
            }
            else
            {
                comboBox4.Enabled = true;
            }
        }