protected void ToolKitClicked(object sender, EventArgs e)
{
RadioButtonMenuItem mi = (RadioButtonMenuItem)sender;
if (!mi.Checked)
{
mi.Checked = true;
return;
}
Command c = MessageDialog.AskQuestion("Switching toolkits may cause the app to not start, the app will close in order to switch to the new toolkit, are you sure you want to continue?",
"In case the app doesnt start please delete the file found in: " + Settings.SettingsFile, new[] { Command.Yes, Command.No, Command.Cancel });
if (c == Command.Yes)
{
Settings.SetToolkit((ToolkitType)mi.Tag);
Settings.Save();
Application.Exit();
}
else
mi.Checked = false;
}