Example #1
0
        protected void Timer1_Tick(object sender, EventArgs e)
        {
            RestoreStatus bus = Session["RestoreStatus"] as RestoreStatus;

            if (bus != null)
            {
                lblRunningStatus.Text  = RunningStatus.StatusToString(bus.Status);
                txtRunningDetails.Text = bus.RunningDetails;

                if (bus.Status != Status.Running)
                {
                    Timer1.Enabled = false;
                    SetBtn(true);
                    new DeparmentCacheClearPresenter().ClearDepartmentCache();
                }
            }
        }
Example #2
0
        protected void Timer1_Tick(object sender, EventArgs e)
        {
            BackUpStatus bus = Session["DtStatus"] as BackUpStatus;

            if (bus != null)
            {
                lblRunningStatus.Text  = RunningStatus.StatusToString(bus.Status);
                txtRunningDetails.Text = bus.RunningDetails;

                if (bus.Status != Status.Running)
                {
                    Timer1.Enabled = false;
                    SetBtnEnable(true);
                }
                if (bus.Status == Status.Success)
                {
                    hlDownloadFile.NavigateUrl = @"~\DownLoadDirectory\" + bus.SuccessFileName;
                    SetDownloadFileDisplay(true);
                }
            }
        }