Example #1
0
        private void btn_back_Click(object sender, EventArgs e)
        {
            var myItems = items();

            _main.panel_body.Controls.Clear();
            uc_item_receipt _item_receipt = new uc_item_receipt(_main, myItems, _receipt_model, _serial_list);

            _main.panel_body.Controls.Add(_item_receipt);
            _item_receipt.Show();
        }
Example #2
0
        private void btn_next_Click(object sender, EventArgs e)
        {
            try
            {
                var items = InitializeItem();
                _main.panel_body.Controls.Clear();
                uc_item_receipt item_receipt;
                switch (_receipt_model == null)
                {
                case true:
                    item_receipt = new uc_item_receipt(_main, items);
                    _main.panel_body.Controls.Add(item_receipt);
                    item_receipt.Show();
                    break;

                case false:
                    switch (_serial_list == null)
                    {
                    case true:
                        item_receipt = new uc_item_receipt(_main, items, _receipt_model);
                        _main.panel_body.Controls.Add(item_receipt);
                        item_receipt.Show();
                        break;

                    case false:
                        item_receipt = new uc_item_receipt(_main, items, _receipt_model, _serial_list);
                        _main.panel_body.Controls.Add(item_receipt);
                        item_receipt.Show();
                        break;

                    default:
                        //
                        break;
                    }
                    break;

                default:
                    //
                    break;
                }
            }
            catch (Exception ex)
            {
                MessageBox.Show(ex.Message);
            }
        }