protected override void OnStart(string[] args) { serverP = new frmPOP(); new Thread(new ThreadStart(serverP.ProduceStart)).Start(); Console.WriteLine("서비스 시작"); if (listener == null) { listener = new TcpListener(IPAddress.Parse(host), port); } AsyncEchoServerAsync(); }
private void btnSignIn_Click(object sender, EventArgs e) { POPService service = new POPService(); //로그인 유효성검사 null or 기본값 if (txtID.Text == null || txtPwd.Text == null || txtID.Text == "UserID" || txtPwd.Text == "PassWord") { MessageBox.Show(Properties.Resources.msgLoginNull); } else { service.Login(int.Parse(txtID.Text), int.Parse(txtPwd.Text)); if (LoginVO.user.ID != 0) { frmPOP frm = new frmPOP(); frm.Show(); } else { MessageBox.Show(Properties.Resources.msgLoginCheck); } } }