public AccountSubtypeList()
 {
     this.InitializeComponent();
     conn            = new Connection().GetConnection();
     viewModel       = new AccountSubtypeViewModel();
     accountsSubtype = viewModel.AccountSubtypeList();
 }
Пример #2
0
 private void LoadSubtypeCombo()
 {
     foreach (var subtype in subtypeViewModel.AccountSubtypeList())
     {
         ComboBoxItem item = new ComboBoxItem();
         item.Name    = subtype.id.ToString();
         item.Content = subtype.name.ToString();
         SubtypeComboBox.Items.Add(item);
     }
 }