private void listBox1_MouseDoubleClick(object sender, MouseEventArgs e) { AddActivity addActivity = new AddActivity(listBox1.SelectedIndex); addActivity.Show(); }
private void button1_Click(object sender, EventArgs e) { AddActivity addActivity = new AddActivity(); addActivity.Show(); }