示例#1
0
        public override string ToString()
        {
            c = (ChanSpy)base.Tag;

            Binding myBinding = new Binding("scanspec");

            myBinding.Mode   = BindingMode.TwoWay;
            myBinding.Source = c;
            txtspec.SetBinding(TextBox.TextProperty, myBinding);

            Binding myBinding2 = new Binding("options");

            myBinding2.Mode   = BindingMode.TwoWay;
            myBinding2.Source = c;
            txtopt.SetBinding(TextBox.TextProperty, myBinding2);


            Binding descbinding = new Binding("Description");

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


            return(base.ToString());
        }
        public override string ToString()
        {
            c = (ChanSpy)base.Tag;

            Binding myBinding = new Binding("scanspec");
            myBinding.Mode = BindingMode.TwoWay;
            myBinding.Source = c;
            txtspec.SetBinding(TextBox.TextProperty, myBinding);

            Binding myBinding2 = new Binding("options");
            myBinding2.Mode = BindingMode.TwoWay;
            myBinding2.Source = c;
            txtopt.SetBinding(TextBox.TextProperty, myBinding2);


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


            return base.ToString();
        }