| | |
| | | using DevExpress.XtraEditors; |
| | | using HStation.WinFrmUI; |
| | | using System; |
| | | using System.Collections.Generic; |
| | | using System.ComponentModel; |
| | | using System.Data; |
| | | using System.Drawing; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows.Forms; |
| | | using Yw; |
| | | using Yw; |
| | | using Yw.WinFrmUI; |
| | | |
| | | namespace PBS.Desktop |
| | |
| | | /// </summary> |
| | | public event Action<Yw.Dto.UserLoginOutput> LoginEndEvet; |
| | | |
| | | |
| | | private bool _isInitialized = false;//初始化 |
| | | private const string _software = "HStation_XHS_DESKTOP";//软件编码 |
| | | private const string _software = "YW_PBS_DESKTOP";//软件编码 |
| | | |
| | | /// <summary> |
| | | /// 初始化 |
| | | /// </summary> |
| | | /// </summary> |
| | | public void Initial() |
| | | { |
| | | if (_isInitialized) |
| | |
| | | { |
| | | } |
| | | } |
| | | |
| | | |
| | | //取消登录 |
| | | private void btnCancel_Click(object sender, EventArgs e) |
| | |
| | | } |
| | | } |
| | | |
| | | |
| | | //验证 |
| | | private bool Valid() |
| | | { |
| | |
| | | } |
| | | return true; |
| | | } |
| | | |
| | | |
| | | //登录 |
| | | private async void Login() |
| | |
| | | settings.Save(); |
| | | this.LoginEndEvet?.Invoke(result); |
| | | } |
| | | |
| | | } |
| | | } |
| | | } |