Ejemplo n.º 1
0
        private void button3_Click(object sender, EventArgs e)
        {
            Consumption c = new Consumption();

            c.Show();
            this.Hide();
        }
Ejemplo n.º 2
0
        private void savemarque_Click(object sender, EventArgs e)
        {
            int j = comboBox2.SelectedIndex + 1;

            if (x == 1)

            {
                test();
                if ((textBox1.Text != "") && (textBox2.Text != ""))
                {
                    string ch1 = "insert into conssomer values('" + j + "','" + k + "','" + dateTimeuse.Value.ToString("dd/MM/yyyy") + "')";
                    conn.insertTable(ch1);

                    Consumption a = new Consumption(k);
                    a.Show();
                    this.Hide();
                }
                else
                {
                    string req = "update conssomer set date_use ='" + dateTimeuse.Value.ToString("dd/MM/yyyy") + "', id_acc= '" + j + "' where id_machine = '" + id + "'";
                    conn.insertTable(req);
                    Consumption a = new Consumption();
                    a.Show();
                    this.Hide();;
                }
            }
        }
Ejemplo n.º 3
0
 private void button3_Click_1(object sender, EventArgs e)
 {
     if (a >= 0)
     {
         Consumption a = new Consumption(id, comboBox2.Text, textBox1.Text, textBox3.Text);
         a.Show();
     }
     else
     {
         MessageBox.Show(" select a Machine", "!", MessageBoxButtons.OK, MessageBoxIcon.Error);
     }
 }
Ejemplo n.º 4
0
        private void savemarque_Click(object sender, EventArgs e)
        {
            int    i   = conn.autoinc("accesoire", "ID_ACC");
            string ch1 = "insert into accesoire values('" + i + "','" + wording.Text + "')";

            conn.insertTable(ch1);
            Consumption a = new Consumption(x1, y1, z1, c1);

            a.Show();
            this.Hide();
            a.consVisible();
        }
Ejemplo n.º 5
0
        private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
        {
            Consumption x = new Consumption();

            x.Show();
        }