예제 #1
0
        internal void NewTable(Table Table, MessageEventArgs e)
        {
            QueryTable Table2;

            lock (this.result)
            {
                if (this.currentSection != null)
                {
                    Table2 = new QueryTable(this.currentSection, Table);

                    this.currentSection.Add(Table2);
                }
                else
                {
                    Table2 = new QueryTable(null, Table);

                    this.result.Add(Table2);
                    this.resultFixed = null;
                }
            }

            lock (this.tables)
            {
                this.tables[Table.TableId] = Table2;
            }

            this.Invoke(this.TableAdded, Table2, e);
        }
예제 #2
0
 private void Invoke(NodeQueryTableUpdatedEventHandler h, QueryTable Table, Record[] NewRecords, MessageEventArgs e)
 {
     try
     {
         h?.Invoke(this, new NodeQueryTableUpdatedEventArgs(Table, this, NewRecords, e));
     }
     catch (Exception ex)
     {
         Log.Critical(ex);
     }
 }
예제 #3
0
 private void Invoke(NodeQueryTableEventHandler Callback, QueryTable Table, MessageEventArgs e)
 {
     try
     {
         Callback?.Invoke(this, new NodeQueryTableEventArgs(Table, this, e));
     }
     catch (Exception ex)
     {
         Log.Critical(ex);
     }
 }
예제 #4
0
        internal void NewTable(Table Table, MessageEventArgs e)
        {
            QueryTable Table2;

            lock (this.result)
            {
                if (!(this.currentSection is null))
                {
                    Table2 = new QueryTable(this.currentSection, Table);

                    this.currentSection.Add(Table2);
                }