示例#1
0
 public static frmShakingNumbersDetails GetInstance(ProjectGroupEntityTemp model)
 {
     if (frmShakingNumbersDtls == null)
     {
         frmShakingNumbersDtls = new frmShakingNumbersDetails(model);
     }
     return(frmShakingNumbersDtls);
 }
示例#2
0
        private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
        {
            if (dataGridView1.Columns[e.ColumnIndex].Name == "Operate")
            {
                //可以在此打开新窗口,把参数传递过去

                model.ProjectNumber    = this.dataGridView1.Rows[e.RowIndex].Cells[3].Value.ToString();
                model.ProjectName      = this.dataGridView1.Rows[e.RowIndex].Cells[4].Value.ToString();
                model.ProjectGroupID   = Convert.ToInt32(this.dataGridView1.Rows[e.RowIndex].Cells[5].Value.ToString());
                model.ProjectGroupName = this.dataGridView1.Rows[e.RowIndex].Cells[6].Value.ToString();
                frmShakingNumbersDetails fm = new frmShakingNumbersDetails();
                fm.ShowDialog();
            }
        }