using System; using System.Collections.Generic; using System.Linq; using System.Text; namespace AtariRobot { public class Options { public string Filename { get; set; } public int CameraIndex { get; set; } public static Options GetOptions() { Options options = new Options(); OptionsForm optionsForm = new OptionsForm(); optionsForm.Focus(); optionsForm.ShowDialog(); options.CameraIndex = (int)optionsForm.cameraSpinner.Value; options.Filename = optionsForm.fileNameBox.Text; return options; } } }