private void button2_Click(object sender, EventArgs e) { if (set == false) { set = true; newPipe = new OurPipes("s"); } newPipe.writer.WriteLine(textBox1.Text); newPipe.writer.Flush(); }
private void button1_Click(object sender, EventArgs e) { if (set == false) { set = true; newPipe = new OurPipes("c"); } MessageBox.Show(newPipe.reader.ReadLine()); newPipe.writer.Flush(); }