Beispiel #1
0
 public void Update_collection(typefilter t)
 {
     lock (threadLock)
     {
         _update.UPDATE_FILTER(t, myLISTbase, myLISTfull);
         Thread.Sleep(300);
         RaisePropertyChanged("mycol");///update LIST!!
         RaisePropertyChanged("numberCANALS");
         RaisePropertyChanged("CH1m");
     }
 }
Beispiel #2
0
        public void UPDATE_FILTER(typefilter type, List <ParamCanal> p1, List <ParamCanal> p2)
        {
            myLISTbase    = p1;
            myLISTfullNEW = p2;

            if (Model.data.f1 == null)
            {
                Model.data.f1 = "";
            }
            if (Model.data.f2 == null)
            {
                Model.data.f2 = "";
            }
            if (Model.data.f3 == null)
            {
                Model.data.f3 = "";
            }
            if (Model.data.f4 == null)
            {
                Model.data.f4 = "";
            }

            if (myLISTfullNEW != null && myLISTbase != null)
            {
                if (type == typefilter.last)
                {
                    type = last;
                }
                if (type == typefilter.normal)
                {
                    UPD_normal();
                }
                if (type == typefilter.best)
                {
                    UPD_best();
                }
                if (type == typefilter.dublicate)
                {
                    UPD_dub();
                }

                last = type;
            }
        }