Exemple #1
0
        private void OrderEditBtn_Click(object sender, EventArgs e)
        {
            OrdersAddForm a = new OrdersAddForm("Изменение поставки", OrderDGV.CurrentRow.Cells[0].Value.ToString(),
                                                OrderDGV.CurrentRow.Cells[1].Value.ToString(),
                                                OrderDGV.CurrentRow.Cells[2].Value.ToString(),
                                                Convert.ToDateTime(OrderDGV.CurrentRow.Cells[3].Value.ToString()), true, Convert.ToInt32(OrderDGV.CurrentRow.Cells[4].Value.ToString()));

            a.ShowDialog();
        }
Exemple #2
0
        private void pictureBox1_Click(object sender, EventArgs e)
        {
            OrdersAddForm a = new OrdersAddForm("Добавление новой поставки", "", "", "", DateTime.Now, false, 0);

            a.ShowDialog();
        }