예제 #1
0
 public bool SetPreferredHostNameOrder(HostContactNameOrder hostContactNameOrder)
 {
     DBManager db = new DBManager();
     return db.SetPreferredHostNameOrder(hostContactNameOrder);
 }
예제 #2
0
 public bool SetDefaultHostNameOrder(HostContactNameOrder hostContactNameOrder)
 {
     DBManager db = new DBManager();
     return db.SetDefaultHostNameOrder(hostContactNameOrder);
 }
예제 #3
0
 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));
 }