Free cookie consent management tool by TermsFeed Policy Generator

Ignore:
Timestamp:
10/26/10 19:55:07 (14 years ago)
Author:
mjesner
Message:

#1196

Location:
branches/UserManagement/HeuristicLab.Services.Authentication.TestClient
Files:
6 deleted
5 edited

Legend:

Unmodified
Added
Removed
  • branches/UserManagement/HeuristicLab.Services.Authentication.TestClient/HeuristicLab.Services.Authentication.TestClient.csproj

    r4590 r4647  
    3535  </PropertyGroup>
    3636  <ItemGroup>
     37    <Reference Include="HeuristicLab.Services.Authentication.DataAccess, Version=1.0.0.0, Culture=neutral, processorArchitecture=MSIL" />
    3738    <Reference Include="System" />
    3839    <Reference Include="System.Core" />
     40    <Reference Include="System.Data.Linq" />
    3941    <Reference Include="System.Data.Services.Client" />
    4042    <Reference Include="System.Drawing" />
     
    4850  </ItemGroup>
    4951  <ItemGroup>
    50     <Compile Include="RoleDetail.cs">
    51       <SubType>Form</SubType>
    52     </Compile>
    53     <Compile Include="RoleDetail.Designer.cs">
    54       <DependentUpon>RoleDetail.cs</DependentUpon>
    55     </Compile>
    5652    <Compile Include="TestClient.cs" />
    5753    <Compile Include="Properties\AssemblyInfo.cs" />
    58     <Compile Include="UserDetail.cs">
    59       <SubType>Form</SubType>
    60     </Compile>
    61     <Compile Include="UserDetail.Designer.cs">
    62       <DependentUpon>UserDetail.cs</DependentUpon>
    63     </Compile>
    6454    <Compile Include="UserManagement.cs">
    6555      <SubType>Form</SubType>
     
    8070  </ItemGroup>
    8171  <ItemGroup>
    82     <EmbeddedResource Include="RoleDetail.resx">
    83       <DependentUpon>RoleDetail.cs</DependentUpon>
    84     </EmbeddedResource>
    85     <EmbeddedResource Include="UserDetail.resx">
    86       <DependentUpon>UserDetail.cs</DependentUpon>
    87     </EmbeddedResource>
    8872    <EmbeddedResource Include="UserManagement.resx">
    8973      <DependentUpon>UserManagement.cs</DependentUpon>
  • branches/UserManagement/HeuristicLab.Services.Authentication.TestClient/TestClient.cs

    r4590 r4647  
    22
    33using System.Collections.Generic;
    4 using System.Windows.Forms;
     4
     5using HeuristicLab.Services.Authentication.DataTransfer;
    56
    67
     
    1213        {
    1314           
    14             Application.Run(new UserManagement());
    15 
    16             //AuthenticationService auth = new AuthenticationService();
    17 
    18             //try
    19             //{
    20             //    IEnumerable<User> list = new List<User>();
    21             //    list = auth.GetUsers();
    22             //    foreach (var item in list)
    23             //    {
    24             //        Console.WriteLine("Item=" + item.UserName);
    25             //    }
    26 
    27             //    Console.WriteLine("Try to delete user...");
    28 
    29             //   // User u = new User() { UserId =  };
    30             //    auth.DeleteUser(new Guid("e4abc6ae-c954-4efd-8108-e536226fd9c7"));
    31 
    32             //}
    33             //catch (Exception e)
    34             //{
    35             //    Console.WriteLine(e.Message);
    36             //}
    37             //Console.ReadLine();
    38             //ServiceClient client = new ServiceClient();
    39             //client.ClientCredentials.UserName.UserName = "Alice";
    40             //client.ClientCredentials.UserName.Password = "YouWillNeverKnow";
    41             //client.ClientCredentials.ServiceCertificate.Authentication.CertificateValidationMode = X509CertificateValidationMode.None;
    42 
    43             //try
    44             //{
    45             //    Console.WriteLine(client.GetData(23));
    46             //}
    47             //catch (Exception e)
    48             //{
    49             //    Console.WriteLine("test");
    50             //    Console.WriteLine(e.Message);
    51             //}
    52 
    53             //Console.ReadLine();
    54 
    55             //client.Close();
     15
     16
     17            AuthenticationService auth = new AuthenticationService();
     18
     19            try
     20            {
     21
     22                Console.WriteLine("Insert new application");
     23                Application app1 = new Application() { ApplicationName="SPR Application", Description="SPR Application"};
     24                app1 = auth.InsertApplication(app1);
     25
     26                if (app1 != null)
     27                {
     28                    Console.WriteLine("okay");
     29                }
     30                else
     31                {
     32                    Console.WriteLine("error");
     33                }
     34                Console.WriteLine("--------------------------");
     35
     36                Console.WriteLine("Insert user SPRTEST");
     37                Membership membership = new Membership() { Email="aaa@bbb.com", Password="aaa", PasswordAnswer="bar", PasswordQuestion="foo?", PasswordSalt="aaa"};
     38                User user1 = new User(){ UserName="SPRTEST", IsAnonymous=false, LastActivityDate=DateTime.Now, ApplicationId=app1.ApplicationId, Membership=membership};
     39                auth.InsertUser(user1);
     40                Console.WriteLine("--------------------------");
     41
     42                Console.WriteLine("Get user SPRTEST");
     43                User user2 = auth.GetUser(app1.ApplicationId, "SPRTEST");
     44                if (user2 != null)
     45                {
     46                    Console.WriteLine("id=" + user2.UserId);
     47                }
     48                else
     49                {
     50                    Console.WriteLine("not found!");
     51                }
     52                Console.WriteLine("--------------------------");
     53
     54
     55                Console.WriteLine("Get user Einstein");
     56                User user3 = auth.GetUser(app1.ApplicationId, "Einstein");
     57                if (user3 != null)
     58                {
     59                    Console.WriteLine("id=" + user2.UserId);
     60                }
     61                else
     62                {
     63                    Console.WriteLine("not found!");
     64                }
     65                Console.WriteLine("--------------------------");
     66
     67
     68                Console.WriteLine("Insert role Role1");
     69                Role role1 = new Role() { RoleName = "Role1", Description = "first test role", ApplicationId = app1.ApplicationId };
     70
     71                if (auth.InsertRole(role1))
     72                {
     73                    Console.WriteLine("okay");
     74                }
     75                else
     76                {
     77                    Console.WriteLine("error");
     78                }
     79                Console.WriteLine("--------------------------");
     80
     81                Console.WriteLine("Get Role Role1");
     82                Role role2 = auth.GetRole(app1.ApplicationId, "Role1");
     83                if (role2 != null)
     84                {
     85                    Console.WriteLine("id=" + role2.RoleId);
     86                }
     87                else
     88                {
     89                    Console.WriteLine("not found!");
     90                }
     91                Console.WriteLine("--------------------------");
     92                Console.WriteLine("Get Role Role2");
     93                Role role3 = auth.GetRole(app1.ApplicationId, "Role2");
     94                if (role3 != null)
     95                {
     96                    Console.WriteLine("id=" + role3.RoleId);
     97                }
     98                else
     99                {
     100                    Console.WriteLine("not found!");
     101                }
     102                Console.WriteLine("--------------------------");
     103
     104               
     105                Console.WriteLine("GetRoles");
     106                IEnumerable<Role> list3 = auth.GetRoles(app1.ApplicationId);
     107
     108                foreach (Role role in list3)
     109                {
     110                    Console.WriteLine(role.RoleName);
     111                }
     112                Console.WriteLine("--------------------------");
     113                Console.WriteLine("Is User SPRTEST In Role1");
     114                if (auth.IsUserInRole(role2.RoleId, user2.UserId))
     115                {
     116                    Console.WriteLine("true");
     117                }
     118                else
     119                {
     120                    Console.WriteLine("false");
     121                }
     122                Console.WriteLine("--------------------------");
     123
     124
     125
     126                Console.WriteLine("Add User SPRTEST To Role1");
     127                if (auth.AddUserToRole(role2.RoleId, user2.UserId))
     128                {
     129                    Console.WriteLine("okay");
     130                }
     131                else
     132                {
     133                    Console.WriteLine("error");
     134                }
     135                Console.WriteLine("--------------------------");
     136
     137                Console.WriteLine("Is User SPRTEST In Role1");
     138                if (auth.IsUserInRole(role2.RoleId, user2.UserId))
     139                {
     140                    Console.WriteLine("true");
     141                }
     142                else
     143                {
     144                    Console.WriteLine("false");
     145                }
     146                Console.WriteLine("--------------------------");
     147
     148                Console.WriteLine("Add User SPRTEST To Role2");
     149                if (role3 != null && auth.AddUserToRole(role3.RoleId, user2.UserId))
     150                {
     151                    Console.WriteLine("okay");
     152                }
     153                else
     154                {
     155                    Console.WriteLine("error");
     156                }
     157                Console.WriteLine("--------------------------");
     158 
     159
     160               
     161                IEnumerable<User> list1 = auth.GetUsers(app1.ApplicationId);
     162                Console.WriteLine("Get Users");
     163                foreach (var item in list1)
     164                {
     165                    Console.WriteLine( item.UserName);
     166                }
     167
     168                Console.WriteLine("--------------------------");
     169                User user4 = auth.GetUser(app1.ApplicationId, "SPRTEST");
     170                if (user4 != null)
     171                {
     172                    IEnumerable<Role> roles = auth.GetRolesForUser(user4.UserId);
     173                    Console.WriteLine("Get Roles for user SPRTEST");
     174                    foreach (Role r in roles)
     175                    {
     176                        Console.WriteLine(r.RoleName);
     177                    }
     178                }
     179               
     180                Console.WriteLine("--------------------------");
     181                Console.WriteLine("Remove SPRTEST From Role1");
     182                if (auth.RemoveUserFromRole(role2.RoleId, user4.UserId))
     183                {
     184                    Console.WriteLine("okay");
     185                }
     186                else
     187                {
     188                    Console.WriteLine("error");
     189                }
     190
     191                Console.WriteLine("--------------------------");
     192                User user5 = auth.GetUser(app1.ApplicationId, "SPRTEST");
     193                if (user5 != null)
     194                {
     195                    IEnumerable<Role> roles = auth.GetRolesForUser(user5.UserId);
     196                    Console.WriteLine("Get Roles for user SPRTEST");
     197                    foreach (Role r in roles)
     198                    {
     199                        Console.WriteLine(r.RoleName);
     200                    }
     201                }
     202
     203                Console.WriteLine("--------------------------");
     204                Console.WriteLine("Delete User SPRTEST");
     205                if (auth.DeleteUser(user4.UserId))
     206                {
     207                    Console.WriteLine("okay");
     208                }
     209                else
     210                {
     211                    Console.WriteLine("error");
     212                }
     213                Console.WriteLine("--------------------------");
     214
     215                IEnumerable<User> list2 = auth.GetUsers(app1.ApplicationId);
     216                Console.WriteLine("Get Users");
     217                foreach (var item in list2)
     218                {
     219                    Console.WriteLine(item.UserName);
     220                }
     221
     222                Console.WriteLine("--------------------------");
     223                Console.WriteLine("Update user SPRTEST");
     224                User user6 = auth.GetUser(app1.ApplicationId,"SPRTEST");
     225
     226                if (user6 != null)
     227                {
     228                    user6.LoweredUserName = "new lowered name";
     229                    user6.Membership.Email = "new email";
     230                    auth.UpdateUser(user6);
     231                }
     232
     233
     234               
     235
     236            }
     237            catch (Exception e)
     238            {
     239                Console.WriteLine(e.Message);
     240            }
     241           
     242            // User form
     243
     244            System.Windows.Forms.Application.Run(new UserManagement());
     245           
    56246        }
    57247    }
  • branches/UserManagement/HeuristicLab.Services.Authentication.TestClient/UserManagement.Designer.cs

    r4590 r4647  
    3030        {
    3131            this.components = new System.ComponentModel.Container();
    32             this.grpUsers = new System.Windows.Forms.GroupBox();
     32            System.Windows.Forms.Label isAnonymousLabel;
     33            System.Windows.Forms.Label passwordLabel;
     34            System.Windows.Forms.Label passwordAnswerLabel;
     35            System.Windows.Forms.Label passwordQuestionLabel;
     36            System.Windows.Forms.Label passwordSaltLabel;
     37            System.Windows.Forms.Label emailLabel;
     38            System.Windows.Forms.Label roleNameLabel;
     39            this.bsUsers = new System.Windows.Forms.BindingSource(this.components);
     40            this.bsRoles = new System.Windows.Forms.BindingSource(this.components);
     41            this.scMain = new System.Windows.Forms.SplitContainer();
     42            this.tabControl1 = new System.Windows.Forms.TabControl();
     43            this.tabPage1 = new System.Windows.Forms.TabPage();
     44            this.tabPage2 = new System.Windows.Forms.TabPage();
     45            this.tabControl2 = new System.Windows.Forms.TabControl();
     46            this.tabPage4 = new System.Windows.Forms.TabPage();
     47            this.tabControl3 = new System.Windows.Forms.TabControl();
     48            this.tabPage5 = new System.Windows.Forms.TabPage();
     49            this.tabPage6 = new System.Windows.Forms.TabPage();
    3350            this.dgvUsers = new System.Windows.Forms.DataGridView();
    34             this.btnUserNew = new System.Windows.Forms.Button();
    35             this.btnUserModify = new System.Windows.Forms.Button();
    36             this.btnUserDelete = new System.Windows.Forms.Button();
    37             this.grpRoles = new System.Windows.Forms.GroupBox();
    3851            this.dgvRoles = new System.Windows.Forms.DataGridView();
    39             this.btnRoleNew = new System.Windows.Forms.Button();
    40             this.btnRoleModify = new System.Windows.Forms.Button();
    41             this.btnRoleDelete = new System.Windows.Forms.Button();
    42             this.scMain = new System.Windows.Forms.SplitContainer();
    4352            this.panel1 = new System.Windows.Forms.Panel();
    44             this.panel2 = new System.Windows.Forms.Panel();
    45             this.applicationIdDataGridViewTextBoxColumn1 = new System.Windows.Forms.DataGridViewTextBoxColumn();
     53            this.label1 = new System.Windows.Forms.Label();
     54            this.membershipDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     55            this.applicationIdDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    4656            this.userIdDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    4757            this.userNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     
    5060            this.isAnonymousDataGridViewCheckBoxColumn = new System.Windows.Forms.DataGridViewCheckBoxColumn();
    5161            this.lastActivityDateDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    52             this.bsUsers = new System.Windows.Forms.BindingSource(this.components);
    53             this.bsRoles = new System.Windows.Forms.BindingSource(this.components);
    54             this.applicationIdDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
    55             this.RoleId = new System.Windows.Forms.DataGridViewTextBoxColumn();
    56             this.RoleName = new System.Windows.Forms.DataGridViewTextBoxColumn();
    57             this.LoweredRoleName = new System.Windows.Forms.DataGridViewTextBoxColumn();
    58             this.Description = new System.Windows.Forms.DataGridViewTextBoxColumn();
    59             this.grpUsers.SuspendLayout();
    60             ((System.ComponentModel.ISupportInitialize)(this.dgvUsers)).BeginInit();
    61             this.grpRoles.SuspendLayout();
    62             ((System.ComponentModel.ISupportInitialize)(this.dgvRoles)).BeginInit();
     62            this.tabPage3 = new System.Windows.Forms.TabPage();
     63            this.isAnonymousCheckBox = new System.Windows.Forms.CheckBox();
     64            this.passwordTextBox = new System.Windows.Forms.TextBox();
     65            this.passwordAnswerTextBox = new System.Windows.Forms.TextBox();
     66            this.passwordQuestionTextBox = new System.Windows.Forms.TextBox();
     67            this.passwordSaltTextBox = new System.Windows.Forms.TextBox();
     68            this.emailTextBox = new System.Windows.Forms.TextBox();
     69            this.dataGridView1 = new System.Windows.Forms.DataGridView();
     70            this.roleNameTextBox = new System.Windows.Forms.TextBox();
     71            this.dataGridView2 = new System.Windows.Forms.DataGridView();
     72            this.roleIdDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     73            this.roleNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     74            this.loweredRoleNameDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     75            this.descriptionDataGridViewTextBoxColumn = new System.Windows.Forms.DataGridViewTextBoxColumn();
     76            isAnonymousLabel = new System.Windows.Forms.Label();
     77            passwordLabel = new System.Windows.Forms.Label();
     78            passwordAnswerLabel = new System.Windows.Forms.Label();
     79            passwordQuestionLabel = new System.Windows.Forms.Label();
     80            passwordSaltLabel = new System.Windows.Forms.Label();
     81            emailLabel = new System.Windows.Forms.Label();
     82            roleNameLabel = new System.Windows.Forms.Label();
     83            ((System.ComponentModel.ISupportInitialize)(this.bsUsers)).BeginInit();
     84            ((System.ComponentModel.ISupportInitialize)(this.bsRoles)).BeginInit();
    6385            ((System.ComponentModel.ISupportInitialize)(this.scMain)).BeginInit();
    6486            this.scMain.Panel1.SuspendLayout();
    6587            this.scMain.Panel2.SuspendLayout();
    6688            this.scMain.SuspendLayout();
     89            this.tabControl1.SuspendLayout();
     90            this.tabPage1.SuspendLayout();
     91            this.tabPage2.SuspendLayout();
     92            this.tabControl2.SuspendLayout();
     93            this.tabPage4.SuspendLayout();
     94            this.tabControl3.SuspendLayout();
     95            this.tabPage5.SuspendLayout();
     96            this.tabPage6.SuspendLayout();
     97            ((System.ComponentModel.ISupportInitialize)(this.dgvUsers)).BeginInit();
     98            ((System.ComponentModel.ISupportInitialize)(this.dgvRoles)).BeginInit();
    6799            this.panel1.SuspendLayout();
    68             this.panel2.SuspendLayout();
    69             ((System.ComponentModel.ISupportInitialize)(this.bsUsers)).BeginInit();
    70             ((System.ComponentModel.ISupportInitialize)(this.bsRoles)).BeginInit();
     100            this.tabPage3.SuspendLayout();
     101            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).BeginInit();
     102            ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).BeginInit();
    71103            this.SuspendLayout();
    72104            //
    73             // grpUsers
    74             //
    75             this.grpUsers.Controls.Add(this.dgvUsers);
    76             this.grpUsers.Dock = System.Windows.Forms.DockStyle.Fill;
    77             this.grpUsers.Location = new System.Drawing.Point(0, 0);
    78             this.grpUsers.Name = "grpUsers";
    79             this.grpUsers.Size = new System.Drawing.Size(1100, 249);
    80             this.grpUsers.TabIndex = 0;
    81             this.grpUsers.TabStop = false;
    82             this.grpUsers.Text = "Users";
     105            // bsUsers
     106            //
     107            this.bsUsers.DataSource = typeof(HeuristicLab.Services.Authentication.DataTransfer.User);
     108            //
     109            // bsRoles
     110            //
     111            this.bsRoles.DataSource = typeof(HeuristicLab.Services.Authentication.DataTransfer.Role);
     112            //
     113            // scMain
     114            //
     115            this.scMain.Dock = System.Windows.Forms.DockStyle.Fill;
     116            this.scMain.Location = new System.Drawing.Point(0, 0);
     117            this.scMain.Name = "scMain";
     118            this.scMain.Orientation = System.Windows.Forms.Orientation.Horizontal;
     119            //
     120            // scMain.Panel1
     121            //
     122            this.scMain.Panel1.Controls.Add(this.panel1);
     123            //
     124            // scMain.Panel2
     125            //
     126            this.scMain.Panel2.Controls.Add(this.tabControl1);
     127            this.scMain.Size = new System.Drawing.Size(1100, 556);
     128            this.scMain.SplitterDistance = 47;
     129            this.scMain.TabIndex = 9;
     130            //
     131            // tabControl1
     132            //
     133            this.tabControl1.Controls.Add(this.tabPage1);
     134            this.tabControl1.Controls.Add(this.tabPage2);
     135            this.tabControl1.Dock = System.Windows.Forms.DockStyle.Fill;
     136            this.tabControl1.Location = new System.Drawing.Point(0, 0);
     137            this.tabControl1.Name = "tabControl1";
     138            this.tabControl1.SelectedIndex = 0;
     139            this.tabControl1.Size = new System.Drawing.Size(1100, 505);
     140            this.tabControl1.TabIndex = 0;
     141            //
     142            // tabPage1
     143            //
     144            this.tabPage1.AutoScroll = true;
     145            this.tabPage1.Controls.Add(this.dgvUsers);
     146            this.tabPage1.Controls.Add(this.tabControl2);
     147            this.tabPage1.Location = new System.Drawing.Point(4, 22);
     148            this.tabPage1.Name = "tabPage1";
     149            this.tabPage1.Padding = new System.Windows.Forms.Padding(3);
     150            this.tabPage1.Size = new System.Drawing.Size(1092, 479);
     151            this.tabPage1.TabIndex = 0;
     152            this.tabPage1.Text = "User";
     153            this.tabPage1.UseVisualStyleBackColor = true;
     154            //
     155            // tabPage2
     156            //
     157            this.tabPage2.AutoScroll = true;
     158            this.tabPage2.Controls.Add(this.dgvRoles);
     159            this.tabPage2.Controls.Add(this.tabControl3);
     160            this.tabPage2.Location = new System.Drawing.Point(4, 22);
     161            this.tabPage2.Name = "tabPage2";
     162            this.tabPage2.Padding = new System.Windows.Forms.Padding(3);
     163            this.tabPage2.Size = new System.Drawing.Size(1092, 479);
     164            this.tabPage2.TabIndex = 1;
     165            this.tabPage2.Text = "Roles";
     166            this.tabPage2.UseVisualStyleBackColor = true;
     167            //
     168            // tabControl2
     169            //
     170            this.tabControl2.Controls.Add(this.tabPage3);
     171            this.tabControl2.Controls.Add(this.tabPage4);
     172            this.tabControl2.Dock = System.Windows.Forms.DockStyle.Bottom;
     173            this.tabControl2.Location = new System.Drawing.Point(3, 291);
     174            this.tabControl2.Name = "tabControl2";
     175            this.tabControl2.SelectedIndex = 0;
     176            this.tabControl2.Size = new System.Drawing.Size(1086, 185);
     177            this.tabControl2.TabIndex = 0;
     178            //
     179            // tabPage4
     180            //
     181            this.tabPage4.Controls.Add(this.dataGridView1);
     182            this.tabPage4.Location = new System.Drawing.Point(4, 22);
     183            this.tabPage4.Name = "tabPage4";
     184            this.tabPage4.Padding = new System.Windows.Forms.Padding(3);
     185            this.tabPage4.Size = new System.Drawing.Size(1078, 159);
     186            this.tabPage4.TabIndex = 1;
     187            this.tabPage4.Text = "Roles";
     188            this.tabPage4.UseVisualStyleBackColor = true;
     189            //
     190            // tabControl3
     191            //
     192            this.tabControl3.Controls.Add(this.tabPage5);
     193            this.tabControl3.Controls.Add(this.tabPage6);
     194            this.tabControl3.Dock = System.Windows.Forms.DockStyle.Bottom;
     195            this.tabControl3.Location = new System.Drawing.Point(3, 291);
     196            this.tabControl3.Name = "tabControl3";
     197            this.tabControl3.SelectedIndex = 0;
     198            this.tabControl3.Size = new System.Drawing.Size(1086, 185);
     199            this.tabControl3.TabIndex = 1;
     200            //
     201            // tabPage5
     202            //
     203            this.tabPage5.Controls.Add(roleNameLabel);
     204            this.tabPage5.Controls.Add(this.roleNameTextBox);
     205            this.tabPage5.Location = new System.Drawing.Point(4, 22);
     206            this.tabPage5.Name = "tabPage5";
     207            this.tabPage5.Padding = new System.Windows.Forms.Padding(3);
     208            this.tabPage5.Size = new System.Drawing.Size(1078, 159);
     209            this.tabPage5.TabIndex = 0;
     210            this.tabPage5.Text = "Detail";
     211            this.tabPage5.UseVisualStyleBackColor = true;
     212            //
     213            // tabPage6
     214            //
     215            this.tabPage6.Controls.Add(this.dataGridView2);
     216            this.tabPage6.Location = new System.Drawing.Point(4, 22);
     217            this.tabPage6.Name = "tabPage6";
     218            this.tabPage6.Padding = new System.Windows.Forms.Padding(3);
     219            this.tabPage6.Size = new System.Drawing.Size(1078, 159);
     220            this.tabPage6.TabIndex = 1;
     221            this.tabPage6.Text = "Users";
     222            this.tabPage6.UseVisualStyleBackColor = true;
    83223            //
    84224            // dgvUsers
    85225            //
    86             this.dgvUsers.AllowUserToAddRows = false;
    87             this.dgvUsers.AllowUserToDeleteRows = false;
    88             this.dgvUsers.AllowUserToResizeColumns = false;
    89             this.dgvUsers.AllowUserToResizeRows = false;
    90226            this.dgvUsers.AutoGenerateColumns = false;
    91227            this.dgvUsers.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
    92228            this.dgvUsers.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
    93             this.applicationIdDataGridViewTextBoxColumn1,
     229            this.membershipDataGridViewTextBoxColumn,
     230            this.applicationIdDataGridViewTextBoxColumn,
    94231            this.userIdDataGridViewTextBoxColumn,
    95232            this.userNameDataGridViewTextBoxColumn,
     
    100237            this.dgvUsers.DataSource = this.bsUsers;
    101238            this.dgvUsers.Dock = System.Windows.Forms.DockStyle.Fill;
    102             this.dgvUsers.Location = new System.Drawing.Point(3, 16);
    103             this.dgvUsers.MultiSelect = false;
     239            this.dgvUsers.Location = new System.Drawing.Point(3, 3);
    104240            this.dgvUsers.Name = "dgvUsers";
    105             this.dgvUsers.ReadOnly = true;
    106             this.dgvUsers.ShowCellErrors = false;
    107             this.dgvUsers.ShowCellToolTips = false;
    108             this.dgvUsers.ShowEditingIcon = false;
    109             this.dgvUsers.ShowRowErrors = false;
    110             this.dgvUsers.Size = new System.Drawing.Size(1094, 230);
    111             this.dgvUsers.TabIndex = 0;
    112             //
    113             // btnUserNew
    114             //
    115             this.btnUserNew.Location = new System.Drawing.Point(3, 3);
    116             this.btnUserNew.Name = "btnUserNew";
    117             this.btnUserNew.Size = new System.Drawing.Size(75, 23);
    118             this.btnUserNew.TabIndex = 1;
    119             this.btnUserNew.Text = "New";
    120             this.btnUserNew.UseVisualStyleBackColor = true;
    121             this.btnUserNew.Click += new System.EventHandler(this.btnUserNew_Click);
    122             //
    123             // btnUserModify
    124             //
    125             this.btnUserModify.Location = new System.Drawing.Point(84, 3);
    126             this.btnUserModify.Name = "btnUserModify";
    127             this.btnUserModify.Size = new System.Drawing.Size(75, 23);
    128             this.btnUserModify.TabIndex = 2;
    129             this.btnUserModify.Text = "Modify";
    130             this.btnUserModify.UseVisualStyleBackColor = true;
    131             this.btnUserModify.Click += new System.EventHandler(this.btnUserModify_Click);
    132             //
    133             // btnUserDelete
    134             //
    135             this.btnUserDelete.Location = new System.Drawing.Point(165, 3);
    136             this.btnUserDelete.Name = "btnUserDelete";
    137             this.btnUserDelete.Size = new System.Drawing.Size(75, 23);
    138             this.btnUserDelete.TabIndex = 3;
    139             this.btnUserDelete.Text = "Delete";
    140             this.btnUserDelete.UseVisualStyleBackColor = true;
    141             this.btnUserDelete.Click += new System.EventHandler(this.btnUserDelete_Click);
    142             //
    143             // grpRoles
    144             //
    145             this.grpRoles.Controls.Add(this.dgvRoles);
    146             this.grpRoles.Dock = System.Windows.Forms.DockStyle.Fill;
    147             this.grpRoles.Location = new System.Drawing.Point(0, 0);
    148             this.grpRoles.Name = "grpRoles";
    149             this.grpRoles.Size = new System.Drawing.Size(1100, 243);
    150             this.grpRoles.TabIndex = 5;
    151             this.grpRoles.TabStop = false;
    152             this.grpRoles.Text = "Roles";
     241            this.dgvUsers.Size = new System.Drawing.Size(1086, 288);
     242            this.dgvUsers.TabIndex = 1;
    153243            //
    154244            // dgvRoles
     
    156246            this.dgvRoles.AllowUserToAddRows = false;
    157247            this.dgvRoles.AllowUserToDeleteRows = false;
    158             this.dgvRoles.AllowUserToResizeColumns = false;
    159             this.dgvRoles.AllowUserToResizeRows = false;
    160248            this.dgvRoles.AutoGenerateColumns = false;
    161249            this.dgvRoles.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
    162250            this.dgvRoles.Columns.AddRange(new System.Windows.Forms.DataGridViewColumn[] {
    163             this.applicationIdDataGridViewTextBoxColumn,
    164             this.RoleId,
    165             this.RoleName,
    166             this.LoweredRoleName,
    167             this.Description});
     251            this.roleIdDataGridViewTextBoxColumn,
     252            this.roleNameDataGridViewTextBoxColumn,
     253            this.loweredRoleNameDataGridViewTextBoxColumn,
     254            this.descriptionDataGridViewTextBoxColumn});
    168255            this.dgvRoles.DataSource = this.bsRoles;
    169256            this.dgvRoles.Dock = System.Windows.Forms.DockStyle.Fill;
    170             this.dgvRoles.Location = new System.Drawing.Point(3, 16);
     257            this.dgvRoles.Location = new System.Drawing.Point(3, 3);
    171258            this.dgvRoles.MultiSelect = false;
    172259            this.dgvRoles.Name = "dgvRoles";
    173             this.dgvRoles.ReadOnly = true;
    174             this.dgvRoles.Size = new System.Drawing.Size(1094, 224);
    175             this.dgvRoles.TabIndex = 1;
    176             //
    177             // btnRoleNew
    178             //
    179             this.btnRoleNew.Location = new System.Drawing.Point(3, 3);
    180             this.btnRoleNew.Name = "btnRoleNew";
    181             this.btnRoleNew.Size = new System.Drawing.Size(75, 23);
    182             this.btnRoleNew.TabIndex = 6;
    183             this.btnRoleNew.Text = "New";
    184             this.btnRoleNew.UseVisualStyleBackColor = true;
    185             this.btnRoleNew.Click += new System.EventHandler(this.btnRoleNew_Click);
    186             //
    187             // btnRoleModify
    188             //
    189             this.btnRoleModify.Location = new System.Drawing.Point(84, 3);
    190             this.btnRoleModify.Name = "btnRoleModify";
    191             this.btnRoleModify.Size = new System.Drawing.Size(75, 23);
    192             this.btnRoleModify.TabIndex = 7;
    193             this.btnRoleModify.Text = "Modify";
    194             this.btnRoleModify.UseVisualStyleBackColor = true;
    195             this.btnRoleModify.Click += new System.EventHandler(this.btnRoleModify_Click);
    196             //
    197             // btnRoleDelete
    198             //
    199             this.btnRoleDelete.Location = new System.Drawing.Point(165, 3);
    200             this.btnRoleDelete.Name = "btnRoleDelete";
    201             this.btnRoleDelete.Size = new System.Drawing.Size(75, 23);
    202             this.btnRoleDelete.TabIndex = 8;
    203             this.btnRoleDelete.Text = "Delete";
    204             this.btnRoleDelete.UseVisualStyleBackColor = true;
    205             this.btnRoleDelete.Click += new System.EventHandler(this.btnRoleDelete_Click);
    206             //
    207             // scMain
    208             //
    209             this.scMain.Dock = System.Windows.Forms.DockStyle.Fill;
    210             this.scMain.Location = new System.Drawing.Point(0, 0);
    211             this.scMain.Name = "scMain";
    212             this.scMain.Orientation = System.Windows.Forms.Orientation.Horizontal;
    213             //
    214             // scMain.Panel1
    215             //
    216             this.scMain.Panel1.Controls.Add(this.grpUsers);
    217             this.scMain.Panel1.Controls.Add(this.panel1);
    218             //
    219             // scMain.Panel2
    220             //
    221             this.scMain.Panel2.Controls.Add(this.grpRoles);
    222             this.scMain.Panel2.Controls.Add(this.panel2);
    223             this.scMain.Size = new System.Drawing.Size(1100, 556);
    224             this.scMain.SplitterDistance = 278;
    225             this.scMain.TabIndex = 9;
     260            this.dgvRoles.Size = new System.Drawing.Size(1086, 288);
     261            this.dgvRoles.TabIndex = 2;
    226262            //
    227263            // panel1
    228264            //
    229             this.panel1.Controls.Add(this.btnUserNew);
    230             this.panel1.Controls.Add(this.btnUserDelete);
    231             this.panel1.Controls.Add(this.btnUserModify);
    232             this.panel1.Dock = System.Windows.Forms.DockStyle.Bottom;
    233             this.panel1.Location = new System.Drawing.Point(0, 249);
     265            this.panel1.Controls.Add(this.label1);
     266            this.panel1.Dock = System.Windows.Forms.DockStyle.Fill;
     267            this.panel1.Location = new System.Drawing.Point(0, 0);
    234268            this.panel1.Name = "panel1";
    235             this.panel1.Size = new System.Drawing.Size(1100, 29);
    236             this.panel1.TabIndex = 4;
    237             //
    238             // panel2
    239             //
    240             this.panel2.Controls.Add(this.btnRoleNew);
    241             this.panel2.Controls.Add(this.btnRoleModify);
    242             this.panel2.Controls.Add(this.btnRoleDelete);
    243             this.panel2.Dock = System.Windows.Forms.DockStyle.Bottom;
    244             this.panel2.Location = new System.Drawing.Point(0, 243);
    245             this.panel2.Name = "panel2";
    246             this.panel2.Size = new System.Drawing.Size(1100, 31);
    247             this.panel2.TabIndex = 9;
    248             //
    249             // applicationIdDataGridViewTextBoxColumn1
    250             //
    251             this.applicationIdDataGridViewTextBoxColumn1.DataPropertyName = "ApplicationId";
    252             this.applicationIdDataGridViewTextBoxColumn1.HeaderText = "ApplicationId";
    253             this.applicationIdDataGridViewTextBoxColumn1.Name = "applicationIdDataGridViewTextBoxColumn1";
     269            this.panel1.Size = new System.Drawing.Size(1100, 47);
     270            this.panel1.TabIndex = 0;
     271            //
     272            // label1
     273            //
     274            this.label1.Dock = System.Windows.Forms.DockStyle.Fill;
     275            this.label1.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0)));
     276            this.label1.Location = new System.Drawing.Point(0, 0);
     277            this.label1.Name = "label1";
     278            this.label1.Size = new System.Drawing.Size(1100, 47);
     279            this.label1.TabIndex = 0;
     280            this.label1.Text = "Heuristic Lab User Management";
     281            this.label1.TextAlign = System.Drawing.ContentAlignment.MiddleLeft;
     282            //
     283            // membershipDataGridViewTextBoxColumn
     284            //
     285            this.membershipDataGridViewTextBoxColumn.DataPropertyName = "Membership";
     286            this.membershipDataGridViewTextBoxColumn.HeaderText = "Membership";
     287            this.membershipDataGridViewTextBoxColumn.Name = "membershipDataGridViewTextBoxColumn";
     288            //
     289            // applicationIdDataGridViewTextBoxColumn
     290            //
     291            this.applicationIdDataGridViewTextBoxColumn.DataPropertyName = "ApplicationId";
     292            this.applicationIdDataGridViewTextBoxColumn.HeaderText = "ApplicationId";
     293            this.applicationIdDataGridViewTextBoxColumn.Name = "applicationIdDataGridViewTextBoxColumn";
    254294            //
    255295            // userIdDataGridViewTextBoxColumn
     
    289329            this.lastActivityDateDataGridViewTextBoxColumn.Name = "lastActivityDateDataGridViewTextBoxColumn";
    290330            //
    291             // bsUsers
    292             //
    293             this.bsUsers.DataSource = typeof(HeuristicLab.Services.Authentication.DataTransfer.User);
    294             //
    295             // bsRoles
    296             //
    297             this.bsRoles.DataSource = typeof(HeuristicLab.Services.Authentication.DataTransfer.Role);
    298             //
    299             // applicationIdDataGridViewTextBoxColumn
    300             //
    301             this.applicationIdDataGridViewTextBoxColumn.DataPropertyName = "ApplicationId";
    302             this.applicationIdDataGridViewTextBoxColumn.HeaderText = "ApplicationId";
    303             this.applicationIdDataGridViewTextBoxColumn.Name = "applicationIdDataGridViewTextBoxColumn";
    304             this.applicationIdDataGridViewTextBoxColumn.ReadOnly = true;
    305             //
    306             // RoleId
    307             //
    308             this.RoleId.DataPropertyName = "RoleId";
    309             this.RoleId.HeaderText = "RoleId";
    310             this.RoleId.Name = "RoleId";
    311             this.RoleId.ReadOnly = true;
    312             //
    313             // RoleName
    314             //
    315             this.RoleName.DataPropertyName = "RoleName";
    316             this.RoleName.HeaderText = "RoleName";
    317             this.RoleName.Name = "RoleName";
    318             this.RoleName.ReadOnly = true;
    319             //
    320             // LoweredRoleName
    321             //
    322             this.LoweredRoleName.DataPropertyName = "LoweredRoleName";
    323             this.LoweredRoleName.HeaderText = "LoweredRoleName";
    324             this.LoweredRoleName.Name = "LoweredRoleName";
    325             this.LoweredRoleName.ReadOnly = true;
    326             //
    327             // Description
    328             //
    329             this.Description.DataPropertyName = "Description";
    330             this.Description.HeaderText = "Description";
    331             this.Description.Name = "Description";
    332             this.Description.ReadOnly = true;
     331            // tabPage3
     332            //
     333            this.tabPage3.AutoScroll = true;
     334            this.tabPage3.Controls.Add(emailLabel);
     335            this.tabPage3.Controls.Add(this.emailTextBox);
     336            this.tabPage3.Controls.Add(passwordSaltLabel);
     337            this.tabPage3.Controls.Add(this.passwordSaltTextBox);
     338            this.tabPage3.Controls.Add(passwordQuestionLabel);
     339            this.tabPage3.Controls.Add(this.passwordQuestionTextBox);
     340            this.tabPage3.Controls.Add(passwordAnswerLabel);
     341            this.tabPage3.Controls.Add(this.passwordAnswerTextBox);
     342            this.tabPage3.Controls.Add(passwordLabel);
     343            this.tabPage3.Controls.Add(this.passwordTextBox);
     344            this.tabPage3.Controls.Add(isAnonymousLabel);
     345            this.tabPage3.Controls.Add(this.isAnonymousCheckBox);
     346            this.tabPage3.Location = new System.Drawing.Point(4, 22);
     347            this.tabPage3.Name = "tabPage3";
     348            this.tabPage3.Padding = new System.Windows.Forms.Padding(3);
     349            this.tabPage3.Size = new System.Drawing.Size(1078, 159);
     350            this.tabPage3.TabIndex = 0;
     351            this.tabPage3.Text = "Detail";
     352            this.tabPage3.UseVisualStyleBackColor = true;
     353            //
     354            // isAnonymousLabel
     355            //
     356            isAnonymousLabel.AutoSize = true;
     357            isAnonymousLabel.Location = new System.Drawing.Point(15, 22);
     358            isAnonymousLabel.Name = "isAnonymousLabel";
     359            isAnonymousLabel.Size = new System.Drawing.Size(76, 13);
     360            isAnonymousLabel.TabIndex = 0;
     361            isAnonymousLabel.Text = "Is Anonymous:";
     362            //
     363            // isAnonymousCheckBox
     364            //
     365            this.isAnonymousCheckBox.DataBindings.Add(new System.Windows.Forms.Binding("CheckState", this.bsUsers, "IsAnonymous", true));
     366            this.isAnonymousCheckBox.Location = new System.Drawing.Point(98, 17);
     367            this.isAnonymousCheckBox.Name = "isAnonymousCheckBox";
     368            this.isAnonymousCheckBox.Size = new System.Drawing.Size(104, 24);
     369            this.isAnonymousCheckBox.TabIndex = 1;
     370            this.isAnonymousCheckBox.Text = "checkBox1";
     371            this.isAnonymousCheckBox.UseVisualStyleBackColor = true;
     372            //
     373            // passwordLabel
     374            //
     375            passwordLabel.AutoSize = true;
     376            passwordLabel.Location = new System.Drawing.Point(15, 73);
     377            passwordLabel.Name = "passwordLabel";
     378            passwordLabel.Size = new System.Drawing.Size(56, 13);
     379            passwordLabel.TabIndex = 2;
     380            passwordLabel.Text = "Password:";
     381            //
     382            // passwordTextBox
     383            //
     384            this.passwordTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsUsers, "Membership.Password", true));
     385            this.passwordTextBox.Location = new System.Drawing.Point(98, 70);
     386            this.passwordTextBox.Name = "passwordTextBox";
     387            this.passwordTextBox.Size = new System.Drawing.Size(203, 20);
     388            this.passwordTextBox.TabIndex = 3;
     389            //
     390            // passwordAnswerLabel
     391            //
     392            passwordAnswerLabel.AutoSize = true;
     393            passwordAnswerLabel.Location = new System.Drawing.Point(318, 46);
     394            passwordAnswerLabel.Name = "passwordAnswerLabel";
     395            passwordAnswerLabel.Size = new System.Drawing.Size(94, 13);
     396            passwordAnswerLabel.TabIndex = 4;
     397            passwordAnswerLabel.Text = "Password Answer:";
     398            //
     399            // passwordAnswerTextBox
     400            //
     401            this.passwordAnswerTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsUsers, "Membership.PasswordAnswer", true));
     402            this.passwordAnswerTextBox.Location = new System.Drawing.Point(425, 43);
     403            this.passwordAnswerTextBox.Name = "passwordAnswerTextBox";
     404            this.passwordAnswerTextBox.Size = new System.Drawing.Size(188, 20);
     405            this.passwordAnswerTextBox.TabIndex = 5;
     406            //
     407            // passwordQuestionLabel
     408            //
     409            passwordQuestionLabel.AutoSize = true;
     410            passwordQuestionLabel.Location = new System.Drawing.Point(318, 73);
     411            passwordQuestionLabel.Name = "passwordQuestionLabel";
     412            passwordQuestionLabel.Size = new System.Drawing.Size(101, 13);
     413            passwordQuestionLabel.TabIndex = 6;
     414            passwordQuestionLabel.Text = "Password Question:";
     415            //
     416            // passwordQuestionTextBox
     417            //
     418            this.passwordQuestionTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsUsers, "Membership.PasswordQuestion", true));
     419            this.passwordQuestionTextBox.Location = new System.Drawing.Point(425, 70);
     420            this.passwordQuestionTextBox.Name = "passwordQuestionTextBox";
     421            this.passwordQuestionTextBox.Size = new System.Drawing.Size(188, 20);
     422            this.passwordQuestionTextBox.TabIndex = 7;
     423            //
     424            // passwordSaltLabel
     425            //
     426            passwordSaltLabel.AutoSize = true;
     427            passwordSaltLabel.Location = new System.Drawing.Point(15, 99);
     428            passwordSaltLabel.Name = "passwordSaltLabel";
     429            passwordSaltLabel.Size = new System.Drawing.Size(77, 13);
     430            passwordSaltLabel.TabIndex = 8;
     431            passwordSaltLabel.Text = "Password Salt:";
     432            //
     433            // passwordSaltTextBox
     434            //
     435            this.passwordSaltTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsUsers, "Membership.PasswordSalt", true));
     436            this.passwordSaltTextBox.Location = new System.Drawing.Point(99, 96);
     437            this.passwordSaltTextBox.Name = "passwordSaltTextBox";
     438            this.passwordSaltTextBox.Size = new System.Drawing.Size(202, 20);
     439            this.passwordSaltTextBox.TabIndex = 9;
     440            //
     441            // emailLabel
     442            //
     443            emailLabel.AutoSize = true;
     444            emailLabel.Location = new System.Drawing.Point(15, 46);
     445            emailLabel.Name = "emailLabel";
     446            emailLabel.Size = new System.Drawing.Size(35, 13);
     447            emailLabel.TabIndex = 10;
     448            emailLabel.Text = "Email:";
     449            //
     450            // emailTextBox
     451            //
     452            this.emailTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsUsers, "Membership.Email", true));
     453            this.emailTextBox.Location = new System.Drawing.Point(98, 43);
     454            this.emailTextBox.Name = "emailTextBox";
     455            this.emailTextBox.Size = new System.Drawing.Size(203, 20);
     456            this.emailTextBox.TabIndex = 11;
     457            //
     458            // dataGridView1
     459            //
     460            this.dataGridView1.AllowUserToAddRows = false;
     461            this.dataGridView1.AllowUserToDeleteRows = false;
     462            this.dataGridView1.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     463            this.dataGridView1.Location = new System.Drawing.Point(6, 22);
     464            this.dataGridView1.Name = "dataGridView1";
     465            this.dataGridView1.ReadOnly = true;
     466            this.dataGridView1.Size = new System.Drawing.Size(437, 91);
     467            this.dataGridView1.TabIndex = 0;
     468            //
     469            // roleNameLabel
     470            //
     471            roleNameLabel.AutoSize = true;
     472            roleNameLabel.Location = new System.Drawing.Point(12, 22);
     473            roleNameLabel.Name = "roleNameLabel";
     474            roleNameLabel.Size = new System.Drawing.Size(63, 13);
     475            roleNameLabel.TabIndex = 0;
     476            roleNameLabel.Text = "Role Name:";
     477            //
     478            // roleNameTextBox
     479            //
     480            this.roleNameTextBox.DataBindings.Add(new System.Windows.Forms.Binding("Text", this.bsRoles, "RoleName", true));
     481            this.roleNameTextBox.Location = new System.Drawing.Point(81, 19);
     482            this.roleNameTextBox.Name = "roleNameTextBox";
     483            this.roleNameTextBox.Size = new System.Drawing.Size(191, 20);
     484            this.roleNameTextBox.TabIndex = 1;
     485            //
     486            // dataGridView2
     487            //
     488            this.dataGridView2.ColumnHeadersHeightSizeMode = System.Windows.Forms.DataGridViewColumnHeadersHeightSizeMode.AutoSize;
     489            this.dataGridView2.Location = new System.Drawing.Point(34, 28);
     490            this.dataGridView2.Name = "dataGridView2";
     491            this.dataGridView2.Size = new System.Drawing.Size(520, 108);
     492            this.dataGridView2.TabIndex = 0;
     493            //
     494            // roleIdDataGridViewTextBoxColumn
     495            //
     496            this.roleIdDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
     497            this.roleIdDataGridViewTextBoxColumn.DataPropertyName = "RoleId";
     498            this.roleIdDataGridViewTextBoxColumn.HeaderText = "Id";
     499            this.roleIdDataGridViewTextBoxColumn.Name = "roleIdDataGridViewTextBoxColumn";
     500            this.roleIdDataGridViewTextBoxColumn.Width = 41;
     501            //
     502            // roleNameDataGridViewTextBoxColumn
     503            //
     504            this.roleNameDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.Fill;
     505            this.roleNameDataGridViewTextBoxColumn.DataPropertyName = "RoleName";
     506            this.roleNameDataGridViewTextBoxColumn.HeaderText = "Name";
     507            this.roleNameDataGridViewTextBoxColumn.Name = "roleNameDataGridViewTextBoxColumn";
     508            //
     509            // loweredRoleNameDataGridViewTextBoxColumn
     510            //
     511            this.loweredRoleNameDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
     512            this.loweredRoleNameDataGridViewTextBoxColumn.DataPropertyName = "LoweredRoleName";
     513            this.loweredRoleNameDataGridViewTextBoxColumn.HeaderText = "Lowered Name";
     514            this.loweredRoleNameDataGridViewTextBoxColumn.Name = "loweredRoleNameDataGridViewTextBoxColumn";
     515            this.loweredRoleNameDataGridViewTextBoxColumn.Width = 96;
     516            //
     517            // descriptionDataGridViewTextBoxColumn
     518            //
     519            this.descriptionDataGridViewTextBoxColumn.AutoSizeMode = System.Windows.Forms.DataGridViewAutoSizeColumnMode.AllCells;
     520            this.descriptionDataGridViewTextBoxColumn.DataPropertyName = "Description";
     521            this.descriptionDataGridViewTextBoxColumn.HeaderText = "Description";
     522            this.descriptionDataGridViewTextBoxColumn.Name = "descriptionDataGridViewTextBoxColumn";
     523            this.descriptionDataGridViewTextBoxColumn.Width = 85;
    333524            //
    334525            // UserManagement
     
    340531            this.Name = "UserManagement";
    341532            this.Text = "UserManagement";
    342             this.grpUsers.ResumeLayout(false);
    343             ((System.ComponentModel.ISupportInitialize)(this.dgvUsers)).EndInit();
    344             this.grpRoles.ResumeLayout(false);
    345             ((System.ComponentModel.ISupportInitialize)(this.dgvRoles)).EndInit();
     533            ((System.ComponentModel.ISupportInitialize)(this.bsUsers)).EndInit();
     534            ((System.ComponentModel.ISupportInitialize)(this.bsRoles)).EndInit();
    346535            this.scMain.Panel1.ResumeLayout(false);
    347536            this.scMain.Panel2.ResumeLayout(false);
    348537            ((System.ComponentModel.ISupportInitialize)(this.scMain)).EndInit();
    349538            this.scMain.ResumeLayout(false);
     539            this.tabControl1.ResumeLayout(false);
     540            this.tabPage1.ResumeLayout(false);
     541            this.tabPage2.ResumeLayout(false);
     542            this.tabControl2.ResumeLayout(false);
     543            this.tabPage4.ResumeLayout(false);
     544            this.tabControl3.ResumeLayout(false);
     545            this.tabPage5.ResumeLayout(false);
     546            this.tabPage5.PerformLayout();
     547            this.tabPage6.ResumeLayout(false);
     548            ((System.ComponentModel.ISupportInitialize)(this.dgvUsers)).EndInit();
     549            ((System.ComponentModel.ISupportInitialize)(this.dgvRoles)).EndInit();
    350550            this.panel1.ResumeLayout(false);
    351             this.panel2.ResumeLayout(false);
    352             ((System.ComponentModel.ISupportInitialize)(this.bsUsers)).EndInit();
    353             ((System.ComponentModel.ISupportInitialize)(this.bsRoles)).EndInit();
     551            this.tabPage3.ResumeLayout(false);
     552            this.tabPage3.PerformLayout();
     553            ((System.ComponentModel.ISupportInitialize)(this.dataGridView1)).EndInit();
     554            ((System.ComponentModel.ISupportInitialize)(this.dataGridView2)).EndInit();
    354555            this.ResumeLayout(false);
    355556
     
    358559        #endregion
    359560
    360         private System.Windows.Forms.GroupBox grpUsers;
    361         private System.Windows.Forms.DataGridView dgvUsers;
    362         private System.Windows.Forms.Button btnUserNew;
    363         private System.Windows.Forms.Button btnUserModify;
    364         private System.Windows.Forms.Button btnUserDelete;
    365         private System.Windows.Forms.GroupBox grpRoles;
    366         private System.Windows.Forms.DataGridView dgvRoles;
    367         private System.Windows.Forms.Button btnRoleNew;
    368         private System.Windows.Forms.Button btnRoleModify;
    369         private System.Windows.Forms.Button btnRoleDelete;
    370561        private System.Windows.Forms.BindingSource bsUsers;
    371562        private System.Windows.Forms.BindingSource bsRoles;
    372         private System.Windows.Forms.DataGridViewTextBoxColumn applicationIdDataGridViewTextBoxColumn1;
     563        private System.Windows.Forms.SplitContainer scMain;
     564        private System.Windows.Forms.TabControl tabControl1;
     565        private System.Windows.Forms.TabPage tabPage1;
     566        private System.Windows.Forms.DataGridView dgvUsers;
     567        private System.Windows.Forms.TabControl tabControl2;
     568        private System.Windows.Forms.TabPage tabPage4;
     569        private System.Windows.Forms.TabPage tabPage2;
     570        private System.Windows.Forms.DataGridView dgvRoles;
     571        private System.Windows.Forms.TabControl tabControl3;
     572        private System.Windows.Forms.TabPage tabPage5;
     573        private System.Windows.Forms.TabPage tabPage6;
     574        private System.Windows.Forms.Panel panel1;
     575        private System.Windows.Forms.Label label1;
     576        private System.Windows.Forms.DataGridViewTextBoxColumn membershipDataGridViewTextBoxColumn;
     577        private System.Windows.Forms.DataGridViewTextBoxColumn applicationIdDataGridViewTextBoxColumn;
    373578        private System.Windows.Forms.DataGridViewTextBoxColumn userIdDataGridViewTextBoxColumn;
    374579        private System.Windows.Forms.DataGridViewTextBoxColumn userNameDataGridViewTextBoxColumn;
     
    377582        private System.Windows.Forms.DataGridViewCheckBoxColumn isAnonymousDataGridViewCheckBoxColumn;
    378583        private System.Windows.Forms.DataGridViewTextBoxColumn lastActivityDateDataGridViewTextBoxColumn;
    379         private System.Windows.Forms.SplitContainer scMain;
    380         private System.Windows.Forms.Panel panel1;
    381         private System.Windows.Forms.Panel panel2;
    382         private System.Windows.Forms.DataGridViewTextBoxColumn applicationIdDataGridViewTextBoxColumn;
    383         private System.Windows.Forms.DataGridViewTextBoxColumn RoleId;
    384         private System.Windows.Forms.DataGridViewTextBoxColumn RoleName;
    385         private System.Windows.Forms.DataGridViewTextBoxColumn LoweredRoleName;
    386         private System.Windows.Forms.DataGridViewTextBoxColumn Description;
     584        private System.Windows.Forms.TabPage tabPage3;
     585        private System.Windows.Forms.TextBox emailTextBox;
     586        private System.Windows.Forms.TextBox passwordSaltTextBox;
     587        private System.Windows.Forms.TextBox passwordQuestionTextBox;
     588        private System.Windows.Forms.TextBox passwordAnswerTextBox;
     589        private System.Windows.Forms.TextBox passwordTextBox;
     590        private System.Windows.Forms.CheckBox isAnonymousCheckBox;
     591        private System.Windows.Forms.DataGridView dataGridView1;
     592        private System.Windows.Forms.DataGridViewTextBoxColumn roleIdDataGridViewTextBoxColumn;
     593        private System.Windows.Forms.DataGridViewTextBoxColumn roleNameDataGridViewTextBoxColumn;
     594        private System.Windows.Forms.DataGridViewTextBoxColumn loweredRoleNameDataGridViewTextBoxColumn;
     595        private System.Windows.Forms.DataGridViewTextBoxColumn descriptionDataGridViewTextBoxColumn;
     596        private System.Windows.Forms.TextBox roleNameTextBox;
     597        private System.Windows.Forms.DataGridView dataGridView2;
    387598    }
    388599}
  • branches/UserManagement/HeuristicLab.Services.Authentication.TestClient/UserManagement.cs

    r4590 r4647  
    1515
    1616        AuthenticationService service;
     17        Guid applicationId = new Guid("04371D20-8FD4-4607-A632-42C8D186786B");
    1718
    1819        public UserManagement()
     
    2122            Initialize();
    2223        }
     24
     25
    2326        private void Initialize()
    2427        {
     
    2629            if (service != null)
    2730            {
    28                 this.bsRoles.DataSource = service.GetRoles();
    29                 this.bsUsers.DataSource = service.GetUsers();
     31                this.bsRoles.DataSource = service.GetRoles(applicationId);
     32                this.bsUsers.DataSource = service.GetUsers(applicationId);
    3033
    3134            }
    3235        }
    3336
    34         private void btnUserNew_Click(object sender, EventArgs e)
    35         {
    36             UserDetail frmUserDetail = new UserDetail(UserDetailMode.Insert, service);
    37             frmUserDetail.Show(this);
    38         }
    39 
    40 
    41         private void btnUserModify_Click(object sender, EventArgs e)
    42         {
    43 
    44            
    45             if (dgvUsers.SelectedRows.Count == 1)
    46             {
    47                 User user = (User)dgvUsers.SelectedRows[0].DataBoundItem;
    48                 if (user != null)
    49                 {
    50                    
    51                     UserDetail frmUserDetail = new UserDetail(UserDetailMode.Update,service);
    52                     frmUserDetail.Show(this);
    53                     frmUserDetail.Initialize(user);
    54                 }
    55             }
    56         }
    57 
    58         private void btnUserDelete_Click(object sender, EventArgs e)
    59         {
    60             if (dgvUsers.SelectedRows.Count == 1)
    61             {
    62                 User user = (User)dgvUsers.SelectedRows[0].DataBoundItem;
    63                 if (user != null)
    64                 {
    65                     service.DeleteUser(user.UserId);
    66                 }
    67             }
    68         }
    69 
    70         private void btnRoleNew_Click(object sender, EventArgs e)
    71         {
    72             RoleDetail frmRoleDetail = new RoleDetail(RoleDetailMode.Insert, service,null);
    73             frmRoleDetail.Show(this);
    74         }         
    75 
    76         private void btnRoleModify_Click(object sender, EventArgs e)
    77         {
    78             if (dgvRoles.SelectedRows.Count == 1)
    79             {
    80                 Role role = (Role)dgvRoles.SelectedRows[0].DataBoundItem;
    81                 if (role != null)
    82                 {
    83 
    84                     RoleDetail frmRoleDetail = new RoleDetail(RoleDetailMode.Update, service, role);
    85                     frmRoleDetail.Show(this);
    86                  
    87                 }
    88             }
    89         }
    90 
    91         private void btnRoleDelete_Click(object sender, EventArgs e)
    92         {
    93             if (dgvRoles.SelectedRows.Count == 1)
    94             {
    95                 Role role = (Role)dgvRoles.SelectedRows[0].DataBoundItem;
    96                 if (role != null)
    97                 {
    98                     service.DeleteRole(role.RoleId);
    99                 }
    100             }
    101         }
     37   
    10238
    10339 
  • branches/UserManagement/HeuristicLab.Services.Authentication.TestClient/UserManagement.resx

    r4590 r4647  
    121121    <value>17, 17</value>
    122122  </metadata>
    123   <metadata name="RoleId.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    124     <value>True</value>
    125   </metadata>
    126   <metadata name="RoleName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    127     <value>True</value>
    128   </metadata>
    129   <metadata name="LoweredRoleName.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    130     <value>True</value>
    131   </metadata>
    132   <metadata name="Description.UserAddedColumn" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
    133     <value>True</value>
    134   </metadata>
    135123  <metadata name="bsRoles.TrayLocation" type="System.Drawing.Point, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a">
    136124    <value>154, 17</value>
    137125  </metadata>
     126  <metadata name="roleNameLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     127    <value>False</value>
     128  </metadata>
     129  <metadata name="emailLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     130    <value>False</value>
     131  </metadata>
     132  <metadata name="passwordSaltLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     133    <value>False</value>
     134  </metadata>
     135  <metadata name="passwordQuestionLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     136    <value>False</value>
     137  </metadata>
     138  <metadata name="passwordAnswerLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     139    <value>False</value>
     140  </metadata>
     141  <metadata name="passwordLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     142    <value>False</value>
     143  </metadata>
     144  <metadata name="isAnonymousLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     145    <value>False</value>
     146  </metadata>
     147  <metadata name="isAnonymousLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     148    <value>False</value>
     149  </metadata>
     150  <metadata name="passwordLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     151    <value>False</value>
     152  </metadata>
     153  <metadata name="passwordAnswerLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     154    <value>False</value>
     155  </metadata>
     156  <metadata name="passwordQuestionLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     157    <value>False</value>
     158  </metadata>
     159  <metadata name="passwordSaltLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     160    <value>False</value>
     161  </metadata>
     162  <metadata name="emailLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     163    <value>False</value>
     164  </metadata>
     165  <metadata name="roleNameLabel.GenerateMember" type="System.Boolean, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089">
     166    <value>False</value>
     167  </metadata>
    138168</root>
Note: See TracChangeset for help on using the changeset viewer.