void LblValDecDoubleClick(object sender, EventArgs e) { // This test that the InputBox can handle more newline than one. InputBox.InputBoxResult test = InputBox.InputBox.Show("Cargar el Valor"); if (test.ReturnCode == DialogResult.OK) { lblValDec.Text = test.Text; } }
void DgwMercaderiaRowHeaderMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e) { InputBox.InputBoxResult resultado = new InputBox.InputBoxResult(); resultado = InputBox.InputBox.Show("Escriba la cantidad deseada", "Cantidad", "1"); //MessageBox.Show("Usted ha seleccionado la fila", resultado.Text.ToString()); //Hay que pasar todo esto a un array pero no es el momento dgwPedido.Rows.Add(); dgwPedido[0, dgwPedido.Rows.Count - 2].Value = dgwMercaderia[0, dgwMercaderia.CurrentRow.Index].Value.ToString(); dgwPedido[1, dgwPedido.Rows.Count - 2].Value = dgwMercaderia[1, dgwMercaderia.CurrentRow.Index].Value.ToString(); dgwPedido[2, dgwPedido.Rows.Count - 2].Value = resultado.Text; }