public PartySubtypeList() { this.InitializeComponent(); conn = new Connection().GetConnection(); PartySubtypeViewModel viewModel = new PartySubtypeViewModel(); partySubtype = viewModel.PartySubtypeList(); }
private void LoadSubtypeCombo() { foreach (var subtype in subtypeViewModel.PartySubtypeList()) { ComboBoxItem item = new ComboBoxItem(); item.Name = subtype.id.ToString(); item.Content = subtype.name.ToString(); SubtypeComboBox.Items.Add(item); } }