Ejemplo n.º 1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            var id = new Guid(this.dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString());

            DbHelper.CurrentProject = DbHelper.Projects.First(r => r.Id == id);
            ModifyProject p = new ModifyProject();

            p.Show();
        }
Ejemplo n.º 2
0
        private void button1_Click(object sender, EventArgs e)
        {
            ModifyProject p = new ModifyProject();

            p.Show();
            DbHelper.CurrentProject = new Project()
            {
                Id    = Guid.NewGuid(),
                Index = DbHelper.Projects.Max(r => r.Index) + 1
            };
        }