private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { FormFHIRAPIKeyEdit formFHIRAPIKeyEdit = new FormFHIRAPIKeyEdit((APIKey)gridMain.ListGridRows[e.Row].Tag); formFHIRAPIKeyEdit.ShowDialog(); if (formFHIRAPIKeyEdit.HasChanged) { FillGrid(); } }
private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e) { FormFHIRAPIKeyEdit FormFAKE = new FormFHIRAPIKeyEdit(); FormFAKE.APIKeyCur = (APIKey)gridMain.Rows[e.Row].Tag; DialogResult res = FormFAKE.ShowDialog(); if (res == DialogResult.OK) { _listApiKeysLocal[e.Row] = FormFAKE.APIKeyCur; FillGrid(); } }
private void butGenerateKey_Click(object sender, EventArgs e) { APIKey apiKey = GenerateNewKey(); if (apiKey == null) { return; //We already showed them an error message. } _listApiKeysHQ.Add(apiKey); //Since this came from HQ, we want it in that list. FormFHIRAPIKeyEdit FormFAKE = new FormFHIRAPIKeyEdit(); FormFAKE.APIKeyCur = apiKey.Copy(); DialogResult res = FormFAKE.ShowDialog(); if (res == DialogResult.OK) { _listApiKeysLocal.Add(FormFAKE.APIKeyCur); FillGrid(); } }