Beispiel #1
0
        public override int GetHashCode()
        {
            unchecked
            {
                var hashCode = ExchangeId != null?ExchangeId.GetHashCode() : 0;

                hashCode = (hashCode * 397) ^ (TradeType != null ? TradeType.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (BaseAsset != null ? BaseAsset.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ (QuoteAsset != null ? QuoteAsset.GetHashCode() : 0);
                hashCode = (hashCode * 397) ^ TimePeriodStart.GetHashCode();
                hashCode = (hashCode * 397) ^ TimePeriodEnd.GetHashCode();
                hashCode = (hashCode * 397) ^ TimeOpen.GetHashCode();
                hashCode = (hashCode * 397) ^ TimeClose.GetHashCode();
                hashCode = (hashCode * 397) ^ PriceOpen.GetHashCode();
                hashCode = (hashCode * 397) ^ PriceClose.GetHashCode();
                hashCode = (hashCode * 397) ^ PriceLow.GetHashCode();
                hashCode = (hashCode * 397) ^ PriceHigh.GetHashCode();
                hashCode = (hashCode * 397) ^ VolumeTraded.GetHashCode();
                hashCode = (hashCode * 397) ^ TradesCount.GetHashCode();
                hashCode = (hashCode * 397) ^ (Id != null ? Id.GetHashCode() : 0);
                return(hashCode);
            }
        }
Beispiel #2
0
 public bool Equals(Ohlcv other)
 {
     if (ReferenceEquals(null, other))
     {
         return(false);
     }
     if (ReferenceEquals(this, other))
     {
         return(true);
     }
     return(string.Equals(ExchangeId, other.ExchangeId) && string.Equals(TradeType, other.TradeType) &&
            string.Equals(BaseAsset, other.BaseAsset) && string.Equals(QuoteAsset, other.QuoteAsset) &&
            TimePeriodStart.Equals(other.TimePeriodStart) && TimePeriodEnd.Equals(other.TimePeriodEnd) &&
            TimeOpen.Equals(other.TimeOpen) && TimeClose.Equals(other.TimeClose) && PriceOpen.Equals(other.PriceOpen) &&
            PriceClose.Equals(other.PriceClose) && PriceLow.Equals(other.PriceLow) && PriceHigh.Equals(other.PriceHigh) &&
            VolumeTraded.Equals(other.VolumeTraded) && TradesCount.Equals(other.TradesCount) && string.Equals(Id, other.Id));
 }
        /// <summary>
        /// handles the loading of the module setting for this
        /// control
        /// </summary>
        public override void LoadSettings()
        {
            try
            {
                if (!IsPostBack)
                {
                    GetCondoComplex();
                    GetTowns();
                    BindModules();
                    BindFavoriteModules();

                    //   FlexMLS_ListSettings settingsData = new FlexMLS_ListSettings(this.TabModuleId);


                    if (FavoritesModuleID != null)
                    {
                        drpModuleID.SelectedValue = FavoritesModuleID.ToString();
                    }

                    if (ShowCriteria != null)
                    {
                        if (ShowCriteria.Length > 0)
                        {
                            cbxShowCriteria.Checked = Convert.ToBoolean(ShowCriteria.ToString());
                        }
                    }

                    if (ListingOfficeMLSID != null)
                    {
                        ddlOfficeID.SelectedValue = ListingOfficeMLSID.ToString();
                    }

                    if (PropertyType != null)
                    {
                        ddlPropertyType.SelectedValue = PropertyType.ToString();
                    }

                    if (Town != null)
                    {
                        ddl_Town.SelectedValue = Town.ToString();
                    }
                    if (Village != null)
                    {
                        ddl_Village.SelectedValue = Village.ToString();
                    }
                    if (Bedrooms != null)
                    {
                        ddlBedRooms.SelectedValue = Bedrooms.ToString();
                    }
                    if (Bathrooms != null)
                    {
                        ddlBathRooms.SelectedValue = Bathrooms.ToString();
                    }
                    if (PriceLow != null)
                    {
                        ddlPriceLow.SelectedValue = PriceLow.ToString();
                    }
                    if (PriceHigh != null)
                    {
                        ddlPriceHigh.SelectedValue = PriceHigh.ToString();
                    }
                    if (WaterFront != null)
                    {
                        if (WaterFront.Length > 0)
                        {
                            cbxWaterFront.Checked = Convert.ToBoolean(WaterFront.ToString());
                        }
                    }
                    if (Waterview != null)
                    {
                        if (Waterview.Length > 0)
                        {
                            cbxWaterView.Checked = Convert.ToBoolean(Waterview.ToString());
                        }
                    }
                    if (Complex != null)
                    {
                        ddlComplex.SelectedValue = Complex.ToString();
                    }
                    if (DOM != null)
                    {
                        ddlDOM.SelectedValue = DOM.ToString();
                    }
                    if (FlexMLSPage != null)
                    {
                        ddlViewListing.SelectedValue = FlexMLSPage.ToString();
                    }

                    if (MaxThumbSize != null)
                    {
                        txtThumbSize.Text = MaxThumbSize.ToString();
                    }

                    if (ShowPaging != null)
                    {
                        if (ShowPaging.Length > 0)
                        {
                            cbxShowPaging.Checked = Convert.ToBoolean(ShowPaging);
                        }
                    }

                    if (NumberOfRecords != null)
                    {
                        txtNumberOfRecords.Text = NumberOfRecords.ToString();
                    }

                    if (MlsNumbers != null)
                    {
                        txtListingNumbers.Text = MlsNumbers.ToString();
                    }

                    if (YearBuilt != null)
                    {
                        txtYearBuilt.Text = YearBuilt.ToString();
                    }
                }
            }
            catch (Exception ex)
            {
                Exceptions.ProcessModuleLoadException(this, ex);
            }
        }