private void AraAdindan_KeyDown(object sender, KeyEventArgs e)
        {
            if (e.KeyCode == Keys.Escape)
            {
                Close();
            }

            AraBarkodtan.Text = "";
            if (e.KeyCode == Keys.Left && AraAdindan.Text == "")
            {
                AraBarkodtan.Focus();
            }
            if (e.KeyCode == Keys.Down)
            {
                gridControl1.Focus();
                gridView1.FocusedRowHandle = 1;
            }
            if (e.KeyCode == Keys.Enter)
            {
                simpleButton2_Click(sender, e);
                //DataRow dr = gridView1.GetDataRow(gridView1.FocusedRowHandle);
                //DB.FirmaAdi = dr["Firmaadi"].ToString();
                //DB.PkFirma = int.Parse(dr["pkFirma"].ToString());
                //Close();
            }
        }
Exemplo n.º 2
0
        private void AraBarkodtan_KeyDown_1(object sender, KeyEventArgs e)
        {
            AraAdindan.Text = "";
            if (e.KeyCode == Keys.Right)
            {
                AraAdindan.Focus();
                return;
            }
            if (e.KeyCode == Keys.Down)
            {
                gridControl1.Focus();
            }

            if (e.KeyCode == Keys.Enter)
            {
                if (AraBarkodtan.Text == "")
                {
                    AraBarkodtan.Focus();
                }
                else
                {
                    gridView1.FocusedRowHandle = 0;
                    //simpleButton2_Click(sender, e);
                }
            }
        }
Exemplo n.º 3
0
 private void AraAdindan_KeyDown(object sender, KeyEventArgs e)
 {
     AraBarkodtan.Text = "";
     if (e.KeyCode == Keys.Left && AraAdindan.Text == "")
     {
         AraBarkodtan.Focus();
     }
     if (e.KeyCode == Keys.Down)
     {
         gridControl1.Focus();
     }
 }
Exemplo n.º 4
0
 private void AraAdindan_KeyDown_1(object sender, KeyEventArgs e)
 {
     AraBarkodtan.Text = "";
     if (e.KeyCode == Keys.Left && AraAdindan.Text == "")
     {
         AraBarkodtan.Focus();
         return;
     }
     if (e.KeyCode == Keys.Down)
     {
         gridControl1.Focus();
     }
     if (e.KeyCode == Keys.Enter)
     {
         gridView1.FocusedRowHandle = 0;
         simpleButton2.PerformClick();
     }
 }