PIbd-33_Abazov_A.A._KOP_29/AbazovApp/AccountsApp/FormMain.cs

42 lines
1.0 KiB
C#
Raw Normal View History

2023-11-16 20:39:00 +04:00
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 AccountsApp
{
public partial class FormMain : Form
{
public FormMain()
{
InitializeComponent();
}
2023-11-16 23:49:40 +04:00
private void создатьToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormAccount));
if (service is FormAccount form)
{
if (form.ShowDialog() == DialogResult.OK)
{
}
}
}
private void интересыToolStripMenuItem_Click(object sender, EventArgs e)
{
var service = Program.ServiceProvider?.GetService(typeof(FormInterests));
if (service is FormInterests form)
{
form.ShowDialog();
}
}
2023-11-16 20:39:00 +04:00
}
}