private void button4_Click(object sender, EventArgs e)//내필기열기 버튼 { if (!text_open_check) { my_text_box = new myTextBox(this); my_text_box.Show(); my_text_box.Focus(); } }
private void button2_Click(object sender, EventArgs e)//필기 요청 { if (listView1.FocusedItem == null) { MessageBox.Show("아무것도 선택하지 않았습니다."); } else { myText = new myTextBox(); myText.Show(); fileCheck fCheck = new fileCheck(); fCheck.Type = (int)FileDataType.일체크; fCheck.fileNeed = 0; fCheck.fileNumber = Convert.ToInt32(listView1.FocusedItem.SubItems[0].Text); sendBuffer = FileData.Serialize(fCheck); m_NetStream.Write(sendBuffer, 0, sendBuffer.Length); m_NetStream.Flush(); } }