コード例 #1
0
ファイル: AppCommands.cs プロジェクト: mohan682/Projects
            public override object GetValue(object component)
            {
                AppCommands map = component as AppCommands;

                if (null == map)
                {
                    throw new ArgumentException("component is not a CommandMap instance", "component");
                }
                return(map.Commands[this.Name]);
            }
コード例 #2
0
ファイル: AppCommands.cs プロジェクト: mohan682/Projects
 public CommandMapDescriptor(ICustomTypeDescriptor descriptor, AppCommands map) : base(descriptor)
 {
     _map = map;
 }