void UG_SetList()
 {
     this.lvUGSet.BeginUpdate();
     this.lvUGSet.Items.Clear();
     if (this.lvUGGroup.SelectedIndices.Count < 1)
     {
         this.lvUGSet.EndUpdate();
     }
     else
     {
         int[] indexesByGroupName = DatabaseAPI.GetPowersetIndexesByGroupName(this.lvUGGroup.SelectedItems[0].Text);
         int   num = indexesByGroupName.Length - 1;
         for (int index = 0; index <= num; ++index)
         {
             this.lvUGSet.Items.Add(DatabaseAPI.Database.Powersets[indexesByGroupName[index]].SetName);
             this.lvUGSet.Items[this.lvUGSet.Items.Count - 1].Tag = DatabaseAPI.Database.Powersets[indexesByGroupName[index]].FullName;
         }
         this.lvUGSet.EndUpdate();
     }
 }
Exemplo n.º 2
0
 void FillTrunkSetCombo()
 {
     this.cbTrunkSet.BeginUpdate();
     this.cbTrunkSet.Items.Clear();
     if (this.cbTrunkGroup.SelectedIndex > -1)
     {
         int   index1             = DatabaseAPI.NidFromUidPowerset(this.myPS.UIDTrunkSet);
         int[] indexesByGroupName = DatabaseAPI.GetPowersetIndexesByGroupName(this.cbTrunkGroup.SelectedText);
         int   num = indexesByGroupName.Length - 1;
         for (int index2 = 0; index2 <= num; ++index2)
         {
             this.cbTrunkSet.Items.Add(DatabaseAPI.Database.Powersets[indexesByGroupName[index2]].SetName);
             if (index1 > -1 && DatabaseAPI.Database.Powersets[indexesByGroupName[index2]].SetName == DatabaseAPI.Database.Powersets[index1].SetName)
             {
                 index1 = index2;
             }
         }
         this.cbTrunkSet.SelectedIndex = index1;
     }
     this.cbTrunkSet.EndUpdate();
 }
Exemplo n.º 3
0
        private void UG_SetList()
        {
            lvUGSet.BeginUpdate();
            lvUGSet.Items.Clear();
            if (lvUGGroup.SelectedIndices.Count < 1)
            {
                lvUGSet.EndUpdate();
            }
            else
            {
                var indexesByGroupName = DatabaseAPI.GetPowersetIndexesByGroupName(lvUGGroup.SelectedItems[0].Text);
                var num = indexesByGroupName.Length - 1;
                for (var index = 0; index <= num; ++index)
                {
                    lvUGSet.Items.Add(DatabaseAPI.Database.Powersets[indexesByGroupName[index]].SetName);
                    lvUGSet.Items[lvUGSet.Items.Count - 1].Tag =
                        DatabaseAPI.Database.Powersets[indexesByGroupName[index]].FullName;
                }

                lvUGSet.EndUpdate();
            }
        }
Exemplo n.º 4
0
        private void FillLinkSetCombo()
        {
            cbLinkSet.BeginUpdate();
            cbLinkSet.Items.Clear();
            if (cbLinkGroup.SelectedIndex > -1)
            {
                var index1             = DatabaseAPI.NidFromUidPowerset(myPS.UIDLinkSecondary);
                var indexesByGroupName = DatabaseAPI.GetPowersetIndexesByGroupName(cbLinkGroup.SelectedText);
                var num = indexesByGroupName.Length - 1;
                for (var index2 = 0; index2 <= num; ++index2)
                {
                    cbLinkSet.Items.Add(DatabaseAPI.Database.Powersets[indexesByGroupName[index2]].SetName);
                    if (index1 > -1 && DatabaseAPI.Database.Powersets[indexesByGroupName[index2]].SetName ==
                        DatabaseAPI.Database.Powersets[index1].SetName)
                    {
                        index1 = index2;
                    }
                }

                cbLinkSet.SelectedIndex = index1;
            }

            cbLinkSet.EndUpdate();
        }