public override string ToString() { s = (STRFTIME)base.Tag; Binding myBinding = new Binding("result"); myBinding.Mode = BindingMode.TwoWay; myBinding.Source = s; txtres.SetBinding(TextBox.TextProperty, myBinding); Binding myBinding2 = new Binding("var"); myBinding2.Mode = BindingMode.TwoWay; myBinding2.Source = s; txtvar.SetBinding(TextBox.TextProperty, myBinding2); Binding myBinding3 = new Binding("timezone"); myBinding3.Mode = BindingMode.TwoWay; myBinding3.Source = s; txttz.SetBinding(TextBox.TextProperty, myBinding3); Binding myBinding4 = new Binding("format"); myBinding4.Mode = BindingMode.TwoWay; myBinding4.Source = s; txtformat.SetBinding(TextBox.TextProperty, myBinding4); Binding descbinding = new Binding("Description"); descbinding.Mode = BindingMode.TwoWay; descbinding.Source = s; txtdesc.SetBinding(TextBox.TextProperty, descbinding); return base.ToString(); }
public override string ToString() { s = (STRFTIME)base.Tag; Binding myBinding = new Binding("result"); myBinding.Mode = BindingMode.TwoWay; myBinding.Source = s; txtres.SetBinding(TextBox.TextProperty, myBinding); Binding myBinding2 = new Binding("var"); myBinding2.Mode = BindingMode.TwoWay; myBinding2.Source = s; txtvar.SetBinding(TextBox.TextProperty, myBinding2); Binding myBinding3 = new Binding("timezone"); myBinding3.Mode = BindingMode.TwoWay; myBinding3.Source = s; txttz.SetBinding(TextBox.TextProperty, myBinding3); Binding myBinding4 = new Binding("format"); myBinding4.Mode = BindingMode.TwoWay; myBinding4.Source = s; txtformat.SetBinding(TextBox.TextProperty, myBinding4); Binding descbinding = new Binding("Description"); descbinding.Mode = BindingMode.TwoWay; descbinding.Source = s; txtdesc.SetBinding(TextBox.TextProperty, descbinding); return(base.ToString()); }