private void startHubList_MouseDoubleClick(object sender, MouseEventArgs e) { int index = this.startHubList.IndexFromPoint(e.Location); if (index != System.Windows.Forms.ListBox.NoMatches) { ProgramContainer sltPro = UtilMethods.stringToPC(startHubList.Items[index].ToString(), list); SelectPop selectPop = new SelectPop(sltPro.name, sltPro.fileLoc, sltPro.imgLoc); selectPop.Show(); } }
private void addProgram_Click(object sender, EventArgs e) { SelectPop selectPop = new SelectPop(); selectPop.Show(); }