void NewPassword(object sender, EventArgs e) { var f = new NewPasswordDialog(new DataEntity()); f.ShowDialog(this); f.Dispose(); LoadData(); }
void ModifyPassword(object sender, EventArgs e) { int id = GetSelectedId(); if (id > 0) { var i = Data.GetById(id); var f = new NewPasswordDialog(i); f.ShowDialog(this); f.Dispose(); LoadData(); } }