private void LoadPackageInfo(PackageButton packageButton) { lblUpdateInfo.Text = ""; CharRenderOptions renderOptions = new CharRenderOptions(Color.Black); renderOptions.Bold = true; lblUpdateInfo.AppendText("Package: " + packageButton.AttachedPackage.FullID + "\n", renderOptions); lblUpdateInfo.AppendText("Name: " + packageButton.AttachedPackage.Name + "\nSize: " + PMU.Core.IO.Files.GetFileSize(packageButton.AttachedPackage.Size) + "\nPublish Date: " + packageButton.AttachedPackage.PublishDate.ToLongDateString() + "\n\nDescription:\n" + packageButton.AttachedPackage.Description, new CharRenderOptions(Color.Black)); }
private void LoadPackageInfo(PackageButton packageButton) { packageButton.Text = packageButton.AttachedPackage.Name; lblUpdateInfo.Text = ""; CharRenderOptions renderOptions = new CharRenderOptions(Color.Black); renderOptions.Bold = true; lblUpdateInfo.AppendText("Name: " + packageButton.AttachedPackage.Name + "\nSize: " + PMDCP.Core.IO.Files.GetFileSize(packageButton.AttachedPackage.Size) + "\nPublish Date: " + packageButton.AttachedPackage.PublishDate.ToLongDateString(), new CharRenderOptions(Color.Black)); }