private void BtnViewSetupList_Click(object sender, RoutedEventArgs e) { SetupList chosenSetupList = new SetupList(); chosenSetupList = _setupListManager.SelectSetupList(((VMSetupList)dgSetupList.SelectedItem).SetupListID); var readSetupList = new SetupListDetail(chosenSetupList, ((VMSetupList)dgSetupList.SelectedItem).EventTitle); readSetupList.ShowDialog(); }
private void BtnUpdateSetupList_Click(object sender, RoutedEventArgs e) { SetupList chosenSetupList = new SetupList(); try { chosenSetupList = _setupListManager.SelectSetupList(((VMSetupList)dgSetupList.SelectedItem).SetupListID); var readSetupList = new SetupListDetail(chosenSetupList, ((VMSetupList)dgSetupList.SelectedItem).EventTitle); readSetupList.ShowDialog(); refreshAllSetupLists(); populateSetupLists(); } catch (Exception ex) { MessageBox.Show("Unable to find selected setup list.\n" + ex.Message); } }
private void BtnSetupList_Click(object sender, RoutedEventArgs e) { var setupListForm = new SetupListDetail(_newSetup, _newEventName); setupListForm.ShowDialog(); }