Ejemplo n.º 1
0
        private void textBox1_KeyDown(object sender, KeyEventArgs e)
        {
            //  MessageBox.Show(e.KeyValue.ToString());
            if (e.KeyValue == 13)
            {
                //  list1.Add(this.textBox1.Text);
                //   this.dataGridView1.DataSource = list1;

                /*
                 * this.labtt.Text = this.textBox1.Text;
                 * this.textBox1.Text = "";
                 *
                 */
                //    databind();



                //  MessageBox.Show(this.textBox1.Text);
                databind(this.textBox1.Text);
            }
            if (e.KeyValue == 113)
            {
                Form_Pay f = new Form_Pay(float.Parse(this.jine.Text), this, list);
                f.ShowInTaskbar = false;
                f.Show();
            }
            if (e.KeyValue == 112)
            {
                Form_payFor f = new Form_payFor(float.Parse(this.jine.Text), this, list);
                f.ShowInTaskbar = false;
                f.Show();
            }
        }
Ejemplo n.º 2
0
        private void button1_Click_2(object sender, EventArgs e)
        {
            //formclea();
            Form_payFor f = new Form_payFor(float.Parse(this.jine.Text), this, list);

            f.ShowInTaskbar = false;
            f.Show();
        }