public FormAdminPanel(FormAuthorization formAuthorization) { InitializeComponent(); authorization = formAuthorization; LoadDataGrid(); buttonSave.Click += (sender, args) => SaveChanges(); this.FormClosing += (sender, args) => authorization.Show(); buttonEncr.Click += (sender, args) => Encrypt(); }
private void changeUserToolStripMenuItem_Click(object sender, EventArgs e) { if (File.Exists(fileName)) { File.Delete(fileName); } formAuthorization.Show(); Hide(); }