Beispiel #1
0
        //public void setText(string nodeRef)
        //{
        //    clearText();
        //    List<string> typeList=nodeRef.Split(new char[] { '|' },StringSplitOptions.RemoveEmptyEntries).ToList();
        //    for (int i = 0; i < typeList.Count; i++)
        //    {
        //        string typeS = typeList[i];
        //        List<string> list = typeS.Split(new char[] { ';' }).ToList();
        //        for (int j = 0; j < list.Count; j++)
        //        {
        //            string s = list[j];
        //            if (s.Contains("@"))//法规@章节
        //            {
        //                List<string> sList = s.Split(new string[] { "@" }, StringSplitOptions.RemoveEmptyEntries).ToList();
        //                string lawId = sList[0];
        //                string nodeId = sList[1];
        //                Law law = db.getLawById(lawId);
        //                Node node = db.getNodeById(nodeId);
        //                if (law != null) lls[i,j].Text += law.title;
        //                if (node != null) lls[i,j].Text += node.title;
        //                lls[i, j].Tag = law;
        //            }
        //            else//只有法规
        //            {
        //                string lawId = s;
        //                Law law = db.getLawById(lawId);
        //                if (law != null) lls[i,j].Text += law.title;
        //                lls[i, j].Tag = law;
        //            }
        //        }
        //    }
        //}

        private void openNewLawView(LinkLabel ll)
        {
            LawView lv = new LawView();

            lv.law        = ll.Tag as Law;
            lv.lawId      = (ll.Tag as Law).lawId;
            lv.parentForm = form.parentForm;
            lv.Show();
        }
Beispiel #2
0
 public void setParentForm(LawView _form)
 {
     form = _form;
 }