Esempio n. 1
0
 public Visual GetControl(Application application)
 {
     if (control == null)
     {
         control = new Control_NumericUnaryOpHolder(application, "Absolute");
         control.SetBinding(Control_NumericUnaryOpHolder.OperandProperty, new Binding("Operand")
         {
             Source = this, Mode = BindingMode.TwoWay
         });
     }
     return(control);
 }
Esempio n. 2
0
 public Visual GetControl(Application application)
 {
     if (control == null)
     {
         control = new Control_NumericUnaryOpHolder(application, typeof(WaveFunctionType));
         control.SetBinding(Control_NumericUnaryOpHolder.OperandProperty, new Binding("Operand")
         {
             Source = this, Mode = BindingMode.TwoWay
         });
         control.SetBinding(Control_NumericUnaryOpHolder.SelectedOperatorProperty, new Binding("WaveFunc")
         {
             Source = this, Mode = BindingMode.TwoWay
         });
     }
     return(control);
 }