private void tsAddNew_Click(object sender, EventArgs e) { Manp_CardTransaction manp = new Manp_CardTransaction(); manp.IsEditMode = true; manp.ShowDialog(); RefreshData(); }
private void tsView_Click(object sender, EventArgs e) { if (gvData.GetFocusedRow() is CardFicheLineView lineView) { Manp_CardTransaction manp = new Manp_CardTransaction(); manp.Id = lineView.CardFicheId; manp.IsEditMode = false; manp.ShowDialog(); RefreshData(); } }