PIbd-23_Abazov_A.A._Constru.../ConstructionCompany/ConstructionCompanyView/FormBrigadeMenu.cs
2023-04-23 18:04:13 +04:00

57 lines
1.6 KiB
C#
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows.Forms;
namespace ConstructionCompanyView
{
public partial class FormBrigadeMenu : Form
{
public FormBrigadeMenu()
{
InitializeComponent();
}
private void сотрудникиToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormEmployees));
if (service is FormEmployees form)
{
form.ShowDialog();
}
}
private void назначитьНаЗаказToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormEmployeeOrders));
if (service is FormEmployeeOrders form)
{
form.ShowDialog();
}
}
private void должностиToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormPositions));
if (service is FormPositions form)
{
form.ShowDialog();
}
}
private void отчётПоДолжностямToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormBrigadeReport));
if (service is FormBrigadeReport form)
{
form.ShowDialog();
}
}
}
}