Tema: Re: C# helpo
Autorius: toms
Data: 2015-12-16 12:30:23
Nemanau kad kam idomu, o ir mano sprendimas turbut kreivas, bet rezultata 
pasiekiau.


..................
 if (ti.BlockType == PLCBlockType.DB)
                            {
                                listBox1.Items.Add(ti.Name);
                                var a = ti.ExportToString();

                                Block tmp = bl.GetBlock(ti.Name);
                                IDataBlock idb = (IDataBlock)tmp;
                                ListDB((IDataRow)idb.Structure);

                            }
.....................

        private void ListDB(IDataRow ir)
        {
            listBox1.Items.Add(
                                    "FullName: " + ir.FullName +
                                    "   byte: " + 
ir.BlockAddress.ByteAddress +
                                    "   bit: " + ir.BlockAddress.ByteAddress 
+
                                    "   datatype: "+ir.DataType +
                                    "   comment: "+ir.Comment);
            foreach (IDataRow idr in ir.Children)
            {
                ListDB(idr);
            }
        }


"ManTas" <mantis@abc.abc> wrote in message 
news:n33mmr$tt$1@trimpas.omnitel.net...
> atgaivinkite prasom, t.y. spendimu dalinames
>