-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFormProjectsGrid.cs
More file actions
41 lines (35 loc) · 1.09 KB
/
FormProjectsGrid.cs
File metadata and controls
41 lines (35 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
namespace PBioManager
{
public partial class FormProjectsGrid : Form
{
public FormProjectsGrid()
{
InitializeComponent();
}
private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
{
Guid idProject = (Guid)dataGridView1.Rows[e.RowIndex].Cells[0].Value;
FormProject formProject = new FormProject(idProject);
formProject.ShowDialog();
if (formProject.DialogResult.Equals(DialogResult.OK))
{
proyectoTableAdapter.Fill(this.webappDBDataSet.Proyecto);
dataGridView1.Update();
dataGridView1.Refresh();
}
formProject.Dispose();
}
private void FormProjectsGrid_Load(object sender, EventArgs e)
{
this.proyectoTableAdapter.Fill(this.webappDBDataSet.Proyecto);
}
}
}