private void Monitor_Echo(object sender, WingmanAPI.Monitor.EchoEventArgs e) { Console.WriteLine(e.Text); if (e.Text == "NA\nNot enabled for this account.") MessageBox.Show("Not enabled for this account.", "Wingman Monitor"); }
private void Monitor_Echo(object sender, WingmanAPI.Monitor.EchoEventArgs e) { IInputElement FocusedControl = FocusManager.GetFocusedElement(this); TextRequestLog.Text = TextRequestLog.Text.Substring(Math.Max(TextRequestLog.Text.Length - 4096, 0)) + (TextRequestLog.Text.Length > 0 ? "\r\n" : String.Empty) + e.Text; TextRequestLog.Focus(); TextRequestLog.CaretIndex = TextRequestLog.Text.Length; TextRequestLog.ScrollToEnd(); FocusManager.SetFocusedElement(this, FocusedControl); }
void Monitor_UpdateTasks(object sender, WingmanAPI.Monitor.UpdateTasksEventArgs e) { ViewRefresh(); }
void Monitor_UpdateTasks(object sender, WingmanAPI.Monitor.UpdateTasksEventArgs e) { TasksRefresh(e.Cleared); }