Exemplo n.º 1
0
 private void gridPrivates_CellMouseDoubleClick(object sender, DataGridViewCellMouseEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         PrivateForm pf = new PrivateForm(this, manager);
         pf.Show();
         int     currentPrivateID = Convert.ToInt32(gridPrivates.Rows[e.RowIndex].Cells[0].Value);
         Private priv             = privates.Where(x => x.ID == currentPrivateID).ToList <Private>()[0];
         pf.Populate(priv, e.RowIndex);
     }
 }
Exemplo n.º 2
0
        private void btnAddPrivate_Click(object sender, EventArgs e)
        {
            PrivateForm pf = new PrivateForm(this, manager);

            pf.Show();
        }