private void DestinatarioPickerForm_FormClosing(object sender, FormClosingEventArgs e) { if (editarTrocaForm != null) { editarTrocaForm.Show(); } if (novaTrocaForm != null) { novaTrocaForm.Show(); } }
private void DataGridViewTrocas_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { TrocaModelo troca = CromoGestLibrary.GlobalConfig.Connection.GetTrocaByNum( caderneta: (CadernetaModelo)ComboBoxCadernetas.SelectedItem, numTroca: int.Parse(dataGridViewTrocas.Rows[e.RowIndex].Cells[0].Value.ToString())); EditarTrocaForm editarTrocaForm = new EditarTrocaForm( formArgPai: this, cadernetaArg: (CadernetaModelo)ComboBoxCadernetas.SelectedItem, troca: troca); editarTrocaForm.Show(); Hide(); }