Exemplo n.º 1
0
        private void gridMain_DoubleClick(object sender, EventArgs e)
        {
            int index = gridMain.GetSelectedIndex();

            if (index == -1)           //Clicked in empty space.
            {
                return;
            }
            //Mimics FormClaimsSend.gridHistory_CellDoubleClick(...)
            Cursor = Cursors.WaitCursor;
            Etrans et = (Etrans)gridMain.Rows[index].Tag;

            //Sadly this is needed due to FormEtrans835Edit calling Etranss.Update .
            //See Etranss.RefreshHistory(...), this query does not select all etrans columns.
            //Mimics FormClaimsSend.gridHistory_CellDoubleClick(...)
            et = Etranss.GetEtrans(et.EtransNum);
            FormEtrans835Edit.ShowEra(et);
            Cursor = Cursors.Default;
        }
Exemplo n.º 2
0
 private void gridEras_CellDoubleClick(object sender, UI.ODGridClickEventArgs e)
 {
     FormEtrans835Edit.ShowEra(_listEtrans[gridEras.SelectedIndices[0]]);
 }