コード例 #1
0
        public override string ToString()
        {
            s = (SetCDRUserfield)base.Tag;

          
            Binding myBinding2 = new Binding("userfield");
            myBinding2.Mode = BindingMode.TwoWay;
            myBinding2.Source = s;
            txtval.SetBinding(TextBox.TextProperty, myBinding2);



            Binding descbinding = new Binding("Description");
            descbinding.Mode = BindingMode.TwoWay;
            descbinding.Source = s;
            txtdesc.SetBinding(TextBox.TextProperty, descbinding);

            return base.ToString();
        }
コード例 #2
0
        public override string ToString()
        {
            s = (SetCDRUserfield)base.Tag;


            Binding myBinding2 = new Binding("userfield");

            myBinding2.Mode   = BindingMode.TwoWay;
            myBinding2.Source = s;
            txtval.SetBinding(TextBox.TextProperty, myBinding2);



            Binding descbinding = new Binding("Description");

            descbinding.Mode   = BindingMode.TwoWay;
            descbinding.Source = s;
            txtdesc.SetBinding(TextBox.TextProperty, descbinding);

            return(base.ToString());
        }