Example #1
0
 private void lvAttendance_MouseDoubleClick(object sender, MouseEventArgs e)
 {
     // something is selected
     if (lvAttendance.SelectedIndices[0] != -1)
     {
         if (Properties.Settings.Default.playSounds)
             Sound.Click.Play();
         // insert pop-up with member's profile
         Form memberprofile = new Profile(
             ClsStorage.currentClub.listTerms[cbTerm.SelectedIndex].members[Convert.ToInt32(lvAttendance.SelectedItems[0].SubItems[ClsStorage.currentClub.listTerms[cbTerm.SelectedIndex].numRehearsals + 2].Text)]);
         memberprofile.ShowDialog();
         memberprofile.Dispose();
     }
 }
Example #2
0
        private void lvFromTo_MouseDoubleClick(object sender, MouseEventArgs e)
        {
            // something is selected
            if (lvFromTo.SelectedIndices[0] != -1 && fromMember)
            {
                if (Properties.Settings.Default.playSounds)
                    Sound.Click.Play();

                // insert pop-up with member's profile
                Form memberprofile = new Profile(fromIndexList[lvFromTo.SelectedIndices[0]]);
                memberprofile.ShowDialog();
                memberprofile.Dispose();
            }
        }