From: Latif Khalifa Date: Fri, 19 Jun 2009 21:58:51 +0000 (+0000) Subject: Keep selection X-Git-Tag: release-1.6~58 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=64991bac066bfca960fcff42fa84f800a20804de;p=radegast%2Fradegast.git Keep selection git-svn-id: https://radegast.googlecode.com/svn/trunk@59 f7a694da-4d33-11de-9ad6-1127a62b9fcd --- diff --git a/Radegast/GUI/Consoles/ChatConsole.Designer.cs b/Radegast/GUI/Consoles/ChatConsole.Designer.cs index a0f1317..f56ac9d 100644 --- a/Radegast/GUI/Consoles/ChatConsole.Designer.cs +++ b/Radegast/GUI/Consoles/ChatConsole.Designer.cs @@ -186,6 +186,7 @@ namespace Radegast this.lvwObjects.Dock = System.Windows.Forms.DockStyle.Fill; this.lvwObjects.FullRowSelect = true; this.lvwObjects.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; + this.lvwObjects.HideSelection = false; this.lvwObjects.LabelWrap = false; this.lvwObjects.Location = new System.Drawing.Point(0, 0); this.lvwObjects.MultiSelect = false; @@ -212,7 +213,7 @@ namespace Radegast this.ctxPoint, this.ctxSource}); this.avatarContext.Name = "avatarContext"; - this.avatarContext.Size = new System.Drawing.Size(157, 246); + this.avatarContext.Size = new System.Drawing.Size(157, 224); this.avatarContext.Opening += new System.ComponentModel.CancelEventHandler(this.avatarContext_Opening); // // ctxProfile diff --git a/Radegast/GUI/Dialogs/Objects.Designer.cs b/Radegast/GUI/Dialogs/Objects.Designer.cs index bc55038..1631bee 100644 --- a/Radegast/GUI/Dialogs/Objects.Designer.cs +++ b/Radegast/GUI/Dialogs/Objects.Designer.cs @@ -76,7 +76,6 @@ namespace Radegast this.btnRefresh = new System.Windows.Forms.Button(); this.nudRadius = new System.Windows.Forms.NumericUpDown(); this.lblDistance = new System.Windows.Forms.Label(); - this.txtCurrentPrim = new System.Windows.Forms.TextBox(); this.groupBox1 = new System.Windows.Forms.GroupBox(); this.rbName = new System.Windows.Forms.RadioButton(); this.rbDistance = new System.Windows.Forms.RadioButton(); @@ -226,12 +225,13 @@ namespace Radegast this.columnHeader1}); this.lstPrims.FullRowSelect = true; this.lstPrims.HeaderStyle = System.Windows.Forms.ColumnHeaderStyle.None; + this.lstPrims.HideSelection = false; this.lstPrims.LabelWrap = false; - this.lstPrims.Location = new System.Drawing.Point(12, 66); + this.lstPrims.Location = new System.Drawing.Point(12, 39); this.lstPrims.MultiSelect = false; this.lstPrims.Name = "lstPrims"; this.lstPrims.ShowGroups = false; - this.lstPrims.Size = new System.Drawing.Size(361, 348); + this.lstPrims.Size = new System.Drawing.Size(361, 375); this.lstPrims.TabIndex = 10; this.lstPrims.UseCompatibleStateImageBehavior = false; this.lstPrims.View = System.Windows.Forms.View.Details; @@ -284,14 +284,6 @@ namespace Radegast this.lblDistance.TabIndex = 7; this.lblDistance.Text = "radius (m)"; // - // txtCurrentPrim - // - this.txtCurrentPrim.Location = new System.Drawing.Point(12, 39); - this.txtCurrentPrim.Name = "txtCurrentPrim"; - this.txtCurrentPrim.ReadOnly = true; - this.txtCurrentPrim.Size = new System.Drawing.Size(361, 21); - this.txtCurrentPrim.TabIndex = 13; - // // groupBox1 // this.groupBox1.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); @@ -352,7 +344,6 @@ namespace Radegast this.ClientSize = new System.Drawing.Size(492, 445); this.Controls.Add(this.statusStrip1); this.Controls.Add(this.groupBox1); - this.Controls.Add(this.txtCurrentPrim); this.Controls.Add(this.nudRadius); this.Controls.Add(this.btnRefresh); this.Controls.Add(this.lstPrims); @@ -399,7 +390,6 @@ namespace Radegast private System.Windows.Forms.NumericUpDown nudRadius; private System.Windows.Forms.Label lblDistance; private System.Windows.Forms.Button btnBuy; - private System.Windows.Forms.TextBox txtCurrentPrim; private System.Windows.Forms.GroupBox groupBox1; private System.Windows.Forms.RadioButton rbName; private System.Windows.Forms.RadioButton rbDistance; diff --git a/Radegast/GUI/Dialogs/Objects.cs b/Radegast/GUI/Dialogs/Objects.cs index 4afb0ee..b38c24a 100644 --- a/Radegast/GUI/Dialogs/Objects.cs +++ b/Radegast/GUI/Dialogs/Objects.cs @@ -190,15 +190,6 @@ namespace Radegast } #endregion - #region Update selected prim text box - p = txtCurrentPrim.Tag as Primitive; - if (p != null && p.ID == props.ObjectID) - { - p.Properties = props; - txtCurrentPrim.Text = GetObjectName(p); - } - #endregion - } private void Network_OnDisconnected(NetworkManager.DisconnectType reason, string message) @@ -418,8 +409,6 @@ namespace Radegast gbxInworld.Enabled = true; currentPrim = lstPrims.SelectedItems[0].Tag as Primitive; btnBuy.Tag = currentPrim; - txtCurrentPrim.Text = GetObjectName(currentPrim); - txtCurrentPrim.Tag = currentPrim; if ((currentPrim.Flags & PrimFlags.Money) != 0) {