Beispiel #1
0
        private void buttonDionysus_Click(object sender, EventArgs e)
        {
            var _persona = _database.GetPersonaByName("Dionysus");
            var form     = new PersonaDetailForm(_persona, "Dionysus");
            var result   = form.ShowDialog(this);

            Close();
        }
Beispiel #2
0
        //searchbox
        private void buttonSearch_Click(object sender, EventArgs e)
        {
            var _persona = _database.GetPersonaByName(textSearch.Text);

            if (_persona == null)
            {
                MessageBox.Show(this, "Persona Not Found");
                return;
            }

            var form   = new PersonaDetailForm(_persona, _persona.Name);
            var result = form.ShowDialog(this);
        }