OSDN Git Service

Added auto reconnect setting to settings panel RAD-58
authorLatif Khalifa <latifer@streamgrid.net>
Sat, 24 Oct 2009 15:15:45 +0000 (15:15 +0000)
committerLatif Khalifa <latifer@streamgrid.net>
Sat, 24 Oct 2009 15:15:45 +0000 (15:15 +0000)
git-svn-id: https://radegast.googlecode.com/svn/trunk@362 f7a694da-4d33-11de-9ad6-1127a62b9fcd

Radegast/GUI/Dialogs/Settings.Designer.cs
Radegast/GUI/Dialogs/Settings.cs

index 6a53eba..030e7e5 100644 (file)
@@ -66,6 +66,7 @@ namespace Radegast
             this.cbTrasactDialog = new System.Windows.Forms.CheckBox();\r
             this.cbIMTimeStamps = new System.Windows.Forms.CheckBox();\r
             this.cbChatTimestamps = new System.Windows.Forms.CheckBox();\r
+            this.cbAutoReconnect = new System.Windows.Forms.CheckBox();\r
             this.tabControl1.SuspendLayout();\r
             this.tbpGeneral.SuspendLayout();\r
             this.SuspendLayout();\r
@@ -83,6 +84,7 @@ namespace Radegast
             // \r
             // tbpGeneral\r
             // \r
+            this.tbpGeneral.Controls.Add(this.cbAutoReconnect);\r
             this.tbpGeneral.Controls.Add(this.cbFriendsNotifications);\r
             this.tbpGeneral.Controls.Add(this.cbTrasactChat);\r
             this.tbpGeneral.Controls.Add(this.cbTrasactDialog);\r
@@ -99,10 +101,10 @@ namespace Radegast
             // cbFriendsNotifications\r
             // \r
             this.cbFriendsNotifications.AutoSize = true;\r
-            this.cbFriendsNotifications.Location = new System.Drawing.Point(6, 98);\r
+            this.cbFriendsNotifications.Location = new System.Drawing.Point(8, 98);\r
             this.cbFriendsNotifications.Name = "cbFriendsNotifications";\r
             this.cbFriendsNotifications.Size = new System.Drawing.Size(184, 17);\r
-            this.cbFriendsNotifications.TabIndex = 1;\r
+            this.cbFriendsNotifications.TabIndex = 4;\r
             this.cbFriendsNotifications.Text = "Display friends online notifications";\r
             this.cbFriendsNotifications.UseVisualStyleBackColor = true;\r
             this.cbFriendsNotifications.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);\r
@@ -113,7 +115,7 @@ namespace Radegast
             this.cbTrasactChat.Location = new System.Drawing.Point(8, 75);\r
             this.cbTrasactChat.Name = "cbTrasactChat";\r
             this.cbTrasactChat.Size = new System.Drawing.Size(170, 17);\r
-            this.cbTrasactChat.TabIndex = 1;\r
+            this.cbTrasactChat.TabIndex = 3;\r
             this.cbTrasactChat.Text = "Display L$ transactions in chat";\r
             this.cbTrasactChat.UseVisualStyleBackColor = true;\r
             this.cbTrasactChat.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);\r
@@ -124,7 +126,7 @@ namespace Radegast
             this.cbTrasactDialog.Location = new System.Drawing.Point(8, 52);\r
             this.cbTrasactDialog.Name = "cbTrasactDialog";\r
             this.cbTrasactDialog.Size = new System.Drawing.Size(176, 17);\r
-            this.cbTrasactDialog.TabIndex = 1;\r
+            this.cbTrasactDialog.TabIndex = 2;\r
             this.cbTrasactDialog.Text = "Display dialog on L$ transaction";\r
             this.cbTrasactDialog.UseVisualStyleBackColor = true;\r
             this.cbTrasactDialog.CheckedChanged += new System.EventHandler(this.cbTrasactDialog_CheckedChanged);\r
@@ -149,6 +151,17 @@ namespace Radegast
             this.cbChatTimestamps.Text = "Show timestamps in chat";\r
             this.cbChatTimestamps.UseVisualStyleBackColor = true;\r
             // \r
+            // cbAutoReconnect\r
+            // \r
+            this.cbAutoReconnect.AutoSize = true;\r
+            this.cbAutoReconnect.Location = new System.Drawing.Point(8, 121);\r
+            this.cbAutoReconnect.Name = "cbAutoReconnect";\r
+            this.cbAutoReconnect.Size = new System.Drawing.Size(169, 17);\r
+            this.cbAutoReconnect.TabIndex = 5;\r
+            this.cbAutoReconnect.Text = "Auto reconnect on disconnect";\r
+            this.cbAutoReconnect.UseVisualStyleBackColor = true;\r
+            this.cbAutoReconnect.CheckedChanged += new System.EventHandler(this.cbTrasactChat_CheckedChanged);\r
+            // \r
             // frmSettings\r
             // \r
             this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F);\r
@@ -174,6 +187,7 @@ namespace Radegast
         public System.Windows.Forms.CheckBox cbTrasactChat;\r
         public System.Windows.Forms.CheckBox cbTrasactDialog;\r
         public System.Windows.Forms.CheckBox cbFriendsNotifications;\r
+        public System.Windows.Forms.CheckBox cbAutoReconnect;\r
 \r
     }\r
 }
\ No newline at end of file
index 3aebee5..f53d67d 100644 (file)
@@ -66,6 +66,15 @@ namespace Radegast
             cbFriendsNotifications.Checked = s["show_friends_online_notifications"].AsBoolean();\r
             cbFriendsNotifications.CheckedChanged += new EventHandler(cbFriendsNotifications_CheckedChanged);\r
 \r
+            cbAutoReconnect.Checked = s["auto_reconnect"].AsBoolean();\r
+            cbAutoReconnect.CheckedChanged += new EventHandler(cbAutoReconnect_CheckedChanged);\r
+\r
+\r
+        }\r
+\r
+        void cbAutoReconnect_CheckedChanged(object sender, EventArgs e)\r
+        {\r
+            s["auto_reconnect"] = OSD.FromBoolean(cbAutoReconnect.Checked);\r
         }\r
 \r
         void cbFriendsNotifications_CheckedChanged(object sender, EventArgs e)\r