Задание
Разработка экспертной системы для выбора сабвуфера на языке C#
Описание
Экспертная система представляет собой базу данных сабфуверов, а также вопросов и ответов на них, и правил, по которым задаются вопросы и их порядок.В зависимости от ответов в конечном итоге пользователь получит список удовлетворяющих его требованиям сабвуферов.
Содержание архива:

Пример кода:
private void button1_Click(object sender, EventArgs e)
{
this.BackgroundImage = null;
this.label1.Hide();
this.button1.Hide();
this.Width = 410;
this.Height = 185;
button1.Hide();
button2.Hide();
button3.Show();
button4.Show();
groupBox1.Show();
this.groupBox1.Text = "Хотите приобрести сабвуфер?";
}
private void showAnswer()
{
this.BackgroundImage = Resources.oboi71;
this.Width = 668;
this.Height = 372;
pictureBox1.Location = new Point(21, 12);
label2.Location = new Point(377, 12);
button4.Hide();
button3.Hide();
groupBox1.Hide();
button2.Show();
this.pictureBox1.Show();
this.label2.Show();
}
private void showDoubleAnswer()
{
this.BackgroundImage = Resources.oboi71;
this.Width = 816;
this.Height = 466;
pictureBox1.Location = new Point(15, 99);
pictureBox2.Location = new Point(401, 99);
label5.Location = new Point(165, 9);
label3.Location = new Point(25, 60);
label4.Location = new Point(413, 60);
button2.Location = new Point(310, 368);
button4.Hide();
button3.Hide();
groupBox1.Hide();
button2.Show();
this.pictureBox1.Show();
this.pictureBox2.Show();
this.label5.Show();
this.label3.Show();
this.label4.Show();
}
private void questionPower()
{
this.groupBox1.Text = "Какая можность?";
this.radioButton1.Text = "Низкая";
this.radioButton2.Text = "Средняя";
this.radioButton3.Text = "Высокая";
this.radioButton3.Show();
this.radioButton1.Location = new Point(16, 19);
this.radioButton2.Location = new Point(16, 42);
this.radioButton3.Location = new Point(16, 65);
}
private void customerChoise()
{
showAnswer();
this.pictureBox1.Image = Resources.посет;
this.label2.Text = "Вам следует \r\nвначале определиться \r\nс желанием";
}
Содежание архива:
- Исходный код C# WinForms для Visual Studio
Телеграм
-