Beispiel #1
0
 private void button1_Click(object sender, EventArgs e)
 {
     if (rbComplete.Checked)
     {
         using (formBuildStructure fbs = new formBuildStructure(PossableStructures[cbStructure.SelectedIndex]))
         {
             fbs.ShowDialog();
         }
     }
     else
     {
         string[] fields = new string[clbStructureSelect.CheckedItems.Count];
         for (int i = 0; i < fields.Length; i++)
         {
             fields[i] = clbStructureSelect.CheckedItems[i].ToString();
         }
         using (formBuildStructure fbs = new formBuildStructure(PossableStructures[cbStructure.SelectedIndex], fields))
         {
             fbs.ShowDialog();
         }
     }
 }
 private void button1_Click(object sender, EventArgs e)
 {
     if (rbComplete.Checked)
     {
         using (formBuildStructure fbs = new formBuildStructure(PossableStructures[cbStructure.SelectedIndex]))
         {
             fbs.ShowDialog();
         }
     }
     else
     {
         string[] fields = new string[clbStructureSelect.CheckedItems.Count];
         for(int i = 0; i < fields.Length; i++)
         {
             fields[i] = clbStructureSelect.CheckedItems[i].ToString();
         }
         using (formBuildStructure fbs = new formBuildStructure(PossableStructures[cbStructure.SelectedIndex], fields))
         {
             fbs.ShowDialog();
         }
     }
 }