ПМы - тоже люди... (C#)

    Date: 03/09/07 (Code WTF)    Keywords: no keywords

    Наткнулся на код, писаный моим Project-манагером в довольно серьезном софте:

    if ((pageNumber < 0) || (pageNumber >= m_pages.Count)) return;

    if (pageNumber != -1)
    {
    m_pages[pageNumber].OnDeactivate();
    m_pages[pageNumber].Hide();
    }

    m_pages[pageNumber].Show();
    m_pages[pageNumber].OnActivate();

    if (pageNumber == 0)
    backButton.Enabled = false;
    else
    backButton.Enabled = true;

    Source: http://community.livejournal.com/code_wtf/71046.html

« CodeIgniter Calendar Class || 1C Мероприятие »


antivirus | apache | asp | blogging | browser | bugtracking | cms | crm | css | database | ebay | ecommerce | google | hosting | html | java | jsp | linux | microsoft | mysql | offshore | offshoring | oscommerce | php | postgresql | programming | rss | security | seo | shopping | software | spam | spyware | sql | technology | templates | tracker | virus | web | xml | yahoo | home