OSDN Git Service

RAD-365: Display group ID on the group profile
authorLatif Khalifa <latifer@streamgrid.net>
Sun, 8 Jul 2012 13:04:56 +0000 (15:04 +0200)
committerLatif Khalifa <latifer@streamgrid.net>
Sun, 8 Jul 2012 13:04:56 +0000 (15:04 +0200)
Radegast/GUI/Consoles/GroupDetails.Designer.cs
Radegast/GUI/Consoles/GroupDetails.cs

index 3680e41..0df50a8 100644 (file)
@@ -155,6 +155,7 @@ namespace Radegast
             this.btnClose = new System.Windows.Forms.Button();
             this.btnApply = new System.Windows.Forms.Button();
             this.btnRefresh = new System.Windows.Forms.Button();
+            this.txtGroupID = new System.Windows.Forms.TextBox();
             this.tcGroupDetails.SuspendLayout();
             this.tpGeneral.SuspendLayout();
             this.memberListContextMenu.SuspendLayout();
@@ -184,13 +185,14 @@ namespace Radegast
             this.tcGroupDetails.Location = new System.Drawing.Point(0, 0);
             this.tcGroupDetails.Name = "tcGroupDetails";
             this.tcGroupDetails.SelectedIndex = 0;
-            this.tcGroupDetails.Size = new System.Drawing.Size(408, 463);
+            this.tcGroupDetails.Size = new System.Drawing.Size(408, 465);
             this.tcGroupDetails.TabIndex = 0;
             this.tcGroupDetails.SelectedIndexChanged += new System.EventHandler(this.tcGroupDetails_SelectedIndexChanged);
             // 
             // tpGeneral
             // 
             this.tpGeneral.BackColor = System.Drawing.Color.Transparent;
+            this.tpGeneral.Controls.Add(this.txtGroupID);
             this.tpGeneral.Controls.Add(this.btnJoin);
             this.tpGeneral.Controls.Add(this.lvwGeneralMembers);
             this.tpGeneral.Controls.Add(this.lblOwners);
@@ -238,7 +240,7 @@ namespace Radegast
             this.lvwGeneralMembers.MultiSelect = false;
             this.lvwGeneralMembers.Name = "lvwGeneralMembers";
             this.lvwGeneralMembers.ShowGroups = false;
-            this.lvwGeneralMembers.Size = new System.Drawing.Size(385, 80);
+            this.lvwGeneralMembers.Size = new System.Drawing.Size(385, 82);
             this.lvwGeneralMembers.Sorting = System.Windows.Forms.SortOrder.Ascending;
             this.lvwGeneralMembers.TabIndex = 8;
             this.lvwGeneralMembers.UseCompatibleStateImageBehavior = false;
@@ -293,7 +295,7 @@ namespace Radegast
             this.tbxCharter.Multiline = true;
             this.tbxCharter.Name = "tbxCharter";
             this.tbxCharter.ReadOnly = true;
-            this.tbxCharter.Size = new System.Drawing.Size(239, 190);
+            this.tbxCharter.Size = new System.Drawing.Size(239, 156);
             this.tbxCharter.TabIndex = 6;
             this.tbxCharter.TextChanged += new System.EventHandler(this.tbxCharter_TextChanged);
             // 
@@ -465,7 +467,7 @@ namespace Radegast
             this.tpMembersRoles.Location = new System.Drawing.Point(4, 22);
             this.tpMembersRoles.Name = "tpMembersRoles";
             this.tpMembersRoles.Padding = new System.Windows.Forms.Padding(3);
-            this.tpMembersRoles.Size = new System.Drawing.Size(400, 439);
+            this.tpMembersRoles.Size = new System.Drawing.Size(400, 437);
             this.tpMembersRoles.TabIndex = 3;
             this.tpMembersRoles.Text = "Members && Roles";
             this.tpMembersRoles.UseVisualStyleBackColor = true;
@@ -1186,7 +1188,7 @@ namespace Radegast
             this.pnlBottomControls.Controls.Add(this.btnApply);
             this.pnlBottomControls.Controls.Add(this.btnRefresh);
             this.pnlBottomControls.Dock = System.Windows.Forms.DockStyle.Bottom;
-            this.pnlBottomControls.Location = new System.Drawing.Point(0, 463);
+            this.pnlBottomControls.Location = new System.Drawing.Point(0, 465);
             this.pnlBottomControls.Name = "pnlBottomControls";
             this.pnlBottomControls.Size = new System.Drawing.Size(408, 34);
             this.pnlBottomControls.TabIndex = 6;
@@ -1224,6 +1226,16 @@ namespace Radegast
             this.btnRefresh.UseVisualStyleBackColor = true;
             this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
             // 
+            // txtGroupID
+            // 
+            this.txtGroupID.Anchor = ((System.Windows.Forms.AnchorStyles)(((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Left) 
+            | System.Windows.Forms.AnchorStyles.Right)));
+            this.txtGroupID.Location = new System.Drawing.Point(155, 198);
+            this.txtGroupID.Name = "txtGroupID";
+            this.txtGroupID.ReadOnly = true;
+            this.txtGroupID.Size = new System.Drawing.Size(239, 20);
+            this.txtGroupID.TabIndex = 7;
+            // 
             // GroupDetails
             // 
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
@@ -1361,6 +1373,7 @@ namespace Radegast
         private System.Windows.Forms.GroupBox pnlNoticeAttachment;
         private System.Windows.Forms.ContextMenuStrip memberListContextMenu;
         private System.Windows.Forms.ToolStripMenuItem memberListContextMenuSave;
+        public System.Windows.Forms.TextBox txtGroupID;
 
     }
 }
index 7fc9172..092c07e 100644 (file)
@@ -65,6 +65,8 @@ namespace Radegast
                 pnlInsignia.Controls.Add(insignia);
             }
 
+            txtGroupID.Text = group.ID.ToString();
+
             lblGroupName.Text = group.Name;
             lvwGeneralMembers.ListViewItemSorter = new GroupMemberSorter();
             lvwMemberDetails.ListViewItemSorter = new GroupMemberSorter();
@@ -285,7 +287,7 @@ namespace Radegast
                 pnlInsignia.Controls.Add(insignia);
             }
 
-
+            lblGroupName.Text = e.Group.Name;
             tbxCharter.Text = group.Charter.Replace("\n", Environment.NewLine);
             lblFounded.Text = "Founded by: " + instance.Names.Get(group.FounderID);
             cbxShowInSearch.Checked = group.ShowInList;