public override sealed void ReadCurrent() { try { CameraCapturePropertyRange range = PhotoCaptureDevice.GetSupportedPropertyRange(Device.SensorLocation, ParameterId); if (range == null) { IsSupported = false; } else { Minimum = (T)range.Min; Maximum = (T)range.Max; _value = (T)Device.GetProperty(ParameterId); IsSupported = true; } } catch (Exception) { IsSupported = false; } IsModifiable = IsSupported && !Minimum.Equals(Maximum); }
/// <summary> /// Determines whether the specified <see cref="ChannelStatistics"/> is equal to the current <see cref="ChannelStatistics"/>. /// </summary> /// <param name="other">The channel statistics to compare this <see cref="ChannelStatistics"/> with.</param> /// <returns>True when the specified <see cref="ChannelStatistics"/> is equal to the current <see cref="ChannelStatistics"/>.</returns> public bool Equals(ChannelStatistics other) { if (ReferenceEquals(other, null)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (Depth.Equals(other.Depth) && Entropy.Equals(other.Entropy) && Kurtosis.Equals(other.Kurtosis) && Maximum.Equals(other.Maximum) && Mean.Equals(other.Mean) && Minimum.Equals(other.Minimum) && Skewness.Equals(other.Skewness) && StandardDeviation.Equals(other.StandardDeviation) && Sum.Equals(other.Sum) && SumCubed.Equals(other.SumCubed) && SumFourthPower.Equals(other.SumFourthPower) && SumSquared.Equals(other.SumSquared) && Variance.Equals(other.Variance)); }
public bool Equals(DestinyInventoryItemStatDefinition input) { if (input == null) { return(false); } return (( StatHash == input.StatHash || (StatHash.Equals(input.StatHash)) ) && ( Value == input.Value || (Value.Equals(input.Value)) ) && ( Minimum == input.Minimum || (Minimum.Equals(input.Minimum)) ) && ( Maximum == input.Maximum || (Maximum.Equals(input.Maximum)) ) && ( DisplayMaximum == input.DisplayMaximum || (DisplayMaximum.Equals(input.DisplayMaximum)) )); }
/// <summary> /// Indicates whether this instance and a specified envelope are equal. /// </summary> /// <param name="another">The envelope to compare with this instance.</param> /// <returns><c>true</c> if <paramref name="another" /> and this instance represent the same value; otherwise, <c>false</c>.</returns> public Boolean Equals(Envelope another) { if (ReferenceEquals(null, another)) { return(false); } if (ReferenceEquals(this, another)) { return(true); } return(Minimum.Equals(another.Minimum) && Maximum.Equals(another.Maximum)); }
public override bool Equals(object other) { if (other == null) { return(false); } if (!(other is Interval)) { return(false); } return(Minimum.Equals(((Interval)other).Minimum) && Maximum.Equals(((Interval)other).Maximum)); }
/// <summary>Value, Minimum, Maximum, SmallChange, LargeChange and TickFrequency are compared.</summary> public override bool Equals(object obj) { if (obj == null || (this.GetType() != obj.GetType())) { return(false); } try { var objAsT = (RangedRangeType <T>)obj; if (From.Equals(objAsT.From)) { return(false); } if (To.Equals(objAsT.To)) { return(false); } if (Minimum.Equals(objAsT.Minimum)) { return(false); } if (Maximum.Equals(objAsT.Maximum)) { return(false); } if (SmallChange.Equals(objAsT.SmallChange)) { return(false); } if (LargeChange.Equals(objAsT.LargeChange)) { return(false); } if (TickFrequency.Equals(objAsT.TickFrequency)) { return(false); } return(true); } catch (Exception ex) { if (CanRaiseDebbugerBreak) { Debugger.Break(); Console.WriteLine(ex.Message); } return(false); } }
/// <summary> /// Returns true if AccountPriorityService instances are equal /// </summary> /// <param name="other">Instance of AccountPriorityService to be compared</param> /// <returns>Boolean</returns> public bool Equals(AccountPriorityService other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Code == other.Code || Code != null && Code.Equals(other.Code) ) && ( ChargingTriggerInfo == other.ChargingTriggerInfo || ChargingTriggerInfo != null && ChargingTriggerInfo.Equals(other.ChargingTriggerInfo) ) && ( Prices == other.Prices || Prices != null && Prices.SequenceEqual(other.Prices) ) && ( Minimum == other.Minimum || Minimum != null && Minimum.Equals(other.Minimum) ) && ( Maximum == other.Maximum || Maximum != null && Maximum.Equals(other.Maximum) )); }
/// <summary> /// Returns true if StateDescription instances are equal /// </summary> /// <param name="input">Instance of StateDescription to be compared</param> /// <returns>Boolean</returns> public bool Equals(StateDescription input) { if (input == null) { return(false); } return (( Minimum == input.Minimum || (Minimum != null && Minimum.Equals(input.Minimum)) ) && ( Maximum == input.Maximum || (Maximum != null && Maximum.Equals(input.Maximum)) ) && ( Step == input.Step || (Step != null && Step.Equals(input.Step)) ) && ( Pattern == input.Pattern || (Pattern != null && Pattern.Equals(input.Pattern)) ) && ( ReadOnly == input.ReadOnly || (ReadOnly != null && ReadOnly.Equals(input.ReadOnly)) ) && ( Options == input.Options || Options != null && Options.SequenceEqual(input.Options) )); }
/// <summary> /// Returns true if ServiceBundle instances are equal /// </summary> /// <param name="other">Instance of ServiceBundle to be compared</param> /// <returns>Boolean</returns> public bool Equals(ServiceBundle other) { if (ReferenceEquals(null, other)) { return(false); } if (ReferenceEquals(this, other)) { return(true); } return (( Name == other.Name || Name != null && Name.Equals(other.Name) ) && ( Services == other.Services || Services != null && Services.SequenceEqual(other.Services) ) && ( Prices == other.Prices || Prices != null && Prices.SequenceEqual(other.Prices) ) && ( Minimum == other.Minimum || Minimum != null && Minimum.Equals(other.Minimum) ) && ( Maximum == other.Maximum || Maximum != null && Maximum.Equals(other.Maximum) )); }
/// <inheritdoc /> public bool Equals(Range <T> other) { return(Minimum.Equals(other.Minimum) && Maximum.Equals(other.Maximum)); }
/// <devdoc> /// <para>Indicates whether the <see cref='System.Windows.Forms.NumericUpDown.Minimum'/> property should be persisted.</para> /// </devdoc> private bool ShouldSerializeMinimum() { return(!Minimum.Equals(NumericUpDown.DefaultMinimum)); }
public bool Equals(NodeValue other) => Minimum.Equals(other.Minimum) && Maximum.Equals(other.Maximum);
/// <summary> /// Returns true if ChartAxisConfigBean instances are equal /// </summary> /// <param name="input">Instance of ChartAxisConfigBean to be compared</param> /// <returns>Boolean</returns> public bool Equals(ChartAxisConfigBean input) { if (input == null) { return(false); } return (( Axis == input.Axis || (Axis != null && Axis.Equals(input.Axis)) ) && ( Label == input.Label || (Label != null && Label.Equals(input.Label)) ) && ( Color == input.Color || (Color != null && Color.Equals(input.Color)) ) && ( Format == input.Format || (Format != null && Format.Equals(input.Format)) ) && ( Minimum == input.Minimum || (Minimum != null && Minimum.Equals(input.Minimum)) ) && ( Maximum == input.Maximum || (Maximum != null && Maximum.Equals(input.Maximum)) ) && ( Position == input.Position || (Position != null && Position.Equals(input.Position)) ) && ( MajorColor == input.MajorColor || (MajorColor != null && MajorColor.Equals(input.MajorColor)) ) && ( MajorWidth == input.MajorWidth || (MajorWidth != null && MajorWidth.Equals(input.MajorWidth)) ) && ( MajorStyle == input.MajorStyle || (MajorStyle != null && MajorStyle.Equals(input.MajorStyle)) ) && ( MinorColor == input.MinorColor || (MinorColor != null && MinorColor.Equals(input.MinorColor)) ) && ( MinorWidth == input.MinorWidth || (MinorWidth != null && MinorWidth.Equals(input.MinorWidth)) ) && ( MinorStyle == input.MinorStyle || (MinorStyle != null && MinorStyle.Equals(input.MinorStyle)) )); }
public bool Equals(ISSNAreaCodeData other) { return(StateAbbreviation.Equals(other.StateAbbreviation, StringComparison.CurrentCultureIgnoreCase) && Minimum.Equals(other.Minimum) && Maximum.Equals(other.Maximum)); }
public bool Equals(SimParameterSharedState other) => Name == other.Name && Value.Equals(other.Value) && Minimum.Equals(other.Minimum) && Maximum.Equals(other.Maximum) && Distribution == other.Distribution;
public override bool Equals(object obj) { var o = obj as SlidableAttribute; return(o == null ? false : Minimum.Equals(o.Minimum) && Maximum.Equals(o.Maximum)); }
public bool Equals(DiscreteRange <T> other) { return(Minimum.Equals(other.Minimum) && Maximum.Equals(other.Maximum) && Increment.Equals(other.Increment)); }
/// Indicates whether the Maximum property should be persisted. private bool ShouldSerializeMinimum() { return(!Minimum.Equals(DataGridViewNumericUpDownCell.DATAGRIDVIEWNUMERICUPDOWNCELL_defaultMinimum)); }