Exemple #1
0
        private static SetSuffix <TParam> BuildBasicSetSuffix <TParam>() where TParam : Encapsulation.Structure
        {
            var basicInstance = new StrongBox <TParam>(default(TParam));

            SuffixSetDlg <TParam> setter = value => basicInstance.Value = value;
            SuffixGetDlg <TParam> getter = () => basicInstance.Value;

            return(new SetSuffix <TParam>(getter, setter));
        }
Exemple #2
0
        private static SetSuffix<TParam> BuildBasicSetSuffix<TParam>()
        {
            var basicInstance = new StrongBox<TParam>(default(TParam));

            SuffixSetDlg<TParam> setter = value => basicInstance.Value = value;
            SuffixGetDlg<TParam> getter = () => basicInstance.Value;

            return new SetSuffix<TParam>(getter, setter);
        }
Exemple #3
0
 public SetSuffix(SuffixGetDlg <TValue> getter, SuffixSetDlg <TValue> setter, string description = "")
     : base(getter, description)
 {
     this.setter = setter;
 }
 public ClampSetSuffix(SuffixGetDlg <TValue> getter, SuffixSetDlg <TValue> setter, double min, double max, string description = "")
     : base(getter, setter, description)
 {
     this.min = min;
     this.max = max;
 }
 public ClampSetSuffix(SuffixGetDlg <TValue> getter, SuffixSetDlg <TValue> setter, double min, double max, float stepIncrement, string description = "")
     : this(getter, setter, min, max, description)
 {
     this.stepIncrement = stepIncrement;
 }
Exemple #6
0
 public Suffix(SuffixGetDlg <TReturn> getter, string description = "") : base(description)
 {
     this.getter = getter;
 }
        private static SuffixGetDlg <TParam> BuildBasicGetter <TParam>(StrongBox <TParam> state)
        {
            SuffixGetDlg <TParam> getter = () => state.Value;

            return(getter);
        }
Exemple #8
0
        private static SuffixGetDlg <TParam> BuildBasicGetter <TParam>(StrongBox <TParam> state) where TParam : Encapsulation.Structure
        {
            SuffixGetDlg <TParam> getter = () => state.Value;

            return(getter);
        }