コード例 #1
0
 public void ChangeActive(NodeAddress na)
 {
     if (dataGridViewAccounting.InvokeRequired)
     {
         DelegateTable d = new DelegateTable(ChangeActive);
         this.Invoke(d, new object[] { na });
     }
     else
     {
         labelTable.Text = na.GetLabelText();
         if (na.NodeType == NodeType.Account)
         {
             na = na.GetParent();
         }
         dataGridViewAccounting.ShowElement(Data.GetElement(na), Data.Map.GetElement(na));
     }
 }
コード例 #2
0
ファイル: CrtStream.cs プロジェクト: c6burns/catbird
        public CrtStreamWrapper(Stream stream)
        {
            BodyStream = stream;
            var delegates = new DelegateTable();

            /*
             * We pass the delegate table by value to C, so we indicate a null stream with a nulled table.
             */
            if (stream != null)
            {
                delegates.ReadCallback = ReadInternal;
                delegates.SeekCallback = SeekInternal;
            }
            else
            {
                delegates.ReadCallback = null;
                delegates.SeekCallback = null;
            }

            Delegates = delegates;
        }