Пример #1
0
        private void editContainer(object sender, EventArgs e)
        {
            if (FeatCollection.SelectedItem == null)
            {
                return;
            }
            FeatureContainer selected = (FeatureContainer)FeatCollection.SelectedItem;

            if (selected != null)
            {
                string sel             = selected.Name;
                FeatureContainerForm r = new FeatureContainerForm(selected.Clone());
                r.Saved += ContainerSaved;
                r.Show();
            }
        }
Пример #2
0
        private void button2_Click(object sender, EventArgs e)
        {
            if (FeatCats.SelectedItem == null)
            {
                return;
            }
            FeatureContainer f = new FeatureContainer()
            {
                Source   = Program.Context.Config.DefaultSource,
                category = (string)FeatCats.SelectedItem
            };
            FeatureContainerForm r = new FeatureContainerForm(f);

            r.Saved += ContainerSaved;
            r.Show();
        }