diff --git a/Site/Controls/v5/Base/ProgressBar.ascx b/Site/Controls/v5/Base/ProgressBar.ascx new file mode 100644 index 00000000..0793fc24 --- /dev/null +++ b/Site/Controls/v5/Base/ProgressBar.ascx @@ -0,0 +1,104 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProgressBar.ascx.cs" CodeFile="ProgressBar.ascx.cs" Inherits="Swarmops.Frontend.Controls.v5.Base.ProgressBar" %> + + + + diff --git a/Site/Controls/v5/Base/ProgressBar.ascx.cs b/Site/Controls/v5/Base/ProgressBar.ascx.cs new file mode 100644 index 00000000..f0636337 --- /dev/null +++ b/Site/Controls/v5/Base/ProgressBar.ascx.cs @@ -0,0 +1,53 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace Swarmops.Frontend.Controls.v5.Base +{ + public partial class ProgressBar : ControlV5Base + { + protected void Page_Load(object sender, EventArgs e) + { + _guid = string.Empty; + this.Header = Resources.Global.Global_ProcessingFile + "..."; + } + + protected string GuidToken + { + get { return _guid.Replace("-", "_"); } // creates a valid JS token + } + + public string Guid + { + get { return _guid; } + set + { + if (!value.Contains("-") || value.Length != 36) + { + throw new FormatException("This doesn't look like a valid GUID: " + value); + } + + _guid = value; + } + } + + public string OnClientProgressHalfwayCallback { get; set; } + public string OnClientProgressCompleteCallback { get; set; } + + public string Header + { + get { return _header; } + set + { + _header = value; + this.LabelProcessingHeader.Text = value; + } + } + + private string _guid; + private string _header; + } +} \ No newline at end of file diff --git a/Site/Controls/v5/Base/ProgressBar.ascx.designer.cs b/Site/Controls/v5/Base/ProgressBar.ascx.designer.cs new file mode 100644 index 00000000..609ee8b3 --- /dev/null +++ b/Site/Controls/v5/Base/ProgressBar.ascx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Swarmops.Frontend.Controls.v5.Base { + + + public partial class ProgressBar { + + /// + /// LabelProcessingHeader control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelProcessingHeader; + } +} diff --git a/Site/Controls/v5/Base/ProgressBarFake.ascx b/Site/Controls/v5/Base/ProgressBarFake.ascx new file mode 100644 index 00000000..ff25cd21 --- /dev/null +++ b/Site/Controls/v5/Base/ProgressBarFake.ascx @@ -0,0 +1,31 @@ +<%@ Control Language="C#" AutoEventWireup="true" CodeBehind="ProgressBarFake.ascx.cs" CodeFile="ProgressBarFake.ascx.cs" Inherits="Swarmops.Frontend.Controls.v5.Base.ProgressBarFake" %> + + + + diff --git a/Site/Controls/v5/Base/ProgressBarFake.ascx.cs b/Site/Controls/v5/Base/ProgressBarFake.ascx.cs new file mode 100644 index 00000000..58dffe7a --- /dev/null +++ b/Site/Controls/v5/Base/ProgressBarFake.ascx.cs @@ -0,0 +1,29 @@ +using System; +using System.Collections.Generic; +using System.Linq; +using System.Web; +using System.Web.UI; +using System.Web.UI.WebControls; + +namespace Swarmops.Frontend.Controls.v5.Base +{ + public partial class ProgressBarFake : ControlV5Base + { + protected void Page_Load(object sender, EventArgs e) + { + this.Header = Resources.Global.Global_ProcessingFile + "..."; + } + + public string Header + { + get { return _header; } + set + { + _header = value; + this.LabelProcessingHeader.Text = value; + } + } + + private string _header; + } +} \ No newline at end of file diff --git a/Site/Controls/v5/Base/ProgressBarFake.ascx.designer.cs b/Site/Controls/v5/Base/ProgressBarFake.ascx.designer.cs new file mode 100644 index 00000000..507456e1 --- /dev/null +++ b/Site/Controls/v5/Base/ProgressBarFake.ascx.designer.cs @@ -0,0 +1,24 @@ +//------------------------------------------------------------------------------ +// +// This code was generated by a tool. +// +// Changes to this file may cause incorrect behavior and will be lost if +// the code is regenerated. +// +//------------------------------------------------------------------------------ + +namespace Swarmops.Frontend.Controls.v5.Base { + + + public partial class ProgressBarFake { + + /// + /// LabelProcessingHeader control. + /// + /// + /// Auto-generated field. + /// To modify move field declaration from designer file to code-behind file. + /// + protected global::System.Web.UI.WebControls.Label LabelProcessingHeader; + } +} diff --git a/Site/Site.csproj b/Site/Site.csproj index 72e1e0f1..acc2c3af 100644 --- a/Site/Site.csproj +++ b/Site/Site.csproj @@ -128,6 +128,20 @@ AjaxDropDown.ascx + + ProgressBarFake.ascx + ASPXCodeBehind + + + ProgressBarFake.ascx + + + ProgressBar.ascx + ASPXCodeBehind + + + ProgressBar.ascx + ImpersonationWarningBox.ascx ASPXCodeBehind @@ -776,6 +790,8 @@ WebUserControlTest.ascx + + diff --git a/Site/web.config b/Site/web.config index bfc08bcc..408f9d49 100644 --- a/Site/web.config +++ b/Site/web.config @@ -44,6 +44,8 @@ + +