Exemplo n.º 1
0
        private void dataGridView1_CelltClick(object sender, DataGridViewCellEventArgs e)
        {
            string id = dataGridView1.Rows[e.RowIndex].Cells[0].Value.ToString();

            if (e.ColumnIndex == 7)
            {
                QuotationAdd da = new QuotationAdd(this);
                da.ID = id;
                da.Show();
            }
            if (e.ColumnIndex == 6)
            {
                string[] data = new string[4];
                data[0] = id;
                PrintView rw = new PrintView("print_quotation", data);
                rw.Show();
            }
        }
Exemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            QuotationAdd form = new QuotationAdd(this);

            form.Show();
        }