Example #1
0
        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;
            }
        }
Example #2
0
        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 + "%";
            }
        }
Example #3
0
 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;
     }
 }
Example #4
0
        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 + "%";
            }
        }
Example #5
0
 private void OnRequestBrowse(SymbolField sender) => ParameterSelector.ShowParameterSelector(_sym.ParameterDefinition.Parameter, sender);