コード例 #1
0
        private void btnLogs_Click(object sender, EventArgs e)
        {
            WebappDBDataSet.SimulacionRow simulation = this.webappDBDataSet.Simulacion.Where(sim => sim.IdSimulacion.Equals(_IdSimulation)).Single();

            FormLog fLog = new FormLog(simulation.IdLog);
            fLog.Show();
        }
コード例 #2
0
ファイル: FormLogsGrid.cs プロジェクト: dprolongo/PBioManager
        private void dataGridViewLog_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            Guid idLog = (Guid)dataGridViewLog.Rows[e.RowIndex].Cells[0].Value;
            FormLog formLog = new FormLog(idLog);

            formLog.ShowDialog();

            if (formLog.DialogResult.Equals(DialogResult.OK))
            {
                logTableAdapter.Fill(this.webappDBDataSet.Log);
                dataGridViewLog.Update();
                dataGridViewLog.Refresh();
            }

            formLog.Dispose();
        }