Exemplo n.º 1
0
        private void AddOptionalAttributeButton_Click(object sender, EventArgs e)
        {
            var frm = new SelectItemsWindow(allAttributesList, optionalAttributesList, null);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                optionalAttributesList.AddRange(frm.SelectedItemsList);
                this.OptionalList.DataSource = null;
                this.OptionalList.DataSource = optionalAttributesList;
                this.OptionalList.Refresh();
            }
        }
Exemplo n.º 2
0
        private void AddAuxiliaryAttributeButton_Click(object sender, EventArgs e)
        {
            var frm = new SelectItemsWindow(allClassesList, auxiliaryClassesList, null);

            if (frm.ShowDialog() == DialogResult.OK)
            {
                auxiliaryClassesList.AddRange(frm.SelectedItemsList);
                this.AuxiliaryList.DataSource = null;
                this.AuxiliaryList.DataSource = auxiliaryClassesList;
                this.AuxiliaryList.Refresh();
            }
        }
Exemplo n.º 3
0
        private void AddMandatoryAttributeButton_Click(object sender, EventArgs e)
        {
            if (isAddMode)
            {
                var frm = new SelectItemsWindow(allAttributesList, mandatoryAttributesList, null);

                if (frm.ShowDialog() == DialogResult.OK)
                {
                    mandatoryAttributesList.AddRange(frm.SelectedItemsList);
                    this.MandatoryList.DataSource = null;
                    this.MandatoryList.DataSource = mandatoryAttributesList;
                    this.MandatoryList.Refresh();
                }
            }
        }