Exemplo n.º 1
0
        private void btnAddOrder_Click(object sender, EventArgs e)
        {
            var department = GetCurrentDepartment();

            if (department == null)
            {
                return;
            }
            var form = new ASSOrder(-1);

            form.ShowDialog();
            RefreshOrderList();
        }
Exemplo n.º 2
0
        private void btnClone_Click(object sender, EventArgs e)
        {
            var department = GetCurrentDepartment();

            if (department == null)
            {
                return;
            }
            if (dglOrder.CurrentRow.Index >= 0)
            {
                var form = new ASSOrder(dglOrder.CurrentRow.Index);
                form.ShowDialog();
                RefreshOrderList();
            }
        }