Exemple #1
0
        private void selectExpUsersMenuItem_Click(object sender, RoutedEventArgs e)
        {
            // Instantiate the dialog box
            SelectExpUsersDialog dlg = new SelectExpUsersDialog();

            // Configure the dialog box
            dlg.Owner       = this;
            dlg.DataContext = experimentDataModel;

            // Open the dialog box modally
            dlg.ShowDialog();

            // Process data entered by user if dialog box is accepted
            if (dlg.DialogResult == true)
            {
                // Save the changes
                dlg.SaveDatabaseChanges();

                // Reload the user list
                experimentDataModel.ReloadExperimentInfo();

                // Reload the experiment models
                ReloadExperimentModels();
            }
            else
            {
                // Reload the user list
                experimentDataModel.ReloadExperimentInfo();
            }
        }
        private void selectExpUsersMenuItem_Click(object sender, RoutedEventArgs e)
        {
            // Instantiate the dialog box
            SelectExpUsersDialog dlg = new SelectExpUsersDialog();

            // Configure the dialog box
            dlg.Owner = this;
            dlg.DataContext = experimentDataModel;

            // Open the dialog box modally 
            dlg.ShowDialog();

            // Process data entered by user if dialog box is accepted
            if (dlg.DialogResult == true)
            {
                // Save the changes
                dlg.SaveDatabaseChanges();

                // Reload the user list
                experimentDataModel.ReloadExperimentInfo();

                // Reload the experiment models
                ReloadExperimentModels();
            }
            else
            {
                // Reload the user list
                experimentDataModel.ReloadExperimentInfo();
            }
        }