Exemplo n.º 1
0
        public int delMadeInTest([PexAssumeUnderTest] BusinessPlayer target, string data)
        {
            int result = target.delMadeIn(data);

            return(result);
            // TODO: add assertions to method BusinessPlayerTest.delMadeInTest(BusinessPlayer, String)
        }
Exemplo n.º 2
0
        private void simpleButton8_Click(object sender, EventArgs e)
        {
            if (country.Text.Equals(""))
            {
                MessageBox.Show("Vui lòng chọn quốc gia cần xoá!");
                return;
            }

            if (MessageBox.Show("Bạn muốn xoá?", "Bạn chắc chứ?", MessageBoxButtons.YesNo) == DialogResult.No)
            {
                return;
            }

            if (business.delMadeIn(country.Text) > 0)
            {
                MessageBox.Show("Xoá thành công!");
                country.Text = "";
                loadDataCountry();
            }
            else
            {
                MessageBox.Show("Không tồn tại!");
            }
        }