]> insang Git - newton-cn_pos.git/commitdiff
dddd
authornewton-cn <insang@kakao.com>
Thu, 29 Jan 2026 07:53:23 +0000 (16:53 +0900)
committernewton-cn <insang@kakao.com>
Thu, 29 Jan 2026 07:53:23 +0000 (16:53 +0900)
13 files changed:
.vs/newton-cn/v16/.suo
newton-cn/Form9.cs
newton-cn/bin/Debug/newton-cn.exe
newton-cn/bin/Debug/newton-cn.pdb
newton-cn/bin/Release/newton-cn.exe
newton-cn/bin/Release/newton-cn.pdb
newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache
newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache
newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache
newton-cn/obj/Debug/newton-cn.exe
newton-cn/obj/Debug/newton-cn.pdb
newton-cn/obj/Release/newton-cn.exe
newton-cn/obj/Release/newton-cn.pdb

index 40591c765e19c30e217fee9e34618b3c4af7c0ae..44c409ca7f9e0b1b950ed5e11c5cf0f870cfa149 100644 (file)
Binary files a/.vs/newton-cn/v16/.suo and b/.vs/newton-cn/v16/.suo differ
index ef5c62da3e11b212caf57ddc53356d27ca5547c3..809d5a4b01f22d914144f4d901529093d9737de0 100644 (file)
@@ -141,7 +141,48 @@ namespace newton_cn
             Thread th = new Thread(ts);
             th.Start();*/
 
-            Application.OpenForms["Form9"].Close();
+            /* Application.OpenForms["Form9"].Close();
+
+             // 1️⃣ 현재 입력 언어 저장
+             InputLanguage originalLanguage = InputLanguage.CurrentInputLanguage;
+
+             // 2️⃣ 영어 입력 언어 찾기
+             InputLanguage english = InputLanguage.InstalledInputLanguages
+                 .Cast<InputLanguage>()
+                 .FirstOrDefault(lang => lang.Culture.Name.StartsWith("en"));
+
+             string phone = textBox1.Text;
+             MouseEvent1 me = new MouseEvent1();
+             me.ctclick();
+             // 키보드 입력처럼 전송
+             Thread.Sleep(2000);
+             InputLanguage.CurrentInputLanguage = english;
+             SendKeys.SendWait("a' or ct_code='" + phone + "' or 1 like 'a");
+             InputLanguage.CurrentInputLanguage = originalLanguage;
+             Thread.Sleep(1000);
+             SendKeys.SendWait("{ENTER}");
+             Thread.Sleep(1000);
+             SendKeys.SendWait("^{DEL}");
+             Thread.Sleep(1000);*/
+            var form9 = Application.OpenForms["Form9"];
+
+            if (form9 != null)
+            {
+                using (var waitHandle = new System.Threading.AutoResetEvent(false))
+                {
+                    form9.FormClosed += (_, __) =>
+                    {
+                        waitHandle.Set();   // 닫힘 신호
+                    };
+
+                    form9.Close();
+
+                    // 🔴 Form9가 완전히 닫힐 때까지 대기
+                    waitHandle.WaitOne();
+                }
+            }
+
+            // ───── 여기부터는 Form9가 닫힌 후 실행됨 ─────
 
             // 1️⃣ 현재 입력 언어 저장
             InputLanguage originalLanguage = InputLanguage.CurrentInputLanguage;
@@ -152,13 +193,16 @@ namespace newton_cn
                 .FirstOrDefault(lang => lang.Culture.Name.StartsWith("en"));
 
             string phone = textBox1.Text;
+
             MouseEvent1 me = new MouseEvent1();
             me.ctclick();
-            // 키보드 입력처럼 전송
+
             Thread.Sleep(2000);
+
             InputLanguage.CurrentInputLanguage = english;
             SendKeys.SendWait("a' or ct_code='" + phone + "' or 1 like 'a");
             InputLanguage.CurrentInputLanguage = originalLanguage;
+
             Thread.Sleep(1000);
             SendKeys.SendWait("{ENTER}");
             Thread.Sleep(1000);
index 3576cc3b121d33c9de43d650513b50d575b83890..73d58d0997d52eab87f51b0b4915cc2224a5f70c 100644 (file)
Binary files a/newton-cn/bin/Debug/newton-cn.exe and b/newton-cn/bin/Debug/newton-cn.exe differ
index 2465fe2d801c300938223d816992da4d815aee15..d353c9474951c9eb69995b426538ecb2032bd222 100644 (file)
Binary files a/newton-cn/bin/Debug/newton-cn.pdb and b/newton-cn/bin/Debug/newton-cn.pdb differ
index 31b629dab6a2c7183a4bb18471113583e3783be1..a785c6a168a05004388a3cef7d82e791a4c9f592 100644 (file)
Binary files a/newton-cn/bin/Release/newton-cn.exe and b/newton-cn/bin/Release/newton-cn.exe differ
index 160e8b25d8d03bef9f070cfd188f7062c576180b..a6f147a1ae5f04395ac34cc7cbb4a483371fd30f 100644 (file)
Binary files a/newton-cn/bin/Release/newton-cn.pdb and b/newton-cn/bin/Release/newton-cn.pdb differ
index 3deb7b35a5b3c52e68f2ee7472694917e1733372..64a02a6acd022a30a2c71ff001122624cddfdc9a 100644 (file)
Binary files a/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache and b/newton-cn/obj/Debug/DesignTimeResolveAssemblyReferences.cache differ
index 654fe63c3d45a2e8165502122afabf3ee530b55b..f5e894aea93a73e58fa9d4feab241bc197ee1a40 100644 (file)
Binary files a/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache and b/newton-cn/obj/Debug/newton-cn.csproj.AssemblyReference.cache differ
index df8201b524831caf48e469a49bd9a01728123913..436f0fd2518d43145db4bc984dee85e2950aef8e 100644 (file)
Binary files a/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache and b/newton-cn/obj/Debug/newton-cn.csproj.GenerateResource.cache differ
index 3576cc3b121d33c9de43d650513b50d575b83890..73d58d0997d52eab87f51b0b4915cc2224a5f70c 100644 (file)
Binary files a/newton-cn/obj/Debug/newton-cn.exe and b/newton-cn/obj/Debug/newton-cn.exe differ
index 2465fe2d801c300938223d816992da4d815aee15..d353c9474951c9eb69995b426538ecb2032bd222 100644 (file)
Binary files a/newton-cn/obj/Debug/newton-cn.pdb and b/newton-cn/obj/Debug/newton-cn.pdb differ
index 31b629dab6a2c7183a4bb18471113583e3783be1..a785c6a168a05004388a3cef7d82e791a4c9f592 100644 (file)
Binary files a/newton-cn/obj/Release/newton-cn.exe and b/newton-cn/obj/Release/newton-cn.exe differ
index 160e8b25d8d03bef9f070cfd188f7062c576180b..a6f147a1ae5f04395ac34cc7cbb4a483371fd30f 100644 (file)
Binary files a/newton-cn/obj/Release/newton-cn.pdb and b/newton-cn/obj/Release/newton-cn.pdb differ