private void ballButton_Click(object sender, EventArgs e) { PyroProxy playfield = new_playfield(); playfield.call_oneway("create_ball"); playfield.close(); }
private void update_blocks() { // http://www.dotnetperls.com/arraylist List <Object> proxies = (List <Object>)playfield.call("get_blocks"); ArrayList current_blocks = new ArrayList(); foreach (PyroProxy block in proxies) { current_blocks.Add(Block.FromPyroProxy(block)); block.close(); } this.blocks = current_blocks; }