コード例 #1
0
        internal async Task ModificarAsync(GastoListadoItem gastoListadoItem)
        {
            GastoDetalleForm gastoDetalleForm = new GastoDetalleForm(gastoListadoItem.Gasto);

            gastoDetalleForm.ShowDialog();
            await BuscarAsync();
        }
コード例 #2
0
ファイル: GastoListadoForm.cs プロジェクト: santiagots/MinPOS
        private void dgGastos_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            EjecutarAsync(async() =>
            {
                if (e.RowIndex < 0)
                {
                    return;
                }

                GastoListadoItem gastoListadoItem = (GastoListadoItem)dgGastos.CurrentRow.DataBoundItem;
                await gastoListadoViewModel.ModificarAsync(gastoListadoItem);
            });
        }
コード例 #3
0
ファイル: GastoListadoForm.cs プロジェクト: santiagots/MinPOS
        private void dgGastos_CellMouseClick(object sender, DataGridViewCellMouseEventArgs e)
        {
            EjecutarAsync(async() =>
            {
                if (e.RowIndex < 0)
                {
                    return;
                }

                GastoListadoItem gastoListadoItem = (GastoListadoItem)dgGastos.CurrentRow.DataBoundItem;

                if (dgGastos.Columns[e.ColumnIndex].Name == "Editar")
                {
                    await gastoListadoViewModel.ModificarAsync(gastoListadoItem);
                }
            });
        }