예제 #1
0
 private async void UpdateDisplay(clsCategory prCategory)
 {
     lstInstruments.DataSource = null;
     if (prCategory.InstrumentList != null)
     {
         lstInstruments.DataSource = prCategory.InstrumentList;
     }
 }
예제 #2
0
        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();
        }