public void Remove(AttributeInterpretation arr)
 {
     chooser.Items.Remove(arr);
     if (AttributeArray == null)
     {
         AttributeArray = null;
     }
 }
Exemplo n.º 2
0
        void save_Click(object sender, EventArgs e)
        {
            AttributeInterpretation item = (AttributeInterpretation)chooser.SelectedItem;

            if (item != null)
            {
                item.Save();
            }
        }
        private void chooser_SelectedIndexChanged(object sender, EventArgs e)
        {
            AttributeInterpretation item = (AttributeInterpretation)chooser.SelectedItem;

            if (item != null)
            {
                AttributeArray = item.Array;
                TargetChanged();
            }
        }
Exemplo n.º 4
0
        public int Add(AttributeInterpretation arr)
        {
            int i = chooser.Items.Add(arr);

            if (base.AttributeArray == null)
            {
                chooser.SelectedIndex = i;
            }
            return(i);
        }
        private void save_Click(object sender, EventArgs e)
        {
            AttributeInterpretation item = (AttributeInterpretation)chooser.SelectedItem;

            item?.Save();
        }