public static void ShowParameterSelector(IEnumerable <IParameter> symParameters, ref string content) { var list = new List <string>(); var diag = new ParameterSelector(symParameters, list); if (diag.ShowDialog() == DialogResult.OK) { content = "%" + diag.SelectedParameter.Name + "%"; } else { content = null; } }
public static void ShowParameterSelector(IEnumerable <IParameter> symParameters, SymbolField sender) { var list = new List <string>(); if (sender.SupportedEnhancedDataTypes != null && sender.SupportedEnhancedDataTypes.Length > 0) { foreach (var dt in sender.SupportedEnhancedDataTypes) { list.Add(dt.ToString()); } } var diag = new ParameterSelector(symParameters, list); if (diag.ShowDialog() == DialogResult.OK) { sender.Content = "%" + diag.SelectedParameter.Name + "%"; } }
public static void ShowParameterSelector(IEnumerable<IParameter> symParameters, ref string content) { var list = new List<string>(); var diag = new ParameterSelector(symParameters, list); if (diag.ShowDialog() == DialogResult.OK) { content = "%" + diag.SelectedParameter.Name + "%"; } else { content = null; } }
public static void ShowParameterSelector(IEnumerable<IParameter> symParameters, SymbolField sender) { var list = new List<string>(); if (sender.SupportedEnhancedDataTypes != null && sender.SupportedEnhancedDataTypes.Length > 0) { foreach (var dt in sender.SupportedEnhancedDataTypes) { list.Add(dt.ToString()); } } var diag = new ParameterSelector(symParameters, list); if (diag.ShowDialog() == DialogResult.OK) { sender.Content = "%" + diag.SelectedParameter.Name + "%"; } }