Exemplo n.º 1
0
 public static frmSummeryView getInstance()
 {
     if (instance == null || instance.IsDisposed)
     {
         instance = new frmSummeryView();
     }
     else
     {
         instance.BringToFront();
     }
     return(instance);
 }
Exemplo n.º 2
0
        private void dataGridViewSummery_CellClick(object sender, DataGridViewCellEventArgs e)
        {
            frmSummeryView summery = new frmSummeryView();

            summery.Show();
            summery.txtJob.Text      = this.dataGridViewSummery.CurrentRow.Cells[0].Value.ToString();
            summery.txtname.Text     = this.dataGridViewSummery.CurrentRow.Cells[1].Value.ToString();
            summery.txtphone.Text    = this.dataGridViewSummery.CurrentRow.Cells[2].Value.ToString();
            summery.txtemail.Text    = this.dataGridViewSummery.CurrentRow.Cells[3].Value.ToString();
            summery.txtlocation.Text = this.dataGridViewSummery.CurrentRow.Cells[4].Value.ToString();
            summery.txtstatus.Text   = this.dataGridViewSummery.CurrentRow.Cells[5].Value.ToString();
            summery.txtdomain.Text   = this.dataGridViewSummery.CurrentRow.Cells[6].Value.ToString();
            summery.txtmodel.Text    = this.dataGridViewSummery.CurrentRow.Cells[7].Value.ToString();
            summery.txtip.Text       = this.dataGridViewSummery.CurrentRow.Cells[8].Value.ToString();
            summery.txtport.Text     = this.dataGridViewSummery.CurrentRow.Cells[9].Value.ToString();
            summery.txtexpire.Text   = this.dataGridViewSummery.CurrentRow.Cells[10].Value.ToString();
            summery.txtnote.Text     = this.dataGridViewSummery.CurrentRow.Cells[11].Value.ToString();
        }