protected void Page_Load(object sender, EventArgs e)
        {
            Agent.GhostCastManagerClient gcmc = new Agent.GhostCastManagerClient();
            SiteLabel.Text = gcmc.GetAgentSettings().PhysicalSiteName;

            if (Tools.IsAdmin(AdminKeyTextBox, Session))
            {
                AdminViewState();
            }
        }
 protected void Page_Load(object sender, EventArgs e)
 {
     Status.Text = String.Empty;
     SavedSessionsListBox.DataBound += new EventHandler(SavedSessionsListBox_DataBound);
     if (Tools.IsAdmin(Master, Session))
     {
         DeleteButtonPanel.Visible = true;
     }
     Agent.GhostCastManagerClient gcmc = new Agent.GhostCastManagerClient();
     if (String.IsNullOrWhiteSpace(gcmc.GetAgentSettings().SMTPServerAddress))
     {
         AlertEmailAddressTextBox.Enabled = false;
     }
 }
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!Tools.IsAdmin(Master, Session))
            {
                Response.Redirect("Default.aspx", true);
                return;
            }

            Agent.GhostCastManagerClient gcmc = new Agent.GhostCastManagerClient();
            agentSettings = gcmc.GetAgentSettings();

            if (!Page.IsPostBack)
            {
                PhysicalSiteNameTextBox.Text = agentSettings.PhysicalSiteName;
                GhostCastServerExePathTextBox.Text = agentSettings.GhostCastServerExePath;
                GhostImageFileRootPathPrimaryTextBox.Text = agentSettings.GhostImageFileRootPathPrimary;
                GhostImageFileRootPathSecondaryTextBox.Text = agentSettings.GhostImageFileRootPathSecondary;
                SMTPServerAddressTextBox.Text = agentSettings.SMTPServerAddress;
            }
        }