Example #1
0
        private void supplierButton_Click(object sender, EventArgs e)
        {
            activePanel.Height = supplierButton.Height;
            activePanel.Top    = supplierButton.Top;

            SupplierUiController supplierUiController = new SupplierUiController();

            mainPanel.Controls.Clear();
            supplierUiController.Dock = DockStyle.Fill;
            supplierUiController.BringToFront();
            supplierUiController.Focus();
            mainPanel.Controls.Add(supplierUiController);
        }
 public AddSupplier(SupplierUiController supplierUiController2)
 {
     supplierUiController = supplierUiController2;
     InitializeComponent();
     GenerateSupplierCode();
 }