Beispiel #1
0
 private void updateFields(AFPDataLine dl)
 {
     lblAFPFlag.Text   = dl.flags;
     lblAFPLen1.Text   = dl.length.ToString();
     lblAFPSFI1.Text   = dl.SFIdentifier[0];
     lblAFPSFI2.Text   = dl.SFIdentifier[1];
     lblAFPSFI3.Text   = dl.SFIdentifier[2];
     lblAFPPre.Text    = dl.prefix;
     lblAFPRes1.Text   = dl.reserved[0];
     lblAFPRes2.Text   = dl.reserved[1];
     lblReadSFI.Text   = dl.SFIString;
     lblReference.Text = dl.SFIReference;
     txtSFDesc.Text    = dl.SFIDesc;
     txtData.Text      = ConvertDataArraytoString(dl.data);
 }
Beispiel #2
0
 public AFPNode(AFPDataLine line)
 {
     // create single line with no children
     Data = line;
     Name = line.SFIString;
 }
Beispiel #3
0
        private void treeView1_AfterSelect(object sender, TreeViewEventArgs e)
        {
            AFPDataLine dl = (AFPDataLine)treeView1.SelectedNode.Tag;

            updateFields(dl);
        }
Beispiel #4
0
        private void lstLines_SelectedIndexChanged(object sender, EventArgs e)
        {
            AFPDataLine dl = (AFPDataLine)lstLines.SelectedItem;

            updateFields(dl);
        }