Пример #1
0
 /// <summary>
 /// Manage API call event.
 /// </summary>
 private void OnAPICall(object sender, APICallEventArgs e)
 {
     DebugTextBox.Text = "";
     AppendText(DebugTextBox, "API Call:\n", Color.Brown, true);
     AppendText(DebugTextBox, "Url: ", Color.DarkGreen, true);
     AppendText(DebugTextBox, e.Url + "\n", Color.Blue, false);
     AppendText(DebugTextBox, "Response: ", Color.DarkOrange, true);
     AppendText(DebugTextBox, e.Response + "\n", Color.Blue, false);
 }
Пример #2
0
 /// <summary>
 /// Creates a call back with the API call args.
 /// </summary>
 /// <param name="e">The API call event</param>
 protected void OnAPICall(object sender, APICallEventArgs e)
 {
     // Fire this event to the next layer
     if (APICall != null)
     {
         // Invokes the delegates.
         APICall(this, e);
     }
 }