Ejemplo n.º 1
0
        // button reset ล้างข้อมูล
        private void btn_reset_Click(object sender, RoutedEventArgs e)
        {
            Receiver.UnlinkAll();

            btn_createAnswer.IsEnabled = true;

            TextBox_senderOffer.Clear();
            TextBox_Answer.Clear();
            TextBox_candidate.Clear();
            TextBox_log.Clear();
        }
Ejemplo n.º 2
0
 private void Window_Loaded(object sender, RoutedEventArgs e)
 {
     q = Questions.Instance.GetRandomQuestion();
     if (q == null)
     {
         this.Close();
         return;
     }
     Label_Question.Text = q.Description;
     TextBox_Answer.Text = "";
     TextBox_Answer.Focus();
 }
Ejemplo n.º 3
0
 // สร้าง Offer/Answer จาก Link peerID ใน Event ของ Conference
 void Receiver_OnLinkOfferAnswer(LinkOfferAnswerArgs p)
 {
     Console.WriteLine("Answer : " + p.OfferAnswer.ToJson());
     TextBox_Answer.AppendText(p.OfferAnswer.ToJson());
     //TextBox_log.AppendText("\n******* Generate answer *******\n" + p.OfferAnswer.ToJson());
 }