public BizBoxInfoControl(CoreAttributes attributes) { InitializeComponent(); CoreNameLabel.Text = attributes.CoreName; if (!string.IsNullOrEmpty(attributes.Author)) { CoreAuthorLabel.Text = "authors: " + attributes.Author; } else { CoreAuthorLabel.Visible = false; } CorePortedLabel.Text = attributes.Ported ? " (Ported)" : string.Empty; if (!attributes.Ported) { CoreUrlLink.Visible = false; } else { CoreUrlLink.Visible = true; CoreUrlLink.Text = attributes.PortedVersion; url = attributes.PortedUrl; } }
private void ProcessConstructor(Type type, string system, CoreAttributes coreattr, ConstructorInfo cons) { Core core = new Core(coreattr.CoreName, type, cons); List<Core> ss; if (!systems.TryGetValue(system, out ss)) { ss = new List<Core>(); systems.Add(system, ss); } ss.Add(core); }