30 lines
708 B
C#
30 lines
708 B
C#
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 Forms
|
||
{
|
||
public partial class FormMain : Form
|
||
{
|
||
public FormMain()
|
||
{
|
||
InitializeComponent();
|
||
}
|
||
|
||
private void созданиеТипаДоставкиToolStripMenuItem_Click(object sender, EventArgs e)
|
||
{
|
||
var service = Program.ServiceProvider?.GetService(typeof(DeliveryTypeForm));
|
||
if (service is DeliveryTypeForm form)
|
||
{
|
||
form.ShowDialog();
|
||
}
|
||
}
|
||
}
|
||
}
|