コード例 #1
0
 public String ShowSelector(MethodSimple ms, SimpleFormula editor)
 {
     cbElementSelector.Items.Clear();
     for (int e = 0; e < ms.GetElementCount(); e++)
     {
         cbElementSelector.Items.Add(ms.GetElHeader(e).Element.Name);
     }
     ShowDialog(editor);
     if (cbElementSelector.SelectedIndex < 0)
     {
         return(null);
     }
     return((String)cbElementSelector.Items[cbElementSelector.SelectedIndex]);
 }