コード例 #1
0
 /// <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;
     }
 }
コード例 #2
0
 private void ButtonLoginOut_Click(object sender, RoutedEventArgs e)
 {
     this.Hide();
     UserViewService.LoadLoginWindow();
 }