Ejemplo n.º 1
0
        public int delColorTest([PexAssumeUnderTest] BusinessPlayer target, string data)
        {
            int result = target.delColor(data);

            return(result);
            // TODO: add assertions to method BusinessPlayerTest.delColorTest(BusinessPlayer, String)
        }
Ejemplo n.º 2
0
        private void simpleButton2_Click(object sender, EventArgs e)
        {
            String         input    = colorsBox.Text;
            BusinessPlayer business = new BusinessPlayer(Login.UserName, Login.Password);

            if (MessageBox.Show("Bạn muốn xoá màu '" + input + "' !", "Bạn chắc chứ?", MessageBoxButtons.YesNo) == DialogResult.Yes)
            {
                if (business.delColor(input) > 0)
                {
                    MessageBox.Show("Xoá thành công!");
                    colorsBox.Text = "";
                    colorsBox.Items.Clear();
                    getColor();
                }
                else
                {
                    MessageBox.Show("Xoá thất bại!");
                }
            }
        }