예제 #1
0
 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();
 }
예제 #2
0
 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();
 }