FolderWidget/frmMain.cs
/// <summary>
/// when having deployment access, another button would appear
/// </summary>
when having deployment access, another button would appear
when having deployment access another button would appear
private void AddDeployToProdButton()
        {
            try
            {
                if (ConfigurationManager.AppSettings["DeveloperMode"] == "1")
                {
                    System.Security.AccessControl.DirectorySecurity ds = Directory.GetAccessControl(ConfigurationManager.AppSettings["deployToProdPath"]);
                    m_height = 110;
                    btnDeployToProd.Visible = true;
                }
                else
                {
                    m_height = 80;
                    if (tblMain.RowCount == 3)
                    {
                        tblMain.RowCount = 2;
                    }
                    btnDeployToProd.Visible = false;
                }
            }
            catch (UnauthorizedAccessException)
            {
                m_height = 80;
                if (tblMain.RowCount == 3)
                {
                    tblMain.RowCount = 2;
                }
                btnDeployToProd.Visible = false;
            }
            catch (Exception ex)
            {
                clsFileManager.WriteError(ex.Message, ex.StackTrace);
            }
        }
private void AddDeployToProdButton ( ) { try { if ( ConfigurationManager . AppSettings [ " " ] == " " ) { System . Security . AccessControl . DirectorySecurity ds = Directory . GetAccessControl ( ConfigurationManager . AppSettings [ " " ] ) ; m_height = 110 ; btnDeployToProd . Visible = true ; } else { m_height = 80 ; if ( tblMain . RowCount == 3 ) { tblMain . RowCount = 2 ; } btnDeployToProd . Visible = false ; } } catch ( UnauthorizedAccessException ) { m_height = 80 ; if ( tblMain . RowCount == 3 ) { tblMain . RowCount = 2 ; } btnDeployToProd . Visible = false ; } catch ( Exception ex ) { clsFileManager . WriteError ( ex . Message , ex . StackTrace ) ; } }
when having deployment access, another button would appear
when having deployment access another button would appear