跳到主要内容

github/tai

公开

Tai · Windows 软件与网站使用时长统计。上游 Planshit/Tai 的源码镜像,非灵栈原创;MIT 许可。来源:https://github.com/Planshit/Tai 。本次为手动同步,暂不提供安装包。

浏览文件

UIServicer.cs

34 行 · 846 B历史下载
1using System;
2using System.Collections.Generic;
3using System.Linq;
4using System.Text;
5using System.Threading.Tasks;
6using UI.Controls.Window;
7
8namespace UI.Servicers
9{
10 public class UIServicer : IUIServicer
11 {
12 private DefaultWindow _window;
13 public UIServicer()
14 {
15
16 }
17
18 public void InitWindow(DefaultWindow window_)
19 {
20 _window = window_;
21 }
22
23 public Task<bool> ShowConfirmDialogAsync(string title_, string message_)
24 {
25 return _window.ShowConfirmDialogAsync(title_, message_);
26 }
27
28 public Task<string> ShowInputModalAsync(string title_, string placeholder_, string value_ = null, Func<string, bool> validFnc_ = null)
29 {
30 return _window.ShowInputModalAsync(title_, placeholder_, value_, validFnc_);
31
32 }
33 }
34}