private void btnEdit_Click(object sender, EventArgs e) { int index = dgvAccounts.CurrentRow.Index; FormProfile editAcc = new FormProfile(dgvAccounts.SelectedCells[0].Value.ToString()); editAcc.ShowDialog(); }
private void btnAdd_Click(object sender, EventArgs e) { FormProfile addAcc = new FormProfile(); addAcc.AddNew(); addAcc.ShowDialog(); }
private void btnProfile_Click(object sender, EventArgs e) { FormProfile profile = new FormProfile(Program.userSekarang.user); profile.fromMain = true; this.Hide(); profile.Show(); }