예제 #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(); };
    }
예제 #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;
    }