public void method_4(GInterface0 ginterface0_0, bool bool_0) { DateTime now = DateTime.Now; TreeHeaderNode treeHeaderNode = TreeNode.smethod_0(ginterface0_0, this.CommandById[(int)ginterface0_0.Id], now, bool_0); if (bool_0) { CommandViewModel commandViewModel = this.CommandById[(int)ginterface0_0.Id]; int num = commandViewModel.CountReceived; commandViewModel.CountReceived = num + 1; } else { CommandViewModel commandViewModel2 = this.CommandById[(int)ginterface0_0.Id]; int num = commandViewModel2.CountSent; commandViewModel2.CountSent = num + 1; } if (this.method_3(treeHeaderNode)) { object @lock = this._lock; lock (@lock) { this.Filtered.Add(treeHeaderNode); } if (this.JumpToLast) { base.Dispatcher.BeginInvoke(new Action(this.method_12), Array.Empty <object>()); } } }
public bool method_3(TreeHeaderNode treeHeaderNode_0) { return((this.FilterReceived == null || this.FilterReceived.Value == treeHeaderNode_0.Received) && treeHeaderNode_0.Enabled); }