Ejemplo n.º 1
0
        private void btnSearch_Click(object sender, EventArgs e)
        {
            switch (main.TabControl.SelectedTab.Text)
            {
            case "Account":
                Search.Account(main);
                break;

            case "Bill":
                Search.Bill(main);
                break;

            case "Customer":
                Search.Customer(main);
                break;

            case "Employee":
                Search.Employee(main);
                break;

            case "Product":
                Search.Product(main);
                break;

            case "Request":
                Search.Request(main);
                break;

            case "Statistic":
                Search.Statistic(main);
                break;
            }
        }