コード例 #1
0
 public BacnetLogRecord(BacnetTrendLogValueTypes type, object value, DateTime stamp, uint status)
 {
     this.type   = type;
     timestamp   = stamp;
     statusFlags = BacnetBitString.ConvertFromInt(status);
     any_value   = null;
     Value       = value;
 }
コード例 #2
0
        private void AddToList(int sequence_no, DateTime dt, BacnetTrendLogValueTypes type, object value, uint status)
        {
            ListViewItem itm = new ListViewItem();

            itm.Text = sequence_no.ToString();
            itm.SubItems.Add(dt.ToString());
            itm.SubItems.Add(Thread.CurrentThread.CurrentCulture.TextInfo.ToTitleCase(type.ToString().ToLower().Substring(8)));
            itm.SubItems.Add(value != null ? value.ToString() : "NULL");
            itm.SubItems.Add(status.ToString());
            Invoke((MethodInvoker) delegate { m_list.Items.Add(itm); });
        }