private void EditApp(object sender, RoutedEventArgs e) { try { string item = listView.SelectedItem.ToString(); item = getBetween(item + ":end:", "ListViewItem: ", ":end:"); for (byte i = 0; i < quickApps.Count; i++) { if (quickApps[i].name == item) { CreateApp createApp = new CreateApp(quickApps[i], i); createApp.Show(); break; } } } catch { Popup popup = new Popup("Select the App you want to edit."); popup.Show(); } }
private void AddApp(object sender, RoutedEventArgs e) { CreateApp createApp = new CreateApp(); createApp.Show(); }