Split this method c#
<p>I have this method:</p>

<pre><code>public void makecall(int TransmitPhoneLoc, int ReceivePhoneLoc)
{
    clsPhone Tphone = (clsPhone) phoneArray[TransmitPhoneLoc];
    clsPhone Rphone = (clsPhone)phoneArray[ReceivePhoneLoc];
    Tphone.ringPhone();
    Rphone.ringPhone();
    //Tphone.hello();
}
</code></pre>

<p>I'm trying to split it into two methods so that I can use <code>Tphone</code> and <code>Rphone</code> independently of each other. Here's my latest attempt... sucks I know but I'm trying!</p>

<pre><code>public clsPhone incoming(int TransmitPhoneLoc)
{
    clsPhone Tphone = (clsPhone)phoneArray[TransmitPhoneLoc];
    return Tphone;
}

public clsPhone Outgoing(int ReceivePhoneLoc)
{
    clsPhone Rphone = (clsPhone)phoneArray[ReceivePhoneLoc];
    return Rphone;      
}

public void makecall()
{
    // Rphone and Tphone do something?      
}
</code></pre>

<p>Any help on how I can use these two objects independently will be greatly appreciated.</p>

<p><strong>EDIT</strong>
The problem is I'm unsure how to take the values from the two methods I have created instead of the original method and implement them in the same manner as the original method. So the third method is making calls to the first and second method. I have tried to do it like this as I will have other methods such as <code>endcall</code>.</p>

<p>Here is my fianl solution, thankyou all for trying, I know it's not easy understanding what a novice like me is trying to accomplish. Thankyou Dilvid for the inspiration to my final solution. I hope it's clear now what I wanted to do. I have a method in my ClsPhone to setup a connection, this activates in the ClsExchange. There will be other methods to end a call etc.</p>

<pre><code>public clsPhone incoming(int TransmitPhoneLoc)
    {
        clsPhone Tphone = (clsPhone)phoneArray[TransmitPhoneLoc];
        return Tphone;
    }
    public clsPhone Outgoing(int ReceivePhoneLoc)
    {

        clsPhone Rphone = (clsPhone)phoneArray[ReceivePhoneLoc];
        return Rphone;

    }
    public void makecall(int tpc, int opc)
    {
        Outgoing(tpc).ringPhone();
        incoming(opc).ringPhone();




    }
</code></pre>
