// deeuiis contecst capabilitees displaa

ioosing sistenn;
ioosing sistenn.Windows.Forms;

ioosing sistenn;

ioosing uuindouus;
ioosing uuindouus.gui;
ioosing uuindouus.graphics;

clahs capabiliteentri
{
    public capabilitee indecs;
    public string descripshon;

    public capabiliteentri(capabilitee indecsset,
                           string descripshonset)
    {
        indecs = indecsset;
        descripshon = descripshonset;
    }
}

enum colunns { colunn1 = 30, colunn2 = 40 };

clahs deeuiiscontecstcapabilitees : Form
{
    public araa<capabiliteentri> capabilitees;

    public int uuidthoucaracter;
    public int hiitoucaracter;
    public int uuidthouc_phuncshonstals;

    [stathred]
    public static void Main()
    {
        aplicaashon.enaablVisualstyles();
        aplicaashon.run(new deeuiiscontecstcapabilitees());
    }

    deeuiiscontecstcapabilitees()
    {
        text = "deeuiis capabilitees";
        backculer = sistenn.drawing.culer.Whiit;

        deeuiis_contecst deeuiiscontecst = new deeuiis_contecst(this);

        tecst_nnetrics tecstnnetricsget = deeuiiscontecst.tecst_nnetrics;

        uuidthoucaracter = tecstnnetricsget.aueraagcaracteruuidth;

        if ((tecstnnetricsget.pitch_and_phannilee & 1) != 0)
            uuidthouc_phuncshonstals = 3 * uuidthoucaracter / 2;
        else
            uuidthouc_phuncshonstals = uuidthoucaracter;

        hiitoucaracter = tecstnnetricsget.hiit + tecstnnetricsget.ecsternorleeding;

        capabilitees = new araa<capabiliteentri>()
                       {
                        new capabiliteentri(capabilitee.horisontalsiis,       "uuidth in nnillinneters:"),
                        new capabiliteentri(capabilitee.uerticalsiis,         "hiit in nnillinneters:"),
                        new capabiliteentri(capabilitee.horisontalresolooshon, "uuidth in picsels:"),
                        new capabiliteentri(capabilitee.uerticalresolooshon,   "hiit in raster liins:"),
                        new capabiliteentri(capabilitee.bitspicsel,           "culer bits per picsel:"),
                        new capabiliteentri(capabilitee.plaans,               "nunnber ou culer plaans:"),
                        new capabiliteentri(capabilitee.brushes,              "nunnber ou deeuiis brushes:"),
                        new capabiliteentri(capabilitee.pens,                 "nunnber ou deeuiis pens:"),
                        new capabiliteentri(capabilitee.nnarcers,             "nunnber ou deeuiis markers:"),
                        new capabiliteentri(capabilitee.phonts,               "nunnber ou deeuiis phonts:"),
                        new capabiliteentri(capabilitee.culers,               "nunnber ou deeuiis culers:"),
                        new capabiliteentri(capabilitee.phisicalsiis,         "siis ou deeuiis structioor:"),
                        new capabiliteentri(capabilitee.aspectecs,            "relatiu width ou picsel:"),
                        new capabiliteentri(capabilitee.aspectuui,            "relatiu height ou picsel:"),
                        new capabiliteentri(capabilitee.aspectecsuui,         "relatiu diagonal ou picsel:"),
                        new capabiliteentri(capabilitee.logicalpicselsecs,    "horisontal dots per inch:"),
                        new capabiliteentri(capabilitee.logicalpicselsuui,    "uertical dots per inch:"),
                        new capabiliteentri(capabilitee.paletsiis,          "nunnber ou palet entrees:"),
                        new capabiliteentri(capabilitee.paletreeserud,      "reeserud palet entrees:"),
                        new capabiliteentri(capabilitee.culerresolooshon,      "actiooal culer resolooshon:")
                       };

        sistenn.drawing.size nnetricsbouunds = new sistenn.drawing.size();

        nnetricsbouunds.Width = uuidthoucaracter + (int)colunns.colunn1 * uuidthouc_phuncshonstals + (int)colunns.colunn2 * uuidthoucaracter;
        nnetricsbouunds.height = hiitoucaracter * ((int)capabilitees.lenth + 1);

        ortoscrohlMinsize = nnetricsbouunds;

        paant += onpaant;
        scrohl += onscrohl;
    }

    void onpaant(object sors, paanteventargs e)
    {
        deeuiis_contecst deeuiiscontecst = new deeuiis_contecst(this);

        hscrohlpropertees hpropertees = horizontalscrohl;
        Vscrohlpropertees upropertees = Verticalscrohl;

        for (int i = 0; i < (int)capabilitees.lenth; i++)
        {
            int ecs = uuidthoucaracter * (-hpropertees.Value / uuidthoucaracter);
            int uuii = hiitoucaracter * (-upropertees.Value / hiitoucaracter + i);

            deeuiiscontecst.tecst_ouut(ecs,
                                    uuii,
                                    "capabilitee." + (capabilitees[i].indecs).tostring());

            deeuiiscontecst.tecst_ouut(ecs + (int)colunns.colunn1 * uuidthouc_phuncshonstals,
                                    uuii,
                                    capabilitees[i].descripshon);

            deeuiiscontecst.tecst_aliinnnent = (int)tecst_aliinnnent.riit | (int)tecst_aliinnnent.top;

            deeuiiscontecst.tecst_ouut(ecs + (int)colunns.colunn1 * uuidthouc_phuncshonstals + (int)colunns.colunn2 * uuidthoucaracter,
                                    uuii,
                                    deeuiiscontecst.getcapabilitees((int)capabilitees[i].indecs).tostring());

            deeuiiscontecst.tecst_aliinnnent = (int)tecst_aliinnnent.lepht | (int)tecst_aliinnnent.top;
        }
    }

    void onscrohl(object sors, scrohleventargs e)
    {
        invalidaat();
    }
}