public AppDescriptionAttribute(String name, PlatformCapabilities platforms) { Name = name; Platforms = platforms; Thumbnail = Resources.DefaultImage; RTFDescription = Resources.NoDescription; RTFSource = Resources.NoSourceCode; }
public AppDescriptionAttribute(String name, PlatformCapabilities platforms, String thumbnail, String descFile, String sourceFile) { Name = name; Platforms = platforms; if (thumbnail != null) { Thumbnail = (Image)Resources.ResourceManager.GetObject(thumbnail); if (Thumbnail == null) { Thumbnail = Resources.DefaultImage; } } else { Thumbnail = Resources.DefaultImage; } if (descFile != null) { RTFDescription = Resources.ResourceManager.GetString(descFile); if (RTFDescription == null) { RTFDescription = Resources.NoDescription; } } else { RTFDescription = Resources.NoDescription; } if (sourceFile != null) { RTFSource = Resources.ResourceManager.GetString(sourceFile); if (RTFSource == null) { RTFSource = Resources.NoSourceCode; } } else { RTFSource = Resources.NoSourceCode; } }
public AppDescriptionAttribute(String name, PlatformCapabilities platforms, String descFile) { Name = name; Platforms = platforms; Thumbnail = Resources.DefaultImage; if (descFile != null) { RTFDescription = Resources.ResourceManager.GetString(descFile); if (RTFDescription == null) { RTFDescription = Resources.NoDescription; } } else { RTFDescription = Resources.NoDescription; } RTFSource = Resources.NoSourceCode; }
private void SetValidPlatforms(AppDescriptionAttribute att) { rendererSelection.Items.Clear(); rendererSelection.Text = ""; if (att != null) { PlatformCapabilities flags = att.Platforms; if (flags == PlatformCapabilities.None) { return; } if ((flags & PlatformCapabilities.Direct3D10) == PlatformCapabilities.Direct3D10) { rendererSelection.Items.Add("Direct3D 10"); } if ((flags & PlatformCapabilities.XNA4) == PlatformCapabilities.XNA4) { rendererSelection.Items.Add("XNA 4.0"); } rendererSelection.Text = (String)rendererSelection.Items[0]; } }