PIbd-23_Abazov_A.A._Constru.../ConstructionCompany/ConstructionCompanyView/FormManagerMenu.cs

30 lines
700 B
C#
Raw Normal View History

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 FormManagerMenu : Form
{
public FormManagerMenu()
{
InitializeComponent();
}
private void заказыToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormOrders));
if (service is FormOrders form)
{
form.ShowDialog();
}
}
}
}