Ejemplo n.º 1
0
        public AboutBox(Assembly asm)
        {
            var asmName = asm.GetName();
            this.AppName = asmName.Name;
            this.AppDescription = asm.GetDescription();
            this.Version = asm.GetInformationalVersion();
            this.Copyright = asm.GetCopyright();
            //this.AppIcon = ShellIcon.GetIconImageSource(asm.Location, IconSize.Large);
            //this.Loaded += this.LoadedHandler;

            this.InitializeComponent();
        }
Ejemplo n.º 2
0
        /// <summary>
        /// Constructor
        /// </summary>
        /// <param name="assembly"></param>
        public AsmInfo(Assembly assembly) {
            assembly.ShouldNotBeNull("assembly");

            FullName = assembly.FullName;
            AssemblyName = assembly.GetName();

            // NOTE : CodeBase는 동적으로 Loading 한 Assembly에 대해서는 값을 조회할 수 없다.
            // this.CodeBase = assembly.CodeBase;
            Company = assembly.GetCompany();
            Configuration = assembly.GetConfiguration();
            Copyright = assembly.GetCopyright();
            Culture = assembly.GetCulture();
            DefaultAlias = assembly.GetDefaultAlias();
            Description = assembly.GetDescription();
            InfomationalVersion = assembly.GetInformationalVersion();
            Product = assembly.GetProduct();
            Title = assembly.GetTitle();
            Trademark = assembly.GetTrandemark();
            Version = AssemblyName.Version;
            Win32FileVersion = assembly.GetFileVersion();
        }