public void FillJobDropDown() { _jobSelectDropdown.Clear(); foreach (JobEntry jobEntry in PageStorage <ManualData> .Instance.StorageData.JobEntries) { bool active = jobEntry.BatchEntries.Any(batchEntry => batchEntry.Name == _batch.Name); StylableAnchor entry = _jobSelectDropdown.AddEntry(jobEntry.Name, active); entry.Click += (sender, args) => { if (active) { _appendToJobButton.IsHidden = true; _removeFromJobButton.IsHidden = false; } else { _appendToJobButton.IsHidden = false; _removeFromJobButton.IsHidden = true; } _jobSelectDropdown.Button.Text = jobEntry.Name; _jobNameMultiInputGroup.IsHidden = true; }; } _jobSelectDropdown.AddDivider(); _jobSelectDropdown.AddEntry(NewJobString).Click += (sender, args) => { _jobSelectDropdown.Button.Text = NewJobString; _jobNameMultiInputGroup.IsHidden = false; _appendToJobButton.IsHidden = false; _removeFromJobButton.IsHidden = true; }; }