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