/// <summary> /// 用户管理 /// </summary> /// <param name="sender"></param> /// <param name="e"></param> private void ButtonUserManage_Click(object sender, RoutedEventArgs e) { if (UserViewService.CheckAuthorize(UserType.Admin)) { UserManageViewModel service = IoC.Get <UserManageViewModel>(); UserManageWindow userManageWindow = new UserManageWindow(service); userManageWindow.Show(); userManageWindow.Topmost = true; } }
private void ButtonLoginOut_Click(object sender, RoutedEventArgs e) { this.Hide(); UserViewService.LoadLoginWindow(); }