コード例 #1
0
 private void button2_Click(object sender, EventArgs e)
 {
     SomeOtherClassDoingStuff.DoSomethingByCallbackInterface(this);
 }
コード例 #2
0
        private void button1_Click(object sender, EventArgs e)
        {
            var x = SomeOtherClassDoingStuff.DoSomethingThatReturns();

            HandleSomeReturnValue(x);
        }