Exemplo n.º 1
0
        private void gridMain_CellDoubleClick(object sender, ODGridClickEventArgs e)
        {
            FormFHIRAPIKeyEdit formFHIRAPIKeyEdit = new FormFHIRAPIKeyEdit((APIKey)gridMain.ListGridRows[e.Row].Tag);

            formFHIRAPIKeyEdit.ShowDialog();
            if (formFHIRAPIKeyEdit.HasChanged)
            {
                FillGrid();
            }
        }
Exemplo n.º 2
0
        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();
            }
        }
Exemplo n.º 3
0
        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();
            }
        }