private async void UpdateDisplay(clsCategory prCategory) { lstInstruments.DataSource = null; if (prCategory.InstrumentList != null) { lstInstruments.DataSource = prCategory.InstrumentList; } }
private void SetDetails(clsCategory prCategoryName) { _Category = prCategoryName; UpdateDisplay(_Category); lblCategory.Text = _Category.Name; lblDescription.Text = _Category.Description; //txtName.Enabled = string.IsNullOrEmpty(_Category.Name); ; //updateForm(); Show(); }