public bool SetPreferredHostNameOrder(HostContactNameOrder hostContactNameOrder) { DBManager db = new DBManager(); return db.SetPreferredHostNameOrder(hostContactNameOrder); }
public bool SetDefaultHostNameOrder(HostContactNameOrder hostContactNameOrder) { DBManager db = new DBManager(); return db.SetDefaultHostNameOrder(hostContactNameOrder); }
private void RefreshListNameOrder() { hostContactNameOrder = listHostContactNameOrder.FirstOrDefault(l => l.AccountType.Name.Equals(accTypeName)); combobox_name.ItemsSource = listNameOrder; combobox_name.DisplayMemberPath = "NameOrder"; combobox_name.SelectedValuePath = "Id"; if (hostContactNameOrder == null) return; combobox_name.SelectedItem = listNameOrder.Find(l => l.Id.Equals(hostContactNameOrder.ContactNameOrderId)); }