void materialTimeline1_onTimeLineEntryClicked(MaterialTimeLineEntry sender, EventArgs e) { HeadsUp objTest = new HeadsUp(); objTest.Titel = sender.Title; objTest.Text = sender.Text; MaterialFlatButton DismissHeadsUp = new MaterialFlatButton(); DismissHeadsUp.Tag = objTest; DismissHeadsUp.Text = "Dismiss"; DismissHeadsUp.Click += DismissHeadsUp_Click; objTest.Buttons.Add(DismissHeadsUp); objTest.Show(); }
private void materialFlatButton4_Click(object sender, EventArgs e) { HeadsUp objTest = new HeadsUp(); objTest.Titel = "Title"; objTest.Text = "Description Text to show Something that happend"; MaterialFlatButton DismissHeadsUp = new MaterialFlatButton(); DismissHeadsUp.Tag = objTest; DismissHeadsUp.Text = "Dismiss"; DismissHeadsUp.Click += DismissHeadsUp_Click; objTest.Buttons.Add(DismissHeadsUp); objTest.Show(); }