public Form1()
{
InitializeComponent();
this.InitializeTelephony();
}
private void InitializeTelephony()
{
m_telephony = new Telephony();//我定义Telephony m_telephony 也不对,貌似Telephony是 namespace 的吧?
//Initialize the telephony class
m_telephony.Initialize();
//Get the cellular line with Monitor and Owner privileges
m_line = m_telephony.CellularLine(MediaMode.InteractiveVoice, CallPrivilege.Monitor | CallPrivilege.Owner);
//Add a new call event
m_line.NewCall += new Line.NewCallHandler(m_line_NewCall);
}