OSDN Git Service

Remove redundant refresh button RAD-471
authorLatif Khalifa <latifer@streamgrid.net>
Sat, 15 Mar 2014 04:46:11 +0000 (05:46 +0100)
committerLatif Khalifa <latifer@streamgrid.net>
Sat, 15 Mar 2014 04:46:11 +0000 (05:46 +0100)
Radegast/GUI/Consoles/GroupDetails.Designer.cs
Radegast/GUI/Consoles/GroupDetails.cs

index 4454a53..ad337e2 100644 (file)
@@ -97,6 +97,7 @@ namespace Radegast
             this.chHasRole = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
             this.chRoleName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
             this.btnInviteNewMember = new System.Windows.Forms.Button();
+            this.btnBanMember = new System.Windows.Forms.Button();
             this.btnEjectMember = new System.Windows.Forms.Button();
             this.label3 = new System.Windows.Forms.Label();
             this.lblAssignedRoles = new System.Windows.Forms.Label();
@@ -161,7 +162,6 @@ namespace Radegast
             this.chBannedName = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
             this.chBannedOn = ((System.Windows.Forms.ColumnHeader)(new System.Windows.Forms.ColumnHeader()));
             this.pnlBannedBottom = new System.Windows.Forms.Panel();
-            this.btnRefreshBanned = new System.Windows.Forms.Button();
             this.btnUnban = new System.Windows.Forms.Button();
             this.btnBan = new System.Windows.Forms.Button();
             this.pnlBannedTop = new System.Windows.Forms.Panel();
@@ -170,7 +170,6 @@ namespace Radegast
             this.btnClose = new System.Windows.Forms.Button();
             this.btnApply = new System.Windows.Forms.Button();
             this.btnRefresh = new System.Windows.Forms.Button();
-            this.btnBanMember = new System.Windows.Forms.Button();
             this.tcGroupDetails.SuspendLayout();
             this.tpGeneral.SuspendLayout();
             this.memberListContextMenu.SuspendLayout();
@@ -603,6 +602,18 @@ namespace Radegast
             this.btnInviteNewMember.UseVisualStyleBackColor = true;
             this.btnInviteNewMember.Click += new System.EventHandler(this.btnInviteNewMember_Click);
             // 
+            // btnBanMember
+            // 
+            this.btnBanMember.AccessibleName = "Eject from group";
+            this.btnBanMember.Enabled = false;
+            this.btnBanMember.Location = new System.Drawing.Point(178, 3);
+            this.btnBanMember.Name = "btnBanMember";
+            this.btnBanMember.Size = new System.Drawing.Size(80, 23);
+            this.btnBanMember.TabIndex = 11;
+            this.btnBanMember.Text = "Ban";
+            this.btnBanMember.UseVisualStyleBackColor = false;
+            this.btnBanMember.Click += new System.EventHandler(this.btnBanMember_Click);
+            // 
             // btnEjectMember
             // 
             this.btnEjectMember.AccessibleName = "Eject from group";
@@ -1283,7 +1294,6 @@ namespace Radegast
             // 
             // pnlBannedBottom
             // 
-            this.pnlBannedBottom.Controls.Add(this.btnRefreshBanned);
             this.pnlBannedBottom.Controls.Add(this.btnUnban);
             this.pnlBannedBottom.Controls.Add(this.btnBan);
             this.pnlBannedBottom.Dock = System.Windows.Forms.DockStyle.Bottom;
@@ -1292,16 +1302,6 @@ namespace Radegast
             this.pnlBannedBottom.Size = new System.Drawing.Size(400, 39);
             this.pnlBannedBottom.TabIndex = 4;
             // 
-            // btnRefreshBanned
-            // 
-            this.btnRefreshBanned.Location = new System.Drawing.Point(165, 3);
-            this.btnRefreshBanned.Name = "btnRefreshBanned";
-            this.btnRefreshBanned.Size = new System.Drawing.Size(75, 23);
-            this.btnRefreshBanned.TabIndex = 2;
-            this.btnRefreshBanned.Text = "Refresh";
-            this.btnRefreshBanned.UseVisualStyleBackColor = true;
-            this.btnRefreshBanned.Click += new System.EventHandler(this.btnRefreshBanned_Click);
-            // 
             // btnUnban
             // 
             this.btnUnban.Enabled = false;
@@ -1386,18 +1386,6 @@ namespace Radegast
             this.btnRefresh.UseVisualStyleBackColor = true;
             this.btnRefresh.Click += new System.EventHandler(this.btnRefresh_Click);
             // 
-            // btnBanMember
-            // 
-            this.btnBanMember.AccessibleName = "Eject from group";
-            this.btnBanMember.Enabled = false;
-            this.btnBanMember.Location = new System.Drawing.Point(178, 3);
-            this.btnBanMember.Name = "btnBanMember";
-            this.btnBanMember.Size = new System.Drawing.Size(80, 23);
-            this.btnBanMember.TabIndex = 11;
-            this.btnBanMember.Text = "Ban";
-            this.btnBanMember.UseVisualStyleBackColor = false;
-            this.btnBanMember.Click += new System.EventHandler(this.btnBanMember_Click);
-            // 
             // GroupDetails
             // 
             this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Inherit;
@@ -1549,7 +1537,6 @@ namespace Radegast
         public System.Windows.Forms.ColumnHeader chBannedName;
         public System.Windows.Forms.ColumnHeader chBannedOn;
         private System.Windows.Forms.Panel pnlBannedBottom;
-        private System.Windows.Forms.Button btnRefreshBanned;
         private System.Windows.Forms.Button btnUnban;
         private System.Windows.Forms.Button btnBan;
         private System.Windows.Forms.Panel pnlBannedTop;
index fa1ce72..458ff56 100644 (file)
@@ -654,6 +654,10 @@ namespace Radegast
                 case "tpMembersRoles":
                     RefreshMembersRoles();
                     break;
+
+                case "tpBanned":
+                    RefreshBans();
+                    break;
             }
         }
         #endregion
@@ -1296,11 +1300,6 @@ namespace Radegast
             }
         }
 
-        private void btnRefreshBanned_Click(object sender, EventArgs e)
-        {
-            RefreshBans();
-        }
-
         private void lwBannedMembers_SelectedIndexChanged(object sender, EventArgs e)
         {
             btnUnban.Enabled = lwBannedMembers.SelectedItems.Count > 0;