private void saveNewScriptnameButton_Click(object sender, RoutedEventArgs e)
 {
     if (existingScripts.Contains(duplicateScriptRenameTextbox.Text))
     {
         MessageBox.Show("A script with this name already exists.", "Invalid Script Name", System.Windows.Forms.MessageBoxButtons.OK, System.Windows.Forms.MessageBoxIcon.Error);
     }
     else
     {
         //string newName = duplicateScriptRenameTextbox.Text;
         //RenameReturn = newName;
         ImportDuplicateNameChangeWindow.Close();
     }
 }
 private void CancelImportButton_Click(object sender, RoutedEventArgs e)
 {
     ImportDuplicateNameChangeWindow.Close();
 }