public static OptTuple getExperimentInputs()
{
// ask the user for the classification data
var ofd = new System.Windows.Forms.OpenFileDialog();
ofd.ShowHelp = true;
ofd.FileName = "ClassificationData-2013-11-14.bin";
ofd.Title = "Please select a classification data input file.";
if (ofd.ShowDialog() != System.Windows.Forms.DialogResult.OK)
{
return OptTuple.None;
}
var c = UserSimulation.Classification.Deserialize(ofd.FileName);
// ask the user where the output data should go
var cdd = new System.Windows.Forms.FolderBrowserDialog();
cdd.Description = "Please choose an output folder.";
if (cdd.ShowDialog() != System.Windows.Forms.DialogResult.OK)
{
return OptTuple.None;
}
var foo = new Tuple<UserSimulation.Classification, string>(c, cdd.SelectedPath);
return OptTuple.Some(foo);
}