用户列表页面完成 订单列表页面开始 10%
This commit is contained in:
1 parent
25cdf642bf
commit
edc7913637
52 files changed
+2032
-365
No files matched your search
@@ -32,7 +32,7 @@ namespace _29WxOrderWpf.LoginWindows
|
||||
{
|
||||
public static ConcurrentList<UserParam> UserParamList { get; set; } = new ConcurrentList<UserParam>();
|
||||
|
||||
bool isLogin = false;
|
||||
public bool IsLogin { get; set; } = false;
|
||||
|
||||
string[] argsuser;
|
||||
|
||||
@@ -43,6 +43,7 @@ namespace _29WxOrderWpf.LoginWindows
|
||||
if (!string.IsNullOrEmpty(BaseClass.ProgramName))
|
||||
{
|
||||
lblAppName.Content = BaseClass.ProgramName;
|
||||
MainWindow.Instance.lblAppName.Content = lblAppName.Content;
|
||||
}
|
||||
|
||||
this.Title = "用户登录";
|
||||
@@ -51,6 +52,10 @@ namespace _29WxOrderWpf.LoginWindows
|
||||
|
||||
private void loginWindow_Loaded(object sender, RoutedEventArgs e)
|
||||
{
|
||||
#if DEBUG
|
||||
chkDebug.Visibility = Visibility.Visible;
|
||||
#endif
|
||||
|
||||
GetUserList();
|
||||
foreach (var user in UserParamList)
|
||||
{
|
||||
@@ -83,7 +88,7 @@ namespace _29WxOrderWpf.LoginWindows
|
||||
//else
|
||||
// e.Cancel = true;
|
||||
|
||||
if (!isLogin)
|
||||
if (!IsLogin)
|
||||
{
|
||||
if (BaseMsgWindow.ShowConfirm(this, "是否关闭软件?\r\n必须登录账户才能使用,无账户请先注册一个。", "请先登录或者注册").DialogResult == true)
|
||||
Process.GetCurrentProcess().Kill();
|
||||
@@ -136,7 +141,7 @@ namespace _29WxOrderWpf.LoginWindows
|
||||
});
|
||||
SaveUserList();
|
||||
}
|
||||
this.isLogin = true;
|
||||
this.IsLogin = true;
|
||||
this.Close();
|
||||
}
|
||||
|
||||
@@ -193,5 +198,17 @@ namespace _29WxOrderWpf.LoginWindows
|
||||
{
|
||||
BaseClass.Remember = chkRemember.IsChecked.ParseToBool();
|
||||
}
|
||||
|
||||
private void chkDebug_Checked(object sender, RoutedEventArgs e)
|
||||
{
|
||||
if (chkDebug.IsChecked == true)
|
||||
{
|
||||
BaseClass.LoginApiUrl = BaseClass.DebugUrl;
|
||||
}
|
||||
else
|
||||
{
|
||||
BaseClass.LoginApiUrl = BaseClass.ServerUrl;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user