private void lookinList_SelectedIndexChanged(object sender, EventArgs e) { FindingScope scope = (lookinList.SelectedIndex == 0) ? FindingScope.CurrentLoadedActivities : FindingScope.CurrentLoadedTraces; if (parentForm != null) { parentForm.SyncFindingOptions(scope, this); } }
internal void UpdateFindOptions(FindingScope scope) { switch (scope) { case FindingScope.CurrentLoadedActivities: lookinList.SelectedIndex = 0; break; case FindingScope.CurrentLoadedTraces: lookinList.SelectedIndex = 1; break; } }