Exemplo n.º 1
0
        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();
        }
Exemplo n.º 2
0
        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();
        }