private void NewListItem_ItemSelected(object sender, EventArgs e) { // Deselect others scenariosDisplayed.ForEach(s => s.IsSelected = false); ScenarioSelected?.Invoke(this, (sender as PaginatedListItem).ScenarioFile); }
protected virtual void OnScenarioSelected(string scenarioName) { ScenarioSelected?.Invoke(this, new ScenarioSelectedArgs() { scenarioName = scenarioName }); }