yibo 8 years ago
parent
commit
339d9ef546
1 changed files with 4 additions and 2 deletions
  1. +4
    -2
      ButcherManageClient/Login.cs

+ 4
- 2
ButcherManageClient/Login.cs View File

@ -66,7 +66,7 @@ namespace ButcherManageClient
ButcherAppContext.Context.UserConfig.Connection = false; ButcherAppContext.Context.UserConfig.Connection = false;
} }
var form = AfterLoginUtil.CreateForm(ButcherAppContext.Context.UserConfig.Role); var form = AfterLoginUtil.CreateForm(ButcherAppContext.Context.UserConfig.Role);
// var form = AfterLoginUtil.CreateForm("配货员");
// var form = AfterLoginUtil.CreateForm("配货员");
if (form == null) if (form == null)
throw new Exception("权限不符"); throw new Exception("权限不符");
form.FormClosing += delegate { SubFormClosing(); }; form.FormClosing += delegate { SubFormClosing(); };
@ -141,7 +141,9 @@ namespace ButcherManageClient
private void Login_Load(object sender, EventArgs e) private void Login_Load(object sender, EventArgs e)
{ {
//AutoUpdate();
#if !DEBUG
AutoUpdate();
#endif
} }
} }
} }

Loading…
Cancel
Save