public static void Init() { if (keepTP == null) { keepTP = new ThreadProperty(50, false, true, scan, null); } }
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(); }
public static void showLoading() { if (tw == null) { return; } if (showTP == null) { showTP = new ThreadProperty(50, true, false, showLoading_, tw); } showTP.start(); }
public static void stopLoading() { if (tw == null) { return; } if (stopTP == null) { stopTP = new ThreadProperty(50, true, false, hidenTip, tw); } stopTP.start(); }
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; }
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; }
public DateTime() { InitializeComponent(); timeTB.Text = "今天是:" + TimeTag.GetTime2(); updateTimeTP = new ThreadProperty(60000, false, false, update, this); }
set => SetValue(ThreadProperty, value);
public CountDownTime() { InitializeComponent(); timeTP = new ThreadProperty(1000, false, false, update, this); Visibility = Visibility.Hidden; }