Ejemplo n.º 1
0
        private void load_Click(object sender, EventArgs e)
        {
            SortedDictionary <string, List <string> > presets = this.LoadPresets();
            PresetLoader presetLoader = new PresetLoader(this);

            if (presetLoader.ShowDialog() == DialogResult.OK)
            {
                this.layers.Items.Clear();
                this.layers.Items.AddRange(presets[presetLoader.Selection].ToArray());
            }

            this.layers.ClearSelected();
        }
Ejemplo n.º 2
0
        private void load_Click(object sender, EventArgs e)
        {
            SortedDictionary<string, List<string>> presets = this.LoadPresets();
            PresetLoader presetLoader = new PresetLoader(this);

            if (presetLoader.ShowDialog() == DialogResult.OK)
            {
                this.layers.Items.Clear();
                this.layers.Items.AddRange(presets[presetLoader.Selection].ToArray());
            }

            this.layers.ClearSelected();
        }