internal void Add(int parentId, IEnumerable <WPFCommand> wpfCommands)
        {
            foreach (var cmd in wpfCommands)
            {
                if (cmd.RuntimeType != WPFCommandNames.CustomizeUI)
                {
                    var m = new ViewConfigurationCommand();

                    m.Id = RafyEnvironment.NewLocalId();
                    m.ViewConfigurationModelId = parentId;
                    m.Name      = cmd.Name;
                    m.Label     = cmd.Label;
                    m.IsVisible = cmd.IsVisible;

                    this.Add(m);
                }
            }
        }
Пример #2
0
 public void Insert(int index, ViewConfigurationCommand entity)
 {
     base.Insert(index, entity);
 }
Пример #3
0
 public int IndexOf(ViewConfigurationCommand entity)
 {
     return(base.IndexOf(entity));
 }
Пример #4
0
 public bool Contains(ViewConfigurationCommand entity)
 {
     return(base.Contains(entity));
 }
Пример #5
0
 public void Add(ViewConfigurationCommand entity)
 {
     base.Add(entity);
 }
Пример #6
0
 public bool Remove(ViewConfigurationCommand entity)
 {
     return(base.Remove(entity));
 }
Пример #7
0
        internal void Add(int parentId, IEnumerable<WPFCommand> wpfCommands)
        {
            foreach (var cmd in wpfCommands)
            {
                if (cmd.RuntimeType != WPFCommandNames.CustomizeUI)
                {
                    var m = new ViewConfigurationCommand();

                    m.Id = RafyEnvironment.NewLocalId();
                    m.ViewConfigurationModelId = parentId;
                    m.Name = cmd.Name;
                    m.Label = cmd.Label;
                    m.IsVisible = cmd.IsVisible;

                    this.Add(m);
                }
            }
        }
Пример #8
0
 public int IndexOf(ViewConfigurationCommand entity)
 {
     return base.IndexOf(entity);
 }
Пример #9
0
 public bool Contains(ViewConfigurationCommand entity)
 {
     return base.Contains(entity);
 }
Пример #10
0
 public void Add(ViewConfigurationCommand entity)
 {
     base.Add(entity);
 }
Пример #11
0
 public bool Remove(ViewConfigurationCommand entity)
 {
     return base.Remove(entity);
 }
Пример #12
0
 public void Insert(int index, ViewConfigurationCommand entity)
 {
     base.Insert(index, entity);
 }