示例#1
0
    // ------------------------------------------------------------------------------------
    // BuildStatus Table
    // ------------------------------------------------------------------------------------
    public bool GetStatusLockdown()
    {
        BuildStatusTableAdapter buildStatusAdapter = new BuildStatusTableAdapter();

        phxbuild.BuildStatusDataTable statusTable = buildStatusAdapter.GetBuildStatus();

        bool bLockdown = false;

        if (statusTable.Count > 0)
        {
            bLockdown = (statusTable[0].lockdown != 0) ? true : false;
        }

        return(bLockdown);
    }
示例#2
0
    public void SetStatusLockdown(bool status)
    {
        BuildStatusTableAdapter buildStatusAdapter = new BuildStatusTableAdapter();

        buildStatusAdapter.UpdateBuildStatusLockdown((status == false) ? 0 : 1);
    }