示例#1
0
        public bool checkexistidTest([PexAssumeUnderTest] MappingBLL target, string sts)
        {
            bool result = target.checkexistid(sts);

            return(result);
            // TODO: add assertions to method MappingBLLTest.checkexistidTest(MappingBLL, String)
        }
示例#2
0
        private void btnSave_Click(object sender, EventArgs e)
        {
            string sts = lsSyllabusOut.GetItemValue(index).ToString();

            List <string> lzs = new List <string>();

            foreach (ProgramOutcome item in lsProgramOut.CheckedItems)
            {
                lzs.Add(item.id);
            }
            string prostring = map.createString(lzs);

            if (map.checkexistid(sts) == true)
            {
                map.ChangePro(sts, prostring);
            }
            else
            {
                map.AddMap(idsy, sts, prostring);
            }
            MessageBox.Show("Lưu Liên Kết Thành Công");
        }