コード例 #1
0
ファイル: MappingBLLTest.cs プロジェクト: mintaz/Demo-SEP
        public List <Mapping> listmapTest([PexAssumeUnderTest] MappingBLL target, string idS)
        {
            List <Mapping> result = target.listmap(idS);

            return(result);
            // TODO: add assertions to method MappingBLLTest.listmapTest(MappingBLL, String)
        }
コード例 #2
0
        private void GUI_Syllabus_MethodMap_Dialog_Load(object sender, EventArgs e)
        {
            if (p.getLock(idp) == true)
            {
                rtsys.ReadOnly       = true;
                rtpro.ReadOnly       = true;
                rtmethod.ReadOnly    = true;
                txtpart1.ReadOnly    = true;
                txtpart2.ReadOnly    = true;
                txtpart3.ReadOnly    = true;
                txtpercent1.ReadOnly = true;
                txtpercent2.ReadOnly = true;
                txtpercent3.ReadOnly = true;
                txtdesity.ReadOnly   = true;
                txtcount.ReadOnly    = true;
                btnSave.Enabled      = false;
            }
            rtsys.Text       = map.singlemap(idmap).Single().SyllabusOutcome;
            rtpro.Text       = map.singlemap(idmap).Single().ProgramOutcome;
            rtmethod.Text    = map.singlemap(idmap).Single().Methods;
            txtpart1.Text    = map.singlemap(idmap).Single().FirstPart;
            txtpart2.Text    = map.singlemap(idmap).Single().SecondPart;
            txtpart3.Text    = map.singlemap(idmap).Single().ThirdPart;
            txtpercent1.Text = map.singlemap(idmap).Single().FirstPercent.ToString();
            txtpercent2.Text = map.singlemap(idmap).Single().FirstPercent.ToString();
            txtpercent3.Text = map.singlemap(idmap).Single().FirstPercent.ToString();
            txtdesity.Text   = map.singlemap(idmap).Single().desity.ToString();
            int count = 100;

            try
            {
                foreach (Mapping item in map.listmap(ids))
                {
                    count -= int.Parse(item.desity.Value.ToString());
                }
                ;
            }catch
            {
                count = 100;
            }
            txtcount.Text     = count.ToString() + "%";
            txtcount.ReadOnly = true;
            rtsys.ReadOnly    = true;
            rtpro.ReadOnly    = true;
        }
コード例 #3
0
 void loadata()
 {
     gcMethodMap.DataSource = map.listmap(idS);
 }