Ejemplo n.º 1
0
        private void CollectionViewSource_Filter(object sender, FilterEventArgs e)
        {
            C_LogMsg t = e.Item as C_LogMsg;

            if (t != null)
            // If filter is turned on, filter completed items.
            {
                if (
                    (this.cbLogShowSpi.IsChecked == false && t.src == e_LogMsgSource.spi) ||
                    (this.cbLogShowGui.IsChecked == false && t.src == e_LogMsgSource.gui) ||
                    (this.cbLogShowMot.IsChecked == false && t.src == e_LogMsgSource.mot)
                    )
                {
                    e.Accepted = false;
                }
                else
                {
                    e.Accepted = true;
                }
            }
        }
Ejemplo n.º 2
0
 public void LOG(C_LogMsg _msg)
 {
     itemList.Add(_msg);
 }