Пример #1
0
        internal override void GetTable(IDefinition def)
        {
            Discovery        discovery = Messenger.NextDiscovery;
            ReportMessage    report    = discovery.GetResponse(Timeout, Agent);
            IList <Variable> list      = new List <Variable>();
            int rows = Messenger.BulkWalk(
                VersionCode.V3,
                Agent,
                new OctetString(UserName),
                new ObjectIdentifier(def.GetNumericalForm()),
                list,
                Timeout,
                10,
                WalkMode.WithinSubtree,
                _privacy,
                report);

            // How many rows are there?
            if (rows > 0)
            {
                FormTable newTable = new FormTable(def);
                newTable.SetRows(rows);
                newTable.PopulateGrid(list);
                newTable.Show();
            }
            else
            {
                foreach (Variable t in list)
                {
                    Logger.Info(t.ToString());
                }
            }
        }
 internal override void GetTable(IDefinition def)
 {
     IList<Variable> list = new List<Variable>();
     int rows = Messenger.Walk(VersionCode, Agent, GetCommunity, new ObjectIdentifier(def.GetNumericalForm()), list, Timeout, WalkMode.WithinSubtree);
     
     // How many rows are there?
     if (rows > 0)
     {
         FormTable newTable = new FormTable(def);
         newTable.SetRows(rows);
         newTable.PopulateGrid(list);
         newTable.Show();
     }
     else
     {
         foreach (Variable t in list)
         {
             Logger.Info(t.ToString());
         }
     }
 }
Пример #3
0
        internal override void GetTable(IDefinition def)
        {
            IList <Variable> list = new List <Variable>();
            int rows = Messenger.Walk(VersionCode, Agent, GetCommunity, new ObjectIdentifier(def.GetNumericalForm()), list, Timeout, WalkMode.WithinSubtree);

            // How many rows are there?
            if (rows > 0)
            {
                FormTable newTable = new FormTable(def);
                newTable.SetRows(rows);
                newTable.PopulateGrid(list);
                newTable.Show();
            }
            else
            {
                foreach (Variable t in list)
                {
                    Logger.Info(t.ToString());
                }
            }
        }
        internal override void GetTable(IDefinition def)
        {
            Discovery discovery = Messenger.NextDiscovery;
            ReportMessage report = discovery.GetResponse(Timeout, Agent);
            IList<Variable> list = new List<Variable>();
            int rows = Messenger.BulkWalk(
                VersionCode.V3,
                Agent, 
                new OctetString(UserName),
                new ObjectIdentifier(def.GetNumericalForm()), 
                list, 
                Timeout, 
                10,
                WalkMode.WithinSubtree, 
                _privacy, 
                report);

            // How many rows are there?
            if (rows > 0)
            {
                FormTable newTable = new FormTable(def);
                newTable.SetRows(rows);
                newTable.PopulateGrid(list);
                newTable.Show();
            }
            else
            {
                foreach (Variable t in list)
                {
                    Logger.Info(t.ToString());
                }
            }
        }