private void trainingAreas_SelectedIndexChanged(object sender, EventArgs e) { if (TrainingArea != null) { toolTip.SetToolTip(trainingAreas, TrainingArea.GetDetails(0)); } RefreshIncidentTypes(); }
public virtual string GetDetails(int indentLevel) { string indent = ""; for (int i = 0; i < indentLevel; ++i) { indent += "\t"; } return((indentLevel > 0 ? Environment.NewLine : "") + indent + "Type: " + GetType() + Environment.NewLine + indent + "ID: " + _id + Environment.NewLine + indent + "Name: " + _name + Environment.NewLine + indent + "Incident types: " + _incidentTypes.Concatenate(",") + Environment.NewLine + indent + "Training area: " + TrainingArea.GetDetails(indentLevel + 1) + Environment.NewLine + indent + "Training start: " + _trainingStart.ToShortDateString() + " " + _trainingStart.ToShortTimeString() + Environment.NewLine + indent + "Training end: " + _trainingEnd.ToShortDateString() + " " + _trainingEnd.ToShortTimeString() + Environment.NewLine + indent + "Smoothers: " + _smoothers.Select(s => s.GetSmoothingDetails()).Concatenate(", ") + Environment.NewLine + (ModelDirectory == "" ? "" : indent + "Model directory: " + ModelDirectory)); }