Esempio n. 1
0
        private void addToolStripMenuItem_Click(object sender, EventArgs e)
        {
            string teamName = TextInputPrompt.ShowDialog(this, "Teamname", "Input a name for the team");

            if (teamName != "-1")
            {
                lvTeams.Items.Add(teamName);
                lvTeams.Items[lvTeams.Items.Count - 1].Tag = true;
            }
        }
Esempio n. 2
0
        private void editToolStripMenuItem_Click(object sender, EventArgs e)
        {
            if (lvTeams.SelectedItems.Count < 1)
            {
                return;
            }
            string teamName = TextInputPrompt.ShowDialog(this, "Teamname", "Input a name for the team", lvTeams.SelectedItems[0].Text);

            if (teamName != "-1")
            {
                lvTeams.SelectedItems[0].Text = teamName;
            }
        }