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 KadroviYshot { public partial class FormMain : Form { public FormMain() { InitializeComponent(); StartPosition = FormStartPosition.CenterScreen; } private void btnEmployees_Click(object sender, EventArgs e) { FormEmployees employees = new FormEmployees(); this.Hide(); employees.ShowDialog(); this.Show(); } private void выходToolStripMenuItem_Click(object sender, EventArgs e) { Environment.Exit(0); } } }