Ejemplo n.º 1
0
 void DGObjectsSelectionChangedListener(object sender,
                                        DGObjectsSelectionChangedEventArgs e)
 {
     if (dgObjectsSelectionChangedTriggler != null)
     {
         dgObjectsSelectionChangedTriggler(this, e);
     }
 }
Ejemplo n.º 2
0
        public void DGObjectsSelectionChangedListener(object sender, DGObjectsSelectionChangedEventArgs e)
        {
            DGObjects objs    = e.addedObjs;
            string    domain  = objs.parent.name;
            string    objtype = objs.definition.Type;

            //获取对应属性数据
            Type       objType = ObjectHelper.GetType(objs.parent.name, objs.definition.Type);
            Type       _t      = typeof(ObjectHelper);
            MethodInfo mi      = _t.GetMethod("Convert").MakeGenericMethod(objType);

            LastObjList = mi.Invoke(null, new object[] { objs.objContainer }) as IEnumerable;
            DGObjectDataGrid.ItemsSource = LastObjList;
        }
Ejemplo n.º 3
0
 private void DomainTreeView_SelectedItemChanged(object sender,
                                                 RoutedPropertyChangedEventArgs <object> e)
 {
     if (dGObjectsSelectionChangedEventTriggle != null)
     {
         DGObjectsSelectionChangedEventArgs args = new DGObjectsSelectionChangedEventArgs();
         if (((e.NewValue as Tree) == null) || ((e.NewValue as Tree).RefObjsName == null))
         {
             args.addedObjs = null;
         }
         else
         {
             string dgObjectsName = (e.NewValue as Tree).RefObjsName;
             if (Globals.project.objsDefIndex.ContainsKey(dgObjectsName))
             {
                 args.addedObjs        = Globals.project.objsDefIndex[dgObjectsName];
                 args.addedObjs.filter = (e.NewValue as Tree).Filter;
             }
         }
         dGObjectsSelectionChangedEventTriggle(this, args);
     }
 }
Ejemplo n.º 4
0
 public void dgobjectsSelectionChangedListener(object sender, DGObjectsSelectionChangedEventArgs e)
 {
     throw new NotImplementedException();
 }
Ejemplo n.º 5
0
 public void DGObjectsSelectionChangedListener(object serder, DGObjectsSelectionChangedEventArgs e)
 {
     listLB.ItemsSource = e.addedObjs.values;
 }