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);
                }
            }
        }
Beispiel #2
0
 public void Insert(int index, ViewConfigurationCommand entity)
 {
     base.Insert(index, entity);
 }
Beispiel #3
0
 public int IndexOf(ViewConfigurationCommand entity)
 {
     return(base.IndexOf(entity));
 }
Beispiel #4
0
 public bool Contains(ViewConfigurationCommand entity)
 {
     return(base.Contains(entity));
 }
Beispiel #5
0
 public void Add(ViewConfigurationCommand entity)
 {
     base.Add(entity);
 }
Beispiel #6
0
 public bool Remove(ViewConfigurationCommand entity)
 {
     return(base.Remove(entity));
 }
        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);
                }
            }
        }
 public int IndexOf(ViewConfigurationCommand entity)
 {
     return base.IndexOf(entity);
 }
 public bool Contains(ViewConfigurationCommand entity)
 {
     return base.Contains(entity);
 }
 public void Add(ViewConfigurationCommand entity)
 {
     base.Add(entity);
 }
 public bool Remove(ViewConfigurationCommand entity)
 {
     return base.Remove(entity);
 }
 public void Insert(int index, ViewConfigurationCommand entity)
 {
     base.Insert(index, entity);
 }