private void listApps_MouseDoubleClick(object sender, MouseEventArgs e) { if (listApps.SelectedIndex > -1) { ModifyForm f = new ModifyForm(listApps.SelectedIndex, this); f.ShowDialog(); SaveAppsStructure(); LoadAppsStructure(); LoadAppsList(); BuildLauncherMenu(); } }
private void btnEdit_Click(object sender, EventArgs e) { if (listApps.SelectedIndex > -1) { int i = listApps.SelectedIndex; ModifyForm f = new ModifyForm(listApps.SelectedIndex, this); f.ShowDialog(this); SaveAppsStructure(); LoadAppsStructure(); LoadAppsList(); BuildLauncherMenu(); listApps.SelectedIndex = i; } }