Exemple #1
0
 private void ActAllCheckBoxes(bool CheckThem)
 {
     for (int i = 0; i <= (ValuesCheckedListBox.Items.Count - 1); i++)
     {
         if (CheckThem)
         {
             ValuesCheckedListBox.SetItemCheckState(i, CheckState.Checked);
         }
         else
         {
             ValuesCheckedListBox.SetItemCheckState(i, CheckState.Unchecked);
         }
     }
 }
Exemple #2
0
 private void linkLabel3_LinkClicked(object sender, LinkLabelLinkClickedEventArgs e)
 {
     for (int i = 0; i <= (ValuesCheckedListBox.Items.Count - 1); i++)
     {
         if (ValuesCheckedListBox.GetItemChecked(i))
         {
             ValuesCheckedListBox.SetItemCheckState(i, CheckState.Unchecked);
         }
         else
         {
             ValuesCheckedListBox.SetItemCheckState(i, CheckState.Checked);
         }
     }
 }
Exemple #3
0
        public void setEnumeratedDescribedView(bool Enumerated, BaseArtefactInfo artInfo)
        {
            try
            {
                DescribedPanel.Enabled  = false;
                EnumeratedPanel.Enabled = false;

                if (Enumerated)
                {
                    EnumeratedPanel.Enabled = true;
                    ValueDomainListComboBox.SelectedIndex = ValueDomainListComboBox.FindStringExact(((ArtefactInfo.model.ValueDomainSubsetInfo)(artInfo)).vd_id_ref);
                    VTLInt_Service.ServiceClient VTL_service = VTLInt_ServiceManager.GetClient(CommonItem.CurrentSettings.InteractionWebService);

                    BaseComponentInfo[] values = VTL_service.GetSubSetList(((ArtefactInfo.model.ValueDomainSubsetInfo)(artInfo)).vtlId);

                    foreach (BaseComponentInfo bs in values)
                    {
                        for (int i = 0; i < ValuesCheckedListBox.Items.Count; i++)
                        {
                            ValValueDomainObject vl = (ValValueDomainObject)ValuesCheckedListBox.Items[i];
                            if (vl.value_seq_id.ToString() == bs.seq_id)
                            {
                                ValuesCheckedListBox.SetItemCheckState(i, CheckState.Checked);
                            }
                        }
                    }
                }
                else
                {
                    DescribedPanel.Enabled = true;
                    ValueDomainListComboBox.SelectedIndex = ValueDomainListComboBox.FindStringExact(((ArtefactInfo.model.ValueDomainSubsetInfo)(artInfo)).vd_id_ref + DESCRIBED_SUFFIX);
                    DescribedCriterionTextBox.Text        = ((ArtefactInfo.model.ValueDomainSubsetInfo)(artInfo)).set_criterion_id;
                }
            }
            catch (Exception)
            {
                throw;
            }
        }