Beispiel #1
0
        public static IndicationBinding Create(Control control, string propertyName, object dataSource, string dataMember)
        {
            IndicationBinding binding = new IndicationBinding(propertyName, dataSource, dataMember, false, DataSourceUpdateMode.Never);

            control.DataBindings.Add(binding);
            return(binding);
        }
Beispiel #2
0
        public static IndicationBinding Create(Control control, string propertyName, object dataSource, string dataMember, ConvertEventHandler additionFormat)
        {
            IndicationBinding binding = new IndicationBinding(propertyName, dataSource, dataMember, false, DataSourceUpdateMode.Never);

            binding.Format += additionFormat;
            control.DataBindings.Add(binding);
            return(binding);
        }