Beispiel #1
0
        private void LbFestivals_ButtonClick(object sender, BrightIdeasSoftware.CellClickEventArgs e)
        {
            Account a = new Account();

            switch (e.SubItem.ToString())
            {
            case "ListViewSubItem: {J}":
                bool result = a.joinFestival((Festival)e.Model);
                if (result)
                {
                    MessageBox.Show("Je status is gewijzigd", "Succes");
                    MessageScreenForm g = new MessageScreenForm();
                    g.Show();
                    this.Close();
                }
                else
                {
                    MessageBox.Show("Er is iets mis gegaan bij het opslaan van je status, probeer het nog eens", "Error");
                }
                break;

            case "ListViewSubItem: {M}":
                TinderForm t = new TinderForm();
                t.Show();
                this.Close();
                break;
            }
        }
Beispiel #2
0
        private void button3_Click(object sender, EventArgs e)
        {
            MessageScreenForm messageForm = new MessageScreenForm();

            messageForm.Show();
            this.Close();
        }
Beispiel #3
0
        private void BTnaam5_Click(object sender, EventArgs e)
        {
            MessageScreenForm f3 = new MessageScreenForm();

            f3.Show();
            Close();
        }