コード例 #1
0
ファイル: TransactionVC.cs プロジェクト: RALEx147/NEOSx
        partial void button(NSObject sender)
        {
            RemoteNode[] nodes      = MainClass.LocalNode.GetRemoteNodes();
            var          DataSource = new PortTableDataSource();

            for (int i = 0; i < nodes.Length; i++)
            {
                DataSource.ports.Add(new PortTable(nodes[i].RemoteEndpoint.Address.ToString(), nodes[i].RemoteEndpoint.Port.ToString(), (nodes[i].ListenerEndpoint?.Port ?? 0).ToString(), (nodes[i].Version?.StartHeight ?? 0).ToString()));
            }

            table.DataSource = DataSource;
            table.Delegate   = new PortTableDelegate(DataSource);

            table.ReloadData();
            height.StringValue = Blockchain.Default.HeaderHeight.ToString();
        }
コード例 #2
0
ファイル: PortTableDelagate.cs プロジェクト: RALEx147/NEOSx
 public PortTableDelegate(PortTableDataSource datasource)
 {
     this.DataSource = datasource;
 }