private void alltoleft_Click(object sender, RoutedEventArgs e)
 {
     if (userfiles.ItemsSource == null)
     {
         return;
     }
     Com.Aote.ObjectTools.ObjectList c      = userfiles.ItemsSource as Com.Aote.ObjectTools.ObjectList;
     Com.Aote.ObjectTools.ObjectList target = GetTarget();
     target.SelectObject = c;
     c.Clear();
 }
 private void alltoright_Click(object sender, RoutedEventArgs e)
 {
     if (userfiles1.ItemsSource == null)
     {
         return;
     }
     Com.Aote.ObjectTools.ObjectList c      = userfiles1.ItemsSource as Com.Aote.ObjectTools.ObjectList;
     Com.Aote.ObjectTools.ObjectList target = GetTarget();
     foreach (GeneralObject checkPaper in c)
     {
         GeneralObject address = new GeneralObject();
         address.EntityType = "t_gasaddress";
         address.SetValue("ID", checkPaper.GetPropertyValue("pid"));
         address.SetValue("f_districtname", checkPaper.GetPropertyValue("UNIT_NAME"));
         address.SetValue("f_road", checkPaper.GetPropertyValue("ROAD"));
         address.SetValue("f_cusDom", checkPaper.GetPropertyValue("CUS_DOM"));
         address.SetValue("f_cusDy", checkPaper.GetPropertyValue("CUS_DY"));
         address.SetValue("f_cusFloor", checkPaper.GetPropertyValue("CUS_FLOOR"));
         address.SetValue("f_apartment", checkPaper.GetPropertyValue("CUS_ROOM"));
         (userfiles.ItemsSource as ObjectList).Add(address);
     }
     c.Clear();
 }