public FormEditValuePresetsNewNameDialog(FormEditValuePresets formEditValuePresets, GrangerContext context)
        {
            this.FormEditValuePresets = formEditValuePresets;
            this.Context = context;

            InitializeComponent();

            var uniqueValMapIDs = Context.TraitValues.AsEnumerable().Select(x => x.ValueMapID).Distinct();
            foreach (var mapID in uniqueValMapIDs)
            {
                TakenValueMapIDs.Add(mapID);
            }
        }
Exemplo n.º 2
0
 private void buttonEditValuePreset_Click(object sender, EventArgs e)
 {
     //dialog to edit value presets
     FormEditValuePresets ui = new FormEditValuePresets(Context);
     ui.ShowDialog();
 }