- Timestamp:
- 03/13/12 16:25:30 (13 years ago)
- Location:
- branches/ClientUserManagement/HeuristicLab.Clients.Access.Views/3.3/UserViews
- Files:
-
- 2 added
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/ClientUserManagement/HeuristicLab.Clients.Access.Views/3.3/UserViews/LightweightUserInformationView.Designer.cs
r7599 r7611 43 43 // 44 44 this.changePasswordButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); 45 this.changePasswordButton.Location = new System.Drawing.Point( 466, 308);45 this.changePasswordButton.Location = new System.Drawing.Point(316, 209); 46 46 this.changePasswordButton.Name = "changePasswordButton"; 47 47 this.changePasswordButton.Size = new System.Drawing.Size(112, 23); … … 49 49 this.changePasswordButton.Text = "Change Password"; 50 50 this.changePasswordButton.UseVisualStyleBackColor = true; 51 this.changePasswordButton.Click += new System.EventHandler(this.changePasswordButton_Click); 51 52 // 52 53 // label3 … … 63 64 this.fullNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 64 65 | System.Windows.Forms.AnchorStyles.Right))); 65 this.fullNameTextBox.Location = new System.Drawing.Point( 74, 29);66 this.fullNameTextBox.Location = new System.Drawing.Point(69, 29); 66 67 this.fullNameTextBox.Name = "fullNameTextBox"; 67 this.fullNameTextBox.Size = new System.Drawing.Size( 507, 20);68 this.fullNameTextBox.Size = new System.Drawing.Size(359, 20); 68 69 this.fullNameTextBox.TabIndex = 16; 69 70 // … … 80 81 // 81 82 this.label1.AutoSize = true; 82 this.label1.Location = new System.Drawing.Point( 5, 6);83 this.label1.Location = new System.Drawing.Point(0, 6); 83 84 this.label1.Name = "label1"; 84 85 this.label1.Size = new System.Drawing.Size(63, 13); … … 92 93 | System.Windows.Forms.AnchorStyles.Right))); 93 94 this.groupsListBox.FormattingEnabled = true; 94 this.groupsListBox.Location = new System.Drawing.Point(3, 16); 95 this.groupsListBox.Location = new System.Drawing.Point(0, 17); 96 this.groupsListBox.Margin = new System.Windows.Forms.Padding(0); 95 97 this.groupsListBox.Name = "groupsListBox"; 96 this.groupsListBox.Size = new System.Drawing.Size(2 77, 225);98 this.groupsListBox.Size = new System.Drawing.Size(210, 121); 97 99 this.groupsListBox.TabIndex = 14; 98 100 // … … 103 105 | System.Windows.Forms.AnchorStyles.Right))); 104 106 this.rolesListBox.FormattingEnabled = true; 105 this.rolesListBox.Location = new System.Drawing.Point(3, 16); 107 this.rolesListBox.Location = new System.Drawing.Point(0, 17); 108 this.rolesListBox.Margin = new System.Windows.Forms.Padding(0); 106 109 this.rolesListBox.Name = "rolesListBox"; 107 this.rolesListBox.Size = new System.Drawing.Size(2 80, 225);110 this.rolesListBox.Size = new System.Drawing.Size(211, 121); 108 111 this.rolesListBox.TabIndex = 13; 109 112 // … … 111 114 // 112 115 this.label2.AutoSize = true; 113 this.label2.Location = new System.Drawing.Point( 5, 32);116 this.label2.Location = new System.Drawing.Point(0, 32); 114 117 this.label2.Name = "label2"; 115 118 this.label2.Size = new System.Drawing.Size(57, 13); … … 121 124 this.userNameTextBox.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 122 125 | System.Windows.Forms.AnchorStyles.Right))); 123 this.userNameTextBox.Location = new System.Drawing.Point( 74, 3);126 this.userNameTextBox.Location = new System.Drawing.Point(69, 3); 124 127 this.userNameTextBox.Name = "userNameTextBox"; 125 this.userNameTextBox.Size = new System.Drawing.Size( 507, 20);128 this.userNameTextBox.Size = new System.Drawing.Size(359, 20); 126 129 this.userNameTextBox.TabIndex = 15; 127 130 // … … 131 134 | System.Windows.Forms.AnchorStyles.Left) 132 135 | System.Windows.Forms.AnchorStyles.Right))); 133 this.splitContainer.Location = new System.Drawing.Point( 8, 55);136 this.splitContainer.Location = new System.Drawing.Point(3, 55); 134 137 this.splitContainer.Name = "splitContainer"; 135 138 // … … 143 146 this.splitContainer.Panel2.Controls.Add(this.label4); 144 147 this.splitContainer.Panel2.Controls.Add(this.groupsListBox); 145 this.splitContainer.Size = new System.Drawing.Size( 573, 247);146 this.splitContainer.SplitterDistance = 2 86;148 this.splitContainer.Size = new System.Drawing.Size(425, 148); 149 this.splitContainer.SplitterDistance = 211; 147 150 this.splitContainer.TabIndex = 20; 148 151 // … … 158 161 this.Controls.Add(this.userNameTextBox); 159 162 this.Name = "LightweightUserInformationView"; 160 this.Size = new System.Drawing.Size( 584, 334);163 this.Size = new System.Drawing.Size(431, 235); 161 164 this.splitContainer.Panel1.ResumeLayout(false); 162 165 this.splitContainer.Panel1.PerformLayout(); -
branches/ClientUserManagement/HeuristicLab.Clients.Access.Views/3.3/UserViews/LightweightUserInformationView.cs
r7599 r7611 38 38 protected override void OnContentChanged() { 39 39 base.OnContentChanged(); 40 rolesListBox.Items.Clear(); 41 groupsListBox.Items.Clear(); 42 40 43 if (Content == null) { 41 44 userNameTextBox.Clear(); 42 45 fullNameTextBox.Clear(); 43 rolesListBox.Items.Clear();44 groupsListBox.Items.Clear();45 46 } else { 46 47 userNameTextBox.Text = Content.UserName; … … 50 51 } 51 52 } 53 54 private void changePasswordButton_Click(object sender, System.EventArgs e) { 55 using (ChangePasswordDialog dialog = new ChangePasswordDialog()) { 56 dialog.ShowDialog(this); 57 } 58 } 52 59 } 53 60 } -
branches/ClientUserManagement/HeuristicLab.Clients.Access.Views/3.3/UserViews/RefreshableLightweightUserInformationView.Designer.cs
r7599 r7611 27 27 this.SuspendLayout(); 28 28 // 29 // refreshButton 30 // 31 this.refreshButton.Location = new System.Drawing.Point(4, 3); 32 // 29 33 // lightweightUserInformationView 30 34 // … … 37 41 this.lightweightUserInformationView.Name = "lightweightUserInformationView"; 38 42 this.lightweightUserInformationView.ReadOnly = false; 39 this.lightweightUserInformationView.Size = new System.Drawing.Size( 473, 375);43 this.lightweightUserInformationView.Size = new System.Drawing.Size(378, 245); 40 44 this.lightweightUserInformationView.TabIndex = 2; 41 45 // … … 46 50 this.Controls.Add(this.lightweightUserInformationView); 47 51 this.Name = "RefreshableLightweightUserInformationView"; 48 this.Size = new System.Drawing.Size( 479, 411);52 this.Size = new System.Drawing.Size(384, 281); 49 53 this.Controls.SetChildIndex(this.lightweightUserInformationView, 0); 50 54 this.Controls.SetChildIndex(this.refreshButton, 0); -
branches/ClientUserManagement/HeuristicLab.Clients.Access.Views/3.3/UserViews/RefreshableLightweightUserInformationView.cs
r7599 r7611 21 21 22 22 using System; 23 using System.Windows.Forms; 23 24 24 25 namespace HeuristicLab.Clients.Access.Views { … … 56 57 base.Content_Refreshed(sender, e); 57 58 lightweightUserInformationView.Enabled = true; 58 lightweightUserInformationView.Content = UserInformation.Instance.User; 59 if (!UserInformation.Instance.UserExists) { 60 MessageBox.Show("Couldn't fetch user information from the server." + Environment.NewLine + "Please verify that you have an existing user and that your user name and password is correct. ", "HeuristicLab Access Service", MessageBoxButtons.OK, MessageBoxIcon.Error); 61 lightweightUserInformationView.Content = null; 62 } else { 63 lightweightUserInformationView.Content = UserInformation.Instance.User; 64 } 59 65 } 60 66 } -
branches/ClientUserManagement/HeuristicLab.Clients.Access.Views/3.3/UserViews/UserInformationDialog.Designer.cs
r7599 r7611 24 24 /// </summary> 25 25 private void InitializeComponent() { 26 this.closeButton = new System.Windows.Forms.Button(); 26 27 this.refreshableLightweightUserInformationView = new HeuristicLab.Clients.Access.Views.RefreshableLightweightUserInformationView(); 27 this.closeButton = new System.Windows.Forms.Button();28 28 this.SuspendLayout(); 29 // 30 // closeButton 31 // 32 this.closeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Left))); 33 this.closeButton.Location = new System.Drawing.Point(16, 245); 34 this.closeButton.Name = "closeButton"; 35 this.closeButton.Size = new System.Drawing.Size(75, 23); 36 this.closeButton.TabIndex = 1; 37 this.closeButton.Text = "OK"; 38 this.closeButton.UseVisualStyleBackColor = true; 39 this.closeButton.Click += new System.EventHandler(this.closeButton_Click); 29 40 // 30 41 // refreshableLightweightUserInformationView … … 38 49 this.refreshableLightweightUserInformationView.Name = "refreshableLightweightUserInformationView"; 39 50 this.refreshableLightweightUserInformationView.ReadOnly = false; 40 this.refreshableLightweightUserInformationView.Size = new System.Drawing.Size( 464, 299);51 this.refreshableLightweightUserInformationView.Size = new System.Drawing.Size(362, 262); 41 52 this.refreshableLightweightUserInformationView.TabIndex = 0; 42 //43 // closeButton44 //45 this.closeButton.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));46 this.closeButton.Location = new System.Drawing.Point(401, 328);47 this.closeButton.Name = "closeButton";48 this.closeButton.Size = new System.Drawing.Size(75, 23);49 this.closeButton.TabIndex = 1;50 this.closeButton.Text = "OK";51 this.closeButton.UseVisualStyleBackColor = true;52 this.closeButton.Click += new System.EventHandler(this.closeButton_Click);53 53 // 54 54 // UserInformationDialog … … 57 57 this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); 58 58 this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; 59 this.ClientSize = new System.Drawing.Size( 488, 363);59 this.ClientSize = new System.Drawing.Size(386, 286); 60 60 this.Controls.Add(this.closeButton); 61 61 this.Controls.Add(this.refreshableLightweightUserInformationView);
Note: See TracChangeset
for help on using the changeset viewer.