Beispiel #1
0
        /// <summary>
        /// Constructs a new AppSettingsForm object.
        /// </summary>
        /// <param name="settings">The property bag for holding the settings.</param>
        public AppSettingsForm(AppSettings settings)
        {
            InitializeComponent();
            this.settings = settings;
            LoadState();

            colorRampPicker  = new DMS.MapLibrary.ColorRampPicker();
            listBoxColorRamp = colorRampPicker.GetListBox();
            panelColorRamp.Controls.Add(this.listBoxColorRamp);
            listBoxColorRamp.Dock    = DockStyle.Fill;
            listBoxColorRamp.Visible = true;
            listBoxColorRamp.SelectedIndexChanged += new EventHandler(listBoxColorRamp_SelectedIndexChanged);
            UpdateColorRampState();
            colorRampPicker.UpdateListBox(listBoxColorRamp);
        }
Beispiel #2
0
        /// <summary>
        /// Constructs a new AppSettingsForm object.
        /// </summary>
        /// <param name="settings">The property bag for holding the settings.</param>
        public AppSettingsForm(AppSettings settings)
        {
            InitializeComponent();
            this.settings = settings;
            LoadState();

            colorRampPicker = new DMS.MapLibrary.ColorRampPicker();
            listBoxColorRamp = colorRampPicker.GetListBox();
            panelColorRamp.Controls.Add(this.listBoxColorRamp);
            listBoxColorRamp.Dock = DockStyle.Fill;
            listBoxColorRamp.Visible = true;
            listBoxColorRamp.SelectedIndexChanged += new EventHandler(listBoxColorRamp_SelectedIndexChanged);
            UpdateColorRampState();
            colorRampPicker.UpdateListBox(listBoxColorRamp);
        }