using System; using System.Collections; using System.ComponentModel; using System.Data; using System.Drawing; using System.Web; using System.Web.SessionState; using System.Web.UI; using System.Web.UI.WebControls; using System.Web.UI.HtmlControls; using System.Globalization; namespace PageBox { /// ///

Generated.
/// Methods modified or created:

///

Copyright (c) 2002 Alexis Grandemange
/// Mail: alexis.grandemange@pagebox.net

///
This program is free software; you can redistribute it and/or
	/// modify it under the terms of the GNU Lesser General Public
	/// License as published by the Free Software Foundation; version
	/// 2.1 of the License.
	/// This library is distributed in the hope that it will be useful,
	/// but WITHOUT ANY WARRANTY; without even the implied warranty of
	/// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
	/// GNU Lesser General Public License for more details.
	/// A copy of the GNU Lesser General Public License lesser.txt should be
	/// included in the distribution.
///
public class UpdateWF : System.Web.UI.Page { protected System.Web.UI.WebControls.HyperLink logo; protected System.Web.UI.WebControls.HyperLink Support; protected System.Web.UI.WebControls.Label LabWSURL; protected System.Web.UI.WebControls.Label UpdateLab; protected System.Web.UI.WebControls.DataGrid updateDB; public UpdateWF() { Page.Init += new System.EventHandler(Page_Init); } /// ///

Called on Page Load event.

///
private void Page_Load(object sender, System.EventArgs e) { ArrayList al = new ArrayList(); IDictionaryEnumerator ide = Global.pbArchives.archives.GetEnumerator(); while(ide.MoveNext()) { string a = (string)ide.Key; Archive arch = (Archive)ide.Value; al.Add(new UpdateEntry(a, arch.downloadURL, arch.date.ToString("u", DateTimeFormatInfo.InvariantInfo), arch.owner, arch.docURL, "" + arch.size)); } updateDB.DataSource = al; updateDB.DataBind(); LabWSURL.Text = Global.DeployURL; } private void Page_Init(object sender, EventArgs e) { // // CODEGEN: This call is required by the ASP.NET Web Form Designer. // InitializeComponent(); } #region Web Form Designer generated code /// /// Required method for Designer support - do not modify /// the contents of this method with the code editor. /// private void InitializeComponent() { this.Load += new System.EventHandler(this.Page_Load); } #endregion } /// /// Describes a row of updateDB datagrid. /// public sealed class UpdateEntry { /// /// Archive name. /// private string archive; /// /// Repository URL. /// private string downloadURL; /// /// Archive Last Modified time. /// private string date; /// /// User who published the archive. /// private string owner; /// /// URL of the archive documentation. /// private string doc; /// /// Archive size (in bytes) /// private string size; /// /// Constructor. /// /// Archive name /// Download URL /// Archive Last Modified time /// User who published the archive /// URL of the archive documentation /// Archive size public UpdateEntry(string a, string u, string t, string o, string d, string s) { archive = a; downloadURL = u; date = t; owner = o; doc = d; size = s; } /// /// Archive name /// public string Archive { get { return archive; } } /// /// Download URL /// public string DownloadURL { get { return downloadURL; } } /// /// Archive Last Modified time /// public string Date { get { return date; } } /// /// User who published the archive /// public string Owner { get { return owner; } } /// /// URL of the archive documentation /// public string Documentation { get { return doc; } } /// /// Archive size /// public string Size { get { return size; } } } }