Exemple #1
0
        private void btnAddSetup_Click(object sender, RoutedEventArgs e)
        {
            var createSetup = new SetupDetail();

            createSetup.ShowDialog();
            refreshAllSetups();
            populateSetups();
        }
Exemple #2
0
        private void dgSetups_MouseDoubleClick(object sender, MouseButtonEventArgs e)
        {
            Setup chosenSetup = new Setup();

            chosenSetup = _setupManager.SelectSetup(((VMSetup)dgSetups.SelectedItem).SetupID);
            try
            {
                var readSetup = new SetupDetail(chosenSetup);
                readSetup.ShowDialog();

                refreshAllSetups();
                populateSetups();
            }
            catch (Exception ex)
            {
                MessageBox.Show("Unable to find that specific Setup." + ex.Message);
            }
        }