コード例 #1
0
ファイル: Number_Maths.cs プロジェクト: vladhietala/Aurora
 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);
 }
コード例 #2
0
ファイル: Number_Waves.cs プロジェクト: vladhietala/Aurora
 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);
 }