Esempio n. 1
0
    public SaneButton(Control parent, string text, int width = 2, object userData = null)
    {
        SaneCoords = new SaneCoords(this);
        SetText(text);
        Parent = parent;
        SaneCoords.SaneScale(width, 1);

        this.userData = userData;
        Click        += (s, e) => { Clicked(); };
    }
Esempio n. 2
0
    public SaneLabel(Control parent, string text, int width = 5)
    {
        SaneCoords = new SaneCoords(this);
        Text       = text;
        Parent     = parent;
        SaneCoords.SaneScale(width, 1);
        TextAlign = ContentAlignment.MiddleLeft;
        BackColor = Color.Transparent;
//        BorderStyle = BorderStyle.Fixed3D;
    }