private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e) { Guid idSimulacion = (Guid)dataGridView1.Rows[e.RowIndex].Cells[0].Value; FormSimulation formSimulation = new FormSimulation(idSimulacion); formSimulation.ShowDialog(); if (formSimulation.DialogResult.Equals(DialogResult.OK)) { vistaSimulacionTableAdapter.Fill(this.webappDBDataSet.VistaSimulacion); dataGridView1.Update(); dataGridView1.Refresh(); } formSimulation.Dispose(); }
private void addToolStripMenuItem_Click(object sender, EventArgs e) { FormSimulation sForm = new FormSimulation(); sForm.MdiParent = this; sForm.Show(); }
private void btnOpenSimulation_Click(object sender, EventArgs e) { WebappDBDataSet.ResultadoRow result = this.webappDBDataSet.Resultado.Where(r => r.IdResultado.Equals(_IdResult)).Single(); FormSimulation fSimulation = new FormSimulation(result.IdSimulacion); fSimulation.Show(); }