예제 #1
0
        //客户C启用
        //主拨方
        private void button5_Click(object sender, RoutedEventArgs e)
        {
            UserInfo user = TestData.UserList[0];

            ClientC = new CLSClient(user);
            ClientC.UpdatePath(@"C:\MyLog.txt");
            ClientC.SetOuter(tb_out);
            ClientC.Listen();
            ClientC.OnStartRecord += (string s) =>
            {
                ThreadStart ts = new ThreadStart(ClientC.Manager.StartRecord);
                this.Dispatcher.Invoke(ts);
            };
        }