MaterialDesign icon indicating copy to clipboard operation
MaterialDesign copied to clipboard

Fehler im LollopopCard

Open Nexus633 opened this issue 8 years ago • 0 comments

Hallo, ich habe einen fehler in der LollipopCard.cs gefunden. Man hat nicht die möglichkeit den Go It button anzupassen.

Das habe ich nun selber gemacht, sollte aber angepasst werden.

public event EventHandler OnCardButtonClick;

private void onCardButtonClick(object sender, EventArgs e)
{
    EventHandler CardButton = OnCardButtonClick;
    if (CardButton != null)
    {
        CardButton(this, e);
    }
}

private void AddButton()
{
    OKButton.FontColor = BColor;
    OKButton.Location = new Point(210, InfoLabel.Location.Y + InfoLabel.Height + 26);
    OKButton.Size = new Size(69, 33);
    OKButton.Text = cardButton;
    OKButton.Click += onCardButtonClick;
}

AddButton/( und AddLabel() als private und nicht public :+1:

weiter :-)

string cardButton = "Go it";

[Category("Appearance")]
public string CardButtonText
{
    get { return cardButton; }
    set
    {
        cardButton = value;

        OKButton.Text = cardButton;
        Invalidate();
    }
}

Bitte für die user bearbeiten

Nexus633 avatar Aug 20 '16 13:08 Nexus633