Esempio n. 1
0
 private void create_Click(object sender, EventArgs e)
 {
     FactorView fv = new FactorView(Convert.ToString(
         projectsGrid.CurrentRow.Cells["name"].Value),
         Convert.ToInt32(projectsGrid.CurrentRow.Cells["ID"].Value));
     fv.ShowDialog();
     updateBindingSource();
 }
Esempio n. 2
0
 private void factorslist_CellDoubleClick(object sender, Telerik.WinControls.UI.GridViewCellEventArgs e)
 {
     if (e.RowIndex != -1)
     {
         int id = Convert.ToInt32(factorslist.CurrentRow.Cells["ID"].Value);
         FactorView fv = new FactorView(id);
         fv.ShowDialog();
         updateBindingSource();
     }
 }