public Form3() { InitializeComponent(); MListControler listCtrl1 = new MListControler(this.listBox1); IItem itemPatientID = listCtrl1.AddItem(new MListItem("PatientID")); IItem itemPatientName = listCtrl1.AddItem(new MListItem("PatientName")); MListControler listCtrl2 = new MListControler(this.listBox2); IItem itemPID = listCtrl2.AddItem(new MListItem("PID")); IItem itemPName = listCtrl2.AddItem(new MListItem("PName")); MListControler listCtrl3 = new MListControler(this.listBox3); IItem item0020 = listCtrl3.AddItem(new MListItem("(0010,0020)")); IItem item0010 = listCtrl3.AddItem(new MListItem("(0010,0010)")); //listCtrl1.Items[0].MapTarget = listCtrl2.Items[1]; //listCtrl2.Items[1].MapTarget = listCtrl3.Items[0]; _panelCtrl = new MPanelControler(this.panel1); _panelCtrl.AddList(listCtrl1); _panelCtrl.AddList(listCtrl2); _panelCtrl.AddList(listCtrl3); _panelCtrl.RelationList.Add(new MRelation(itemPatientID, itemPName)); _panelCtrl.RelationList.Add(new MRelation(itemPName, new IItem[] { item0010, item0020 })); listCtrl1.RefreshList(); listCtrl2.RefreshList(); listCtrl3.RefreshList(); _panelCtrl.Redraw(); }
public Form4() { InitializeComponent(); MListForm frm1 = new MListForm(); frm1.Text = "RIS Fields"; IItem iPatientID = frm1.AddItem(new MListItem("PatientID")); IItem iPatientName = frm1.AddItem(new MListItem("PatientName")); MListForm frm2 = new MListForm(); frm2.Text = "Broker Fields"; IItem iPID = frm2.AddItem(new MListItem("PID")); IItem iPN = frm2.AddItem(new MListItem("PN")); MListForm frm3 = new MListForm(); frm3.Text = "DICOM Fields"; IItem dPN = frm3.AddItem(new MListItem("(0010,0010)")); IItem dPID = frm3.AddItem(new MListItem("(0010,0020)")); IItem dOPN = frm3.AddItem(new MListItem("(0010,0030)")); panelCtrl = new MPanelControler(this.panel1); panelCtrl.RelationList.Add(new MRelation(iPatientID, iPID)); panelCtrl.RelationList.Add(new MRelation(iPatientName, iPN)); panelCtrl.RelationList.Add(new MRelation(iPID, dPID)); panelCtrl.RelationList.Add(new MRelation(iPN, dOPN)); panelCtrl.RelationList.Add(new MRelation(iPN, dPN)); panelCtrl.AddList(frm1); panelCtrl.AddList(frm2); panelCtrl.AddList(frm3); //panelCtrl.Redraw(); panelCtrl.Reposition(); }