public static void Init()
 {
     if (keepTP == null)
     {
         keepTP = new ThreadProperty(50, false, true, scan, null);
     }
 }
Esempio n. 2
0
 public ThreadColumn(ThreadProperty thread)
 {
     this.thread = thread;
     ImageGetter = GetData;
     Name = $"THREAD_{thread.ManagedId} - {thread.Name}";
     Text = $"{thread.ManagedId} - {thread.Name}";
     ToolTipText = Text;
     TextAlign = HorizontalAlignment.Center;
 }
Esempio n. 3
0
 public ThreadColumn(ThreadProperty thread)
 {
     this.thread = thread;
     ImageGetter = GetData;
     Name        = $"THREAD_{thread.ManagedId} - {thread.Name}";
     Text        = $"{thread.ManagedId} - {thread.Name}";
     ToolTipText = Text;
     TextAlign   = HorizontalAlignment.Center;
 }
        public I_GetSSCar_old()
        {
            InitializeComponent();

            if (checkTP == null)
            {
                checkTP = new ThreadProperty(200, false, false, checkHasCarIn, null);
            }
            checkTP.start();
        }
Esempio n. 5
0
 public static void showLoading()
 {
     if (tw == null)
     {
         return;
     }
     if (showTP == null)
     {
         showTP = new ThreadProperty(50, true, false, showLoading_, tw);
     }
     showTP.start();
 }
Esempio n. 6
0
 public static void stopLoading()
 {
     if (tw == null)
     {
         return;
     }
     if (stopTP == null)
     {
         stopTP = new ThreadProperty(50, true, false, hidenTip, tw);
     }
     stopTP.start();
 }
Esempio n. 7
0
        private TipWin()
        {
            InitializeComponent();
            // 设置全屏
            this.WindowState = System.Windows.WindowState.Normal;
            this.WindowStyle = System.Windows.WindowStyle.None;
            this.ResizeMode  = System.Windows.ResizeMode.NoResize;
            //this.Topmost = true;
            this.Left   = 0.0;
            this.Top    = 0.0;
            this.Width  = System.Windows.SystemParameters.PrimaryScreenWidth;
            this.Height = System.Windows.SystemParameters.PrimaryScreenHeight;

            ShowInTaskbar = false;
            tp            = new ThreadProperty(100, true, false, hidenTip, this);
            uiTp          = new ThreadProperty(50, true, false, show, this);
            tb            = tipValue;
        }
Esempio n. 8
0
        public static void readCar(Action nextStep, UIElement ui)
        {
            if (photoSavePath2 == null)
            {
                photoSavePath2 = "D:";
                photoSavePath  = "D:\\" + "zp.bmp";
            }

            name      = null;
            persionid = null;
            error     = null;
            startTag  = CD.timeTag.getTag();
            readTime  = 0;
            readCarThread.resetTime(200);
            readCarThread.start();

            if (uiThread == null)
            {
                uiThread = new ThreadProperty(50, true, false, nextStep, ui);
            }
            uiThread.srcUI  = ui;
            uiThread.action = nextStep;
        }
Esempio n. 9
0
 public DateTime()
 {
     InitializeComponent();
     timeTB.Text  = "今天是:" + TimeTag.GetTime2();
     updateTimeTP = new ThreadProperty(60000, false, false, update, this);
 }
 set => SetValue(ThreadProperty, value);
Esempio n. 11
0
 public CountDownTime()
 {
     InitializeComponent();
     timeTP     = new ThreadProperty(1000, false, false, update, this);
     Visibility = Visibility.Hidden;
 }