private void ModifyEmulator_Click(object sender, EventArgs e)
        {
            Emulator selectedEmulator = ((EmulatorTreeNode)sender).Emulator;

            using (EmulatorManagementWindow mNewEmulatorForm = new EmulatorManagementWindow())
            {
                var loadedEmulators = mLoadedEmulators.Select(f => f.Name).ToList();
                loadedEmulators.Remove(selectedEmulator.Name); // Allow the user to use this emulator's name again
                mNewEmulatorForm.Initialize(loadedEmulators,selectedEmulator.Name,selectedEmulator.Path, selectedEmulator.Arguments);
                if (mNewEmulatorForm.ShowDialog(this) == DialogResult.OK)
                {
                    String name = mNewEmulatorForm.EmulatorName;
                    String path = mNewEmulatorForm.EmulatorPath;
                    String args = mNewEmulatorForm.EmulatorArgs;
                    mConfigurationComponent.AddOrUpdateEmulator(name, path, args,selectedEmulator.Id);
                }
            }
        }
 private void addNewEmulators_Click(object sender, EventArgs e)
 {
     using (EmulatorManagementWindow mNewEmulatorForm = new EmulatorManagementWindow())
     {
         mNewEmulatorForm.Initialize(mLoadedEmulators.Select(f => f.Name).ToList());
         mLogger.Info("ModifyEmulators clicked, displaying form");
         if (mNewEmulatorForm.ShowDialog(this) == DialogResult.OK)
         {
             String name = mNewEmulatorForm.EmulatorName;
             String path = mNewEmulatorForm.EmulatorPath;
             String args = mNewEmulatorForm.EmulatorArgs;
             mConfigurationComponent.AddOrUpdateEmulator(name, path, args);
         }
     }
 }