Пример #1
0
        private void btnAddOrder_Click(object sender, EventArgs e)
        {
            var department = GetCurrentDepartment();

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

            form.ShowDialog();
            RefreshOrderList();
        }
Пример #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 SSPOrder(dglOrder.CurrentRow.Index);
                form.ShowDialog();
                RefreshOrderList();
            }
        }