对比新文件 |
| | |
| | | 锘縰sing System; |
| | | using System.Collections.Generic; |
| | | using System.Linq; |
| | | using System.Text; |
| | | using System.Threading.Tasks; |
| | | using System.Windows; |
| | | |
| | | namespace DataLoader.Model |
| | | { |
| | | public class NtstWeb |
| | | { |
| | | public static string ObjName = "ntst"; |
| | | |
| | | public LoginWin owner; |
| | | |
| | | public NtstWeb() |
| | | { |
| | | } |
| | | |
| | | public void setLogin(int uid, string uname, string token) |
| | | { |
| | | if (uid > 0 && !string.IsNullOrEmpty(token)) |
| | | { |
| | | CommonProp.UserId = uid; |
| | | CommonProp.Uname = uname; |
| | | CommonProp.Token = token; |
| | | |
| | | owner.Dispatcher.Invoke(new Action(delegate |
| | | { |
| | | CommonProp.Owner.SetLoginInfo(); |
| | | })); |
| | | } |
| | | } |
| | | } |
| | | } |