OSDN Git Service

テキストボックスからフォーカスが移る際に内容を更新するように変更
authorkimikage <kimikage_ceo@hotmail.com>
Sat, 8 Jan 2011 20:05:58 +0000 (05:05 +0900)
committerkimikage <kimikage_ceo@hotmail.com>
Sat, 8 Jan 2011 20:05:58 +0000 (05:05 +0900)
Fugashi/MainForm.Designer.cs
Fugashi/MainForm.cs

index db85970..90fcbd5 100755 (executable)
@@ -223,6 +223,7 @@ namespace Fugashi
             this.textValue.TabIndex = 87;\r
             this.textValue.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\r
             this.textValue.TextChanged += new System.EventHandler(this.textValue_TextChanged);\r
+            this.textValue.Leave += new System.EventHandler(this.textValue_Leave);\r
             // \r
             // textHex\r
             // \r
@@ -233,6 +234,7 @@ namespace Fugashi
             this.textHex.TabIndex = 88;\r
             this.textHex.TextAlign = System.Windows.Forms.HorizontalAlignment.Right;\r
             this.textHex.TextChanged += new System.EventHandler(this.textHex_TextChanged);\r
+            this.textHex.Leave += new System.EventHandler(this.textHex_Leave);\r
             // \r
             // buttonLsh\r
             // \r
index f7f3fcc..fbb5f6d 100755 (executable)
@@ -449,6 +449,16 @@ namespace Fugashi
             }\r
         }\r
 \r
+        private void textValue_Leave(object sender, EventArgs e)\r
+        {\r
+            UpdateValue(GetBytes());\r
+        }\r
+\r
+        private void textHex_Leave(object sender, EventArgs e)\r
+        {\r
+            UpdateHex(GetBytes());\r
+        }\r
+\r
 \r
     }\r
 }\r