public ClientForm1() { InitializeComponent(); mainSock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP); _textAppender = new AppendTextDelegate(AppendText); _formGetter = new GetFormDelegate(GetChatForm); this.txtPort.Text = "8080"; }
public ServerForm1() { InitializeComponent(); mainSock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP); OrderSock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP); memberSock = new Socket(AddressFamily.InterNetwork, SocketType.Stream, ProtocolType.IP); _textAppender = new AppendTextDelegate(AppendText); _formGetter = new GetFormDelegate(GetChatForm); _dlgNameSetter = new SetDlgNameDelegate(SetDlgName); _orderNumSetter = new SetOrderNumDelegate(SetOrderNum); _orderLvSetter = new SetOrderListViewDelegate(SetOrderList); _stockDeductor = new DeductProductStockDelegate(DeductProductStock); foreach (Control x in splitContainer1.Panel1.Controls) //패널에 위치한 컨트롤들 중 picturebox들을 찾는다 { if (typeof(System.Windows.Forms.PictureBox) == x.GetType()) { PictureBox a = (PictureBox)x; a.Enabled = false; } } this.txtPort.Text = "8080"; }