Ejemplo n.º 1
0
        private void btAdd_Click(object sender, EventArgs e)
        {
            string      factQuery;
            FormRepairs fc = new FormRepairs();

            factQuery = "(`id_repair`, `name`, `category`, `cost`, `position_position`) VALUES('" +
                        textBox1.Text + "', '" + textBox2.Text + "', '" + cbCategory.Text + "', '" + textBox4.Text + "', '" + cbPosition.Text + "');";
            db.Add("repairs", factQuery, fc.dataGridView1);
            this.Hide();
        }
Ejemplo n.º 2
0
        private void btRepairs_Click(object sender, EventArgs e)
        {
            FormRepairs fr = new FormRepairs();

            fr.ShowDialog();
        }