Пример #1
0
        private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
        {
            if (e.RowIndex > 0)
            {

                    if (EventCtr != null)
                    {
                        humanresourcesDataSet.clientRow checkClient = (this.dataGridView1.SelectedRows[0].DataBoundItem as DataRowView).Row as humanresourcesDataSet.clientRow;
                        if (string.IsNullOrEmpty(checkClient.Client_name))
                        {
                            EventCtr.Text = checkClient.Client_nameE;
                        }
                        else
                        {
                            EventCtr.Text = checkClient.Client_name;
                        }
                        EventCtr.Tag = checkClient.Client_id;
                        this.Close();
                    }

                else
                {
                    FrmCusromerInfo fui = new FrmCusromerInfo(((this.dataGridView1.Rows[e.RowIndex].DataBoundItem as DataRowView).Row as humanresourcesDataSet.clientRow).Client_id);
                    fui.MdiParent = this.MdiParent;
                    fui.Show();
                }
            }
        }
Пример #2
0
 private void tsmiClientInfo_Click(object sender, EventArgs e)
 {
     if ((dataGridView1.SelectedRows[0].DataBoundItem as DataRowView).Row.GetType() == typeof(humanresourcesDataSet.clientRow))
     {
         FrmCusromerInfo fui = new FrmCusromerInfo(((dataGridView1.SelectedRows[0].DataBoundItem as DataRowView).Row as humanresourcesDataSet.clientRow).Client_id);
         fui.MdiParent = this.MdiParent;
         fui.Show();
     }
 }
Пример #3
0
 private void dataGridView1_CellDoubleClick(object sender, DataGridViewCellEventArgs e)
 {
     if (dataGridView1.Rows[e.RowIndex].DataBoundItem.GetType() == typeof(humanresourcesDataSet.clientRow))
     {
         FrmCusromerInfo fui = new FrmCusromerInfo((dataGridView1.Rows[e.RowIndex].DataBoundItem as humanresourcesDataSet.clientRow).Client_id);
         fui.MdiParent = this.MdiParent;
         fui.Show();
     }
 }
Пример #4
0
 private void tsmiClientInfo_Click(object sender, EventArgs e)
 {
     FrmCusromerInfo fci = new FrmCusromerInfo(((this.dataGridView1.SelectedRows[0].DataBoundItem as DataRowView).Row as humanresourcesDataSet.vw_recommendedRow).Client_id);
     fci.MdiParent = this.MdiParent;
     fci.Show();
 }
Пример #5
0
 private void tsmiClientinfo_Click(object sender, EventArgs e)
 {
     if (dataGridView1.SelectedRows.Count > 0)
     {
         FrmCusromerInfo fci = new FrmCusromerInfo((dataGridView1.SelectedRows[0].DataBoundItem as humanresourcesDataSet.vw_orderRow).Client_id);
         fci.MdiParent = this.MdiParent;
         fci.Show();
     }
 }