示例#1
0
 private void detailList_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (detailList.SelectedIndex != -1)
     {
         if (activeSetting != null)
         {
             activeSetting.removeInput();
         }
         activeSetting    = options.ElementAt(detailList.SelectedIndex);
         label5.Text      = activeSetting.comment;
         optionLabel.Text = activeSetting.name + " [" + activeSetting.origValue + "]";
         label6.Text      = "Values : " + activeSetting.limit;
         textBox1.Text    = activeSetting.value;
         activeSetting.addInput(optionPanel);
     }
 }
示例#2
0
 private void activeGroups_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (activeGroups.SelectedIndex != -1)
     {
         sweetConfig.FXSetting activeCAt = cats.ElementAt(activeGroups.SelectedIndex);
         detailList.DataSource = null;
         options = activeCAt.children;
         try
         {
             categoryDescription.Text = activeCAt.comment.Split(':')[1].TrimStart();
         }
         catch (Exception)
         {
             categoryDescription.Text = "No description.. Old config file?";
         }
         detailList.DataSource = options;
     }
 }
示例#3
0
 private void detailList_SelectedIndexChanged(object sender, EventArgs e)
 {
     if (detailList.SelectedIndex != -1)
     {
         if (activeSetting != null)
         {
             activeSetting.removeInput();
         }
         activeSetting = options.ElementAt(detailList.SelectedIndex);
         label5.Text = activeSetting.comment;
         optionLabel.Text = activeSetting.name + " [" + activeSetting.origValue + "]";
         label6.Text = "Values : " + activeSetting.limit;
         textBox1.Text = activeSetting.value;
         activeSetting.addInput(optionPanel);
     }
 }