using LampInspectionMachine.Views; using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Threading.Tasks; namespace LampInspectionMachine.Core { public class TipService { LoadingView loadingView=new LoadingView(); public TipService() { Tshow(); } public void Tshow() { loadingView.Show(); } public void Tcolse() { loadingView.Dispatcher.BeginInvoke(new Action(() => loadingView.Close())); } public void ShowMsg(string msg) { loadingView.Dispatcher.BeginInvoke(new Action(() => loadingView.Str=msg)); } } }