Skip to content

Commit

Permalink
Release 1.0.0.3
Browse files Browse the repository at this point in the history
  • Loading branch information
geoje committed May 31, 2021
1 parent 3501965 commit 9d17d8c
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion Client/Client.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
<UpdateUrl>http://www.ygh.kr/ost/</UpdateUrl>
<CreateWebPageOnPublish>true</CreateWebPageOnPublish>
<WebPage>index.html</WebPage>
<ApplicationRevision>3</ApplicationRevision>
<ApplicationRevision>4</ApplicationRevision>
<ApplicationVersion>1.0.0.%2a</ApplicationVersion>
<UseApplicationTrust>false</UseApplicationTrust>
<CreateDesktopShortcut>true</CreateDesktopShortcut>
Expand Down
4 changes: 2 additions & 2 deletions Client/Forms/FormLogin.cs
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ private void btnLogin_Click(object sender, EventArgs e)
}
else
{
lblResult.Style = MetroFramework.MetroColorStyle.Red;
lblResult.Style = MetroColorStyle.Red;
lblResult.Text = "์„œ๋ฒ„์™€ ์—ฐ๊ฒฐ ๋˜์–ด์žˆ์ง€ ์•Š์Šต๋‹ˆ๋‹ค.";
}
}
Expand Down Expand Up @@ -154,7 +154,7 @@ public void EndConnect(IAsyncResult result)
MetroColorStyle.Red;
lblResult.Text = resultText;

if (savedLoginInfo.Contains("\n"))
if (Program.client.Connected && savedLoginInfo.Contains("\n"))
{
txtEmpId.Text = savedLoginInfo.Split('\n')[0];
txtPassword.Text = savedLoginInfo.Split('\n')[1];
Expand Down
6 changes: 5 additions & 1 deletion Client/Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ static class Program
public static object locker = new object(); // ์†ก์‹  ๋ฎคํƒ์Šค
public static TcpClient client; // ์„œ๋ฒ„์™€ ์—ฐ๊ฒฐ๋œ TCP ์†Œ์ผ“
public static NetworkStream ns; // ๋„คํŠธ์›Œํฌ ์ŠคํŠธ๋ฆผ
public static readonly string hostname = "127.0.0.1"; // ์ ‘์†ํ•  ์„œ๋ฒ„ ์ฃผ์†Œ
public static string hostname; // ์ ‘์†ํ•  ์„œ๋ฒ„ ์ฃผ์†Œ
public static readonly ushort port = 6756; // ์ ‘์†ํ•  ์„œ๋ฒ„ ํฌํŠธ
public static Thread recvThread; // ์„œ๋ฒ„๋กœ๋ถ€ํ„ฐ ์ˆ˜์‹ ์„ ๋Œ€๊ธฐํ•˜๋Š” ์Šค๋ ˆ๋“œ
public static Dictionary<PacketType, Action<Packet>> callback; // ํƒ€์ž…์— ๋”ฐ๋ฅธ ์ฝœ๋ฐฑ ๋ฉ”์†Œ๋“œ
Expand All @@ -33,6 +33,10 @@ static void Main()
recvThread = new Thread(new ThreadStart(Recieve));
callback = new Dictionary<PacketType, Action<Packet>>();

string[] args = Environment.GetCommandLineArgs();
hostname = args.Length > 1 ? args[1] : "www.ygh.kr";


Application.EnableVisualStyles();
Application.SetCompatibleTextRenderingDefault(false);
Application.Run(formMain = new FormMain());
Expand Down

0 comments on commit 9d17d8c

Please sign in to comment.