Пример #1
0
 public static frmSubscriberSelectionHistory GetInstance(SubscriberEntityTemp model)
 {
     if (frmSubscriberSelHist == null)
     {
         frmSubscriberSelHist = new frmSubscriberSelectionHistory(model);
     }
     return(frmSubscriberSelHist);
 }
Пример #2
0
 private void dataGridView1_CellContentClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.Columns[e.ColumnIndex].Name == "Operate")
     {
         //可以在此打开新窗口,把参数传递过去
         //model.s = Convert.ToInt32(this.dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString());
         model.Name           = this.dataGridView1.Rows[e.RowIndex].Cells[1].Value.ToString();
         model.IdentityNumber = this.dataGridView1.Rows[e.RowIndex].Cells[2].Value.ToString();
         frmSubscriberSelectionHistory fm = new frmSubscriberSelectionHistory();
         fm.ShowDialog();
     }
 }