Exemple #1
0
    public void InitVoiceClient(Peer dpp, Voice.Client dpvc, Form wnd)
    {
        try
        {
            TestAudioSetup(wnd);

            //Audio Setup was successful, open the configuration form
            mConfigForm.ShowDialog(mClientConfig, false);

            mClientConfig = mConfigForm.ClientConfig;
            client        = dpvc;

            //connect to the voice session
            ConnectToVoiceSession(dpp, wnd);
        }
        catch (Exception e)
        {
            MessageBox.Show("Error attempting to connect to a Voice Server.  This sample will now exit.", "Exiting", MessageBoxButtons.OK, MessageBoxIcon.Information);
            throw e;
        }
    }
Exemple #2
0
 public void ShowClientSetupDialog(IntPtr hWnd)
 {
     try
     {
         using (mConfigForm = new DPlayVoiceConfigForm())
         {
             mConfigForm.ShowDialog(mClientConfig, mInSession);
             mClientConfig       = mConfigForm.ClientConfig;
             client.ClientConfig = mClientConfig;
         }
     }
     catch (Exception e)
     {
         throw e;
     }
 }