示例#1
0
        /// <summary>
        /// Construct a <code>Settings</code> form.
        /// </summary>
        /// <param name="uic">Calling UIController</param>
        /// <param name="configReader">A configuration reader</param>
        /// <param name="weapons">The current weapon list</param>
        public Settings(Controller.UIController uic, ConfigReader configReader, List<String> weapons)
        {
            InitializeComponent();

            _uic = uic;
            _reader = configReader;
            _weapons = weapons;

            InitializeValues();

            this.Closing += new CancelEventHandler(Settings_Closing);
        }
示例#2
0
        /// <summary>
        /// Construct an instance of the form
        /// </summary>
        /// <param name="uic">The creating UIController</param>
        public Unified(Controller.UIController uic)
        {
            _uic = uic;

            InitializeComponent();

            SetEventHandlers();

            // Populate with
            range_TargetDistanceUnits.Items.AddRange(new string[] { "yards", "meters" });
            range_TargetDistanceUnits.SelectedIndex = 0;

            range_Temperature.Items.AddRange(Datatype.ImageData.tempDetails);
            range_Temperature.SelectedIndex = 0;

            text_Height.Text = "1";
            text_Width.Text = "1";

            _active = false;

            // Disable elements of the UI as nothing is selected
            SetEnabled(false);
        }