OSDN Git Service

Keep selection
authorLatif Khalifa <latifer@streamgrid.net>
Fri, 19 Jun 2009 21:58:51 +0000 (21:58 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Fri, 19 Jun 2009 21:58:51 +0000 (21:58 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@59 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Consoles/ChatConsole.Designer.cs
Radegast/GUI/Dialogs/Objects.Designer.cs
Radegast/GUI/Dialogs/Objects.cs

index a0f1317..f56ac9d 100644 (file)
@@ -186,6 +186,7 @@ namespace Radegast
             this.lvwObjects.Dock = System.Windows.Forms.DockStyle.Fill;\r
             this.lvwObjects.FullRowSelect = true;\r
             this.lvwObjects.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;\r
+            this.lvwObjects.HideSelection = false;\r
             this.lvwObjects.LabelWrap = false;\r
             this.lvwObjects.Location = new System.Drawing.Point(0, 0);\r
             this.lvwObjects.MultiSelect = false;\r
@@ -212,7 +213,7 @@ namespace Radegast
             this.ctxPoint,\r
             this.ctxSource});\r
             this.avatarContext.Name = "avatarContext";\r
-            this.avatarContext.Size = new System.Drawing.Size(157, 246);\r
+            this.avatarContext.Size = new System.Drawing.Size(157, 224);\r
             this.avatarContext.Opening += new System.ComponentModel.CancelEventHandler(this.avatarContext_Opening);\r
             // \r
             // ctxProfile\r
index bc55038..1631bee 100644 (file)
@@ -76,7 +76,6 @@ namespace Radegast
             this.btnRefresh = new System.Windows.Forms.Button();\r
             this.nudRadius = new System.Windows.Forms.NumericUpDown();\r
             this.lblDistance = new System.Windows.Forms.Label();\r
-            this.txtCurrentPrim = new System.Windows.Forms.TextBox();\r
             this.groupBox1 = new System.Windows.Forms.GroupBox();\r
             this.rbName = new System.Windows.Forms.RadioButton();\r
             this.rbDistance = new System.Windows.Forms.RadioButton();\r
@@ -226,12 +225,13 @@ namespace Radegast
             this.columnHeader1});\r
             this.lstPrims.FullRowSelect = true;\r
             this.lstPrims.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None;\r
+            this.lstPrims.HideSelection = false;\r
             this.lstPrims.LabelWrap = false;\r
-            this.lstPrims.Location = new System.Drawing.Point(12, 66);\r
+            this.lstPrims.Location = new System.Drawing.Point(12, 39);\r
             this.lstPrims.MultiSelect = false;\r
             this.lstPrims.Name = "lstPrims";\r
             this.lstPrims.ShowGroups = false;\r
-            this.lstPrims.Size = new System.Drawing.Size(361, 348);\r
+            this.lstPrims.Size = new System.Drawing.Size(361, 375);\r
             this.lstPrims.TabIndex = 10;\r
             this.lstPrims.UseCompatibleStateImageBehavior = false;\r
             this.lstPrims.View = System.Windows.Forms.View.Details;\r
@@ -284,14 +284,6 @@ namespace Radegast
             this.lblDistance.TabIndex = 7;\r
             this.lblDistance.Text = "radius (m)";\r
             // \r
-            // txtCurrentPrim\r
-            // \r
-            this.txtCurrentPrim.Location = new System.Drawing.Point(12, 39);\r
-            this.txtCurrentPrim.Name = "txtCurrentPrim";\r
-            this.txtCurrentPrim.ReadOnly = true;\r
-            this.txtCurrentPrim.Size = new System.Drawing.Size(361, 21);\r
-            this.txtCurrentPrim.TabIndex = 13;\r
-            // \r
             // groupBox1\r
             // \r
             this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right)));\r
@@ -352,7 +344,6 @@ namespace Radegast
             this.ClientSize = new System.Drawing.Size(492, 445);\r
             this.Controls.Add(this.statusStrip1);\r
             this.Controls.Add(this.groupBox1);\r
-            this.Controls.Add(this.txtCurrentPrim);\r
             this.Controls.Add(this.nudRadius);\r
             this.Controls.Add(this.btnRefresh);\r
             this.Controls.Add(this.lstPrims);\r
@@ -399,7 +390,6 @@ namespace Radegast
         private System.Windows.Forms.NumericUpDown nudRadius;\r
         private System.Windows.Forms.Label lblDistance;\r
         private System.Windows.Forms.Button btnBuy;\r
-        private System.Windows.Forms.TextBox txtCurrentPrim;\r
         private System.Windows.Forms.GroupBox groupBox1;\r
         private System.Windows.Forms.RadioButton rbName;\r
         private System.Windows.Forms.RadioButton rbDistance;\r
index 4afb0ee..b38c24a 100644 (file)
@@ -190,15 +190,6 @@ namespace Radegast
             }\r
             #endregion\r
 \r
-            #region Update selected prim text box\r
-            p = txtCurrentPrim.Tag as Primitive;\r
-            if (p != null && p.ID == props.ObjectID)\r
-            {\r
-                p.Properties = props;\r
-                txtCurrentPrim.Text = GetObjectName(p);\r
-            }\r
-            #endregion\r
-\r
         }\r
 \r
         private void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message)\r
@@ -418,8 +409,6 @@ namespace Radegast
                 gbxInworld.Enabled = true;\r
                 currentPrim = lstPrims.SelectedItems[0].Tag as Primitive;\r
                 btnBuy.Tag = currentPrim;\r
-                txtCurrentPrim.Text = GetObjectName(currentPrim);\r
-                txtCurrentPrim.Tag = currentPrim;\r
 \r
                 if ((currentPrim.Flags & PrimFlags.Money) != 0)\r
                 {\r