public bool Equals(DestinyProgressionMappingDefinition input) { if (input == null) { return(false); } return (( DisplayProperties == input.DisplayProperties || (DisplayProperties != null && DisplayProperties.Equals(input.DisplayProperties)) ) && ( DisplayUnits == input.DisplayUnits || (DisplayUnits != null && DisplayUnits.Equals(input.DisplayUnits)) ) && ( Hash == input.Hash || (Hash.Equals(input.Hash)) ) && ( Index == input.Index || (Index.Equals(input.Index)) ) && ( Redacted == input.Redacted || (Redacted != null && Redacted.Equals(input.Redacted)) )); }
FrameTimeGraph NewFrameTimeGraph() { var draw2D = new Draw2D("Unlit/ProfileAnalyzerShader"); DisplayUnits displayUnits = new DisplayUnits(Units.Milliseconds); return(new FrameTimeGraph(0, draw2D, displayUnits.Units, ProfileAnalyzerWindow.UIColor.barBackground, ProfileAnalyzerWindow.UIColor.barBackgroundSelected, ProfileAnalyzerWindow.UIColor.bar, ProfileAnalyzerWindow.UIColor.barSelected, ProfileAnalyzerWindow.UIColor.marker, ProfileAnalyzerWindow.UIColor.markerSelected, ProfileAnalyzerWindow.UIColor.thread, ProfileAnalyzerWindow.UIColor.threadSelected, ProfileAnalyzerWindow.UIColor.gridLines)); }
public DisplayValue ( Expression <Func <double> > source, Unit sourceUnit, Unit[] units, double minSourceValue = double.NaN, double maxSourceValue = double.NaN ) { Bindings = new BindingManager(); Units = new DisplayUnits(this, sourceUnit, units); Bindings.BindTwoWay ( source, () => Value, sourceValue => UnitConverter.Convert(sourceValue, from: Units.Source, to: Units.Target), targetValue => UnitConverter.Convert(targetValue, from: Units.Target, to: Units.Source) ); MinSourceValue = minSourceValue; MaxSourceValue = maxSourceValue; Refresh(); }
public DisplayValue( Expression<Func<double>> source, Unit sourceUnit, Unit[] units, double minSourceValue = double.NaN, double maxSourceValue = double.NaN ) { Bindings = new BindingManager(); Units = new DisplayUnits(this, sourceUnit, units); Bindings.BindTwoWay ( source, () => Value, sourceValue => UnitConverter.Convert(sourceValue, from: Units.Source, to: Units.Target), targetValue => UnitConverter.Convert(targetValue, from: Units.Target, to: Units.Source) ); MinSourceValue = minSourceValue; MaxSourceValue = maxSourceValue; Refresh(); }
public void SetupTest() { displayUnits = new DisplayUnits(Units.Microseconds); }