forked from DavidMakarov/StudentEnrollment
41 lines
864 B
C#
41 lines
864 B
C#
|
namespace StudentEnrollmentView
|
|||
|
{
|
|||
|
public partial class FormMain : Form
|
|||
|
{
|
|||
|
public FormMain()
|
|||
|
{
|
|||
|
InitializeComponent();
|
|||
|
}
|
|||
|
|
|||
|
private void факультетыToolStripMenuItem_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
var Service = Program.ServiceProvider?.GetService(typeof(FormFaculties));
|
|||
|
|
|||
|
if (Service is FormFaculties Form)
|
|||
|
{
|
|||
|
Form.ShowDialog();
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
private void направленияToolStripMenuItem_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
var Service = Program.ServiceProvider?.GetService(typeof(FormCourses));
|
|||
|
|
|||
|
if (Service is FormCourses Form)
|
|||
|
{
|
|||
|
Form.ShowDialog();
|
|||
|
}
|
|||
|
}
|
|||
|
|
|||
|
private void студентыToolStripMenuItem_Click(object sender, EventArgs e)
|
|||
|
{
|
|||
|
var Service = Program.ServiceProvider?.GetService(typeof(FormStudents));
|
|||
|
|
|||
|
if (Service is FormStudents Form)
|
|||
|
{
|
|||
|
Form.ShowDialog();
|
|||
|
}
|
|||
|
}
|
|||
|
}
|
|||
|
}
|