void ucObjectList_ObjectSelected(object sender, ObjectSelectedArg e)
        {
            Object = e.Object;
            var actions           = SecurityHelper.GetActionsByCategory(Object.ObjectCategory);
            List <ActionDTO> list = new List <ActionDTO>();

            foreach (var action in actions)
            {
                ActionDTO item = new ActionDTO();
                item.Action = action;
                list.Add(item);
            }
            dtgRoleActions.ItemsSource = list;
            GetMessage();
        }
Beispiel #2
0
 private void treeObjects_SelectedItemChanged(object sender, RoutedPropertyChangedEventArgs <object> e)
 {
     if (treeDBObjects.SelectedItem != null)
     {
         var ObjectDTO = (treeDBObjects.SelectedItem as TreeViewItem).DataContext as ObjectDTO;
         if (ObjectDTO != null)
         {
             ObjectSelectedArg arg = new ObjectSelectedArg();
             arg.Object = ObjectDTO;
             if (ObjectSelected != null)
             {
                 ObjectSelected(this, arg);
             }
         }
     }
 }
Beispiel #3
0
 void ucObjectList_ObjectSelected(object sender, ObjectSelectedArg e)
 {
     ucObjectEdit.ShowObject(e.Object);
 }