Beispiel #1
0
        private void buttonsSettings_Click(object sender, EventArgs e)
        {
            if (!transactOnGoing())
            {
                switch (((Button)sender).Tag.ToString())
                {
                case "TransactionHistory":
                    frmTransactionHistory frmTransactionHistory = new frmTransactionHistory();
                    frmTransactionHistory.ShowDialog();
                    break;

                case "UsersManager":
                    frmUsersManager frmUsersManager = new frmUsersManager();
                    frmUsersManager.ShowDialog();
                    break;

                case "ProductsManager":
                    frmProductsManager frmProductsManager = new frmProductsManager();
                    frmProductsManager.ShowDialog();
                    break;

                default:
                    break;
                }
            }
            else
            {
            }

            initializeFlavors();
            initializeButtons();
            initializeLabels();
            formResize();
        }
Beispiel #2
0
        private void btnManProds_Click(object sender, EventArgs e)
        {
            frmProductsManager frmProductsManager = new frmProductsManager();

            frmProductsManager.ShowDialog();
        }