12345678910111213141516171819202122232425262728293031323334353637383940 |
- 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));
- }
- }
- }
|