void ReleaseDesignerOutlets()
        {
            if (PropertyName != null)
            {
                PropertyName.Dispose();
                PropertyName = null;
            }

            if (PropertyType != null)
            {
                PropertyType.Dispose();
                PropertyType = null;
            }

            if (PropertyUsage != null)
            {
                PropertyUsage.Dispose();
                PropertyUsage = null;
            }

            if (ValueFromScriptCheckbox != null)
            {
                ValueFromScriptCheckbox.Dispose();
                ValueFromScriptCheckbox = null;
            }
        }
Ejemplo n.º 2
0
 /// <summary>
 /// Initializes a new instance of the <see cref="SimpleStatisticResult"/> class and populates
 ///   the internal list with results from the analysis modules.
 /// </summary>
 /// <param name="elements">
 /// The elements.
 /// </param>
 public SimpleStatisticResult(List <StdElement> elements)
 {
     this.NumberOfElements = elements.Count;
     this.AddItem(PropertyUsage.GetAnalysisItemResult(elements));
     this.AddItem(StdCalendarItems.GetAnalysisItemResult(elements.ToStdCalendarItems()));
     this.AddItem(StdContacts.GetAnalysisItemResult(elements.ToStdContacts()));
 }
        /// <summary>
        /// Updates the inspector.
        /// </summary>
        public void UpdateInspector()
        {
            // Update fields with the current shape information
            PropertyName.StringValue         = SelectedProperty.Name;
            ValueFromScriptCheckbox.IntValue = (SelectedProperty.GetsValueFromScript) ? 1 : 0;
            ValueFromScriptCheckbox.Enabled  = !SelectedProperty.IsObiScriptValue;

            // Show Usage
            switch (SelectedProperty.Usage)
            {
            case KimonoPropertyUsage.LocalVariable:
                PropertyUsage.SelectItem(0);
                break;

            case KimonoPropertyUsage.GlobalVariable:
                PropertyUsage.SelectItem(1);
                break;

            case KimonoPropertyUsage.Parameter:
                PropertyUsage.SelectItem(2);
                break;
            }
            PropertyUsage.Enabled = !SelectedProperty.GetsValueFromScript;

            // Show property type
            if (SelectedProperty is KimonoPropertyBoolean)
            {
                PropertyType.StringValue = "Boolean Property";
            }
            else if (SelectedProperty is KimonoPropertyColor)
            {
                PropertyType.StringValue = "Color Property";
            }
            else if (SelectedProperty is KimonoPropertyGradient)
            {
                PropertyType.StringValue = "Gradient Property";
            }
            else if (SelectedProperty is KimonoPropertyNumber)
            {
                PropertyType.StringValue = "Number Property";
            }
            else if (SelectedProperty is KimonoPropertyRect)
            {
                PropertyType.StringValue = "Rect Property";
            }
            else if (SelectedProperty is KimonoPropertyStyle)
            {
                PropertyType.StringValue = "Style Property";
            }
            else if (SelectedProperty is KimonoPropertyText)
            {
                PropertyType.StringValue = "Text Property";
            }
            else if (SelectedProperty is KimonoPropertyLibrary)
            {
                PropertyType.StringValue = "Script Library";
            }
        }
Ejemplo n.º 4
0
        /// <summary>
        /// <para>Performs the search method:
        /// Search Commercial Property.
        /// Creates a query string using the parameters provided - parameters can be null if they are not required for the request.
        /// </para>
        /// DOES NOT REQUIRE AUTHENTICATION.
        /// </summary>
        /// <param name="searchString">One or more keywords to use in a search query.</param>
        /// <param name="sortOrder">Sort the returned record-set by a single specified sort order.</param>
        /// <param name="page">	Page number.</param>
        /// <param name="rows">Number of rows per page.</param>
        /// <param name="region">Specifies the search region ID.</param>
        /// <param name="district">Specifies the search district ID.</param>
        /// <param name="suburb">Specifies the search suburb ID.</param>
        /// <param name="dateFrom">Specifies minimum start date for returned listings.</param>
        /// <param name="priceMin">Minimum property price.</param>
        /// <param name="priceMax">Maximum property price.</param>
        /// <param name="bathroomsMin">Minimum number of bathrooms.</param>
        /// <param name="bathroomsMax">Maximum number of bathrooms.</param>
        /// <param name="bedroomsMin">Minimum number of bedrooms.</param>
        /// <param name="bedroomsMax">Maximum number of bedrooms.</param>
        /// <param name="areaMax">	Maximum floor area in square meters.</param>
        /// <param name="areaMin">Minimum floor area in square meters.</param>
        /// <param name="landAreaMin">Minimum land area in square meters.</param>
        /// <param name="landAreaMax">Maximum land area in square meters.</param>
        /// <param name="adjacentSuburbs">Indicates whether the search should include listings in adjacent suburbs.</param>
        /// <param name="usage">The usage of the property.</param>
        /// <returns>Properties.</returns>
        public global::Properties SearchCommercialSaleProperties(
            string searchString,
            PropertySortOrder sortOrder,
            int? page,
            int? rows,
            int? region,
            int? district,
            int? suburb,
            DateTime dateFrom,
            int? priceMin,
            int? priceMax,
            int? bathroomsMin,
            int? bathroomsMax,
            int? bedroomsMin,
            int? bedroomsMax,
            int? areaMax,
            int? areaMin,
            int? landAreaMin,
            int? landAreaMax,
            bool? adjacentSuburbs,
            PropertyUsage usage)
        {
            if (_search == null)
            {
                _search = new SearchMethods(_connection);
            }

            return _search.SearchCommercialSaleProperties(searchString, sortOrder, page, rows, region, district, suburb, dateFrom, priceMin, priceMax, bathroomsMin, bathroomsMax, bedroomsMin, bedroomsMax, areaMax, areaMin, landAreaMin, landAreaMax, adjacentSuburbs, usage);
        }
Ejemplo n.º 5
0
        /// <summary>
        /// <para>Performs the search method:
        /// Search Commercial Lease Property.
        /// Creates a query string using the parameters provided - parameters can be null if they are not required for the request.
        /// </para>
        /// DOES NOT REQUIRE AUTHENTICATION.
        /// </summary>
        /// <param name="searchString">One or more keywords to use in a search query.</param>
        /// <param name="sortOrder">Sort the returned record-set by a single specified sort order.</param>
        /// <param name="page">	Page number.</param>
        /// <param name="rows">Number of rows per page.</param>
        /// <param name="region">Specifies the search region ID.</param>
        /// <param name="district">Specifies the search district ID.</param>
        /// <param name="suburb">Specifies the search suburb ID.</param>
        /// <param name="dateFrom">Specifies minimum start date for returned listings.</param>
        /// <param name="priceMin">Minimum property price.</param>
        /// <param name="priceMax">Maximum property price.</param>
        /// <param name="areaMax">	Maximum floor area in square meters.</param>
        /// <param name="areaMin">Minimum floor area in square meters.</param>
        /// <param name="landAreaMin">Minimum land area in square meters.</param>
        /// <param name="landAreaMax">Maximum land area in square meters.</param>
        /// <param name="adjacentSuburbs">Indicates whether the search should include listings in adjacent suburbs.</param>
        /// <param name="usage">The usage of the property.</param>
        /// <returns>Properties.</returns>
        public global::Properties SearchCommercialLeaseProperties(
            string searchString,
            PropertySortOrder sortOrder,
            int? page,
            int? rows,
            int? region,
            int? district,
            int? suburb,
            DateTime dateFrom,
            int? priceMin,
            int? priceMax,
            int? areaMax,
            int? areaMin,
            int? landAreaMin,
            int? landAreaMax,
            bool? adjacentSuburbs,
            PropertyUsage usage)
        {
            var url = String.Format(Constants.Culture, "{0}{1}/{2}/CommercialLease{3}", _connection.BaseUrl, Constants.SEARCH, Constants.PROPERTY, Constants.XML);
            _addAnd = false;
            var conditions = "?";

            // create the parameters for the query string
            conditions += this.RuralPropertiesHelper(
                searchString,
                sortOrder.ToString(),
                page,
                rows,
                region,
                district,
                suburb,
                dateFrom,
                priceMin,
                priceMax,
                areaMax,
                areaMin,
                landAreaMin,
                landAreaMax,
                adjacentSuburbs,
                usage.ToString());

            // add the parametrs to the query string if there are any
            if (conditions.Equals("?"))
            {
                url += conditions;
            }

            // perform the request
            return this.PropertyConnectionHelper(url);
        }