PIbd-22-Ismailov_SUBD/BlogDataModels/BlogViewModel/FormMain.cs
2023-05-18 21:34:36 +04:00

31 lines
687 B
C#
Raw 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 BlogViewModel
{
public partial class FormMain : Form
{
public FormMain()
{
InitializeComponent();
}
private void пользователиToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormUsers));
if (service is FormUsers form)
{
form.ShowDialog();
}
}
}
}