Esempio n. 1
0
        private void button4_Click(object sender, EventArgs e)
        {
            bool temp = true;

            foreach (Form form in list)
            {
                if (form.GetType().ToString() == "PharmacyManagement.InventoryManagement.SearchProduct")
                {
                    form.Select();
                    temp = false;
                }
            }
            if (temp)
            {
                SearchProduct sP = new SearchProduct(user_name);
                opened.Add(sP);
                sP.Show();
            }
        }
        private void searchItemBtn_Click(object sender, EventArgs e)
        {
            bool temp = true;

            foreach (Form form in list)
            {
                if (form.GetType().ToString() == "PharmacyManagement.InventoryManagement.SearchProduct")
                {
                    form.Select();
                    temp = false;
                }
            }
            if (temp)
            {
                InventoryManagement.SearchProduct pUI = new InventoryManagement.SearchProduct(User.CurrentUserName);
                opened.Add(pUI);
                pUI.Show();
            }
        }