public JournalTypeList() { this.InitializeComponent(); conn = new Connection().GetConnection(); viewModel = new JournalTypeViewModel(); journalTypes = viewModel.JournalTypeList(); accountVM = new AccountViewModel(); }
private void LoadTypeCombo() { foreach (var type in typeVM.JournalTypeList()) { ComboBoxItem item = new ComboBoxItem(); item.Name = type.id.ToString(); item.Content = type.name.ToString(); TypeComboBox.Items.Add(item); } }