Example #1
0
        private void btnMain_Click(object sender, EventArgs e)
        {
            UcOrder userControlOrder = new UcOrder(callPanel);

            callPanel.Controls.Add(userControlOrder);
            this.Hide();
        }
Example #2
0
        public UcOrder(Panel callPanel)
        {
            InitializeComponent();

            this.Load += printProductList_Load;
            ucOrder    = this;

            this.callPanel = callPanel;
        }