Пример #1
0
 // Use this for initialization
 void Start()
 {
     // we get the current location object from the behaviour that was used for the location creator, as it already holds a reference to the current location
     currentLocation = GetComponent <ArticyLocation>().location.GetObject <LocationSettings>();
     // here we make sure that the correct background image is selected
     EnsureCurrentBackgroundImage();
 }
Пример #2
0
        private void BuildSettings()
        {
            precisionStep         = 8;
            spatialConfigurations = new SpatialConfigurations();
            spatialConfigurations.LocationSettings = new List <LocationSettings>();
            XmlNodeList configs = Factory.GetConfigNodes("contentSearchSpatial/IncludeTemplates/Template");

            if (configs == null)
            {
                Log.Warn("sitecore/contentSearchSpatial/IncludeTemplates/Template node was not defined; Please include the Sitecore.ContentSearch.Spatial.config file in include folder.", this);
                return;
            }
            foreach (XmlNode node in configs)
            {
                string templateId     = XmlUtil.GetAttribute("id", node);
                string latitudeField  = XmlUtil.GetAttribute("LatitudeField", node);
                string longitudeField = XmlUtil.GetAttribute("LongitudeField", node);

                LocationSettings locationSetting = new LocationSettings();
                locationSetting.LatitudeField  = latitudeField;
                locationSetting.LongitudeField = longitudeField;

                if (ID.IsID(templateId))
                {
                    locationSetting.TemplateId = ID.Parse(templateId);
                }
                spatialConfigurations.LocationSettings.Add(locationSetting);
            }
        }
Пример #3
0
 public LocationSettings()
 {
     if (instance == null)
     {
         instance = this;
     }
 }
        public LocationGeneratorTests()
        {
            var data = new List <Data>
            {
                new Data()
                {
                    GpsLat = 66.84595M, GpsLng = 23.9712M, WaterDepth = 2
                },
                new Data()
                {
                    GpsLat = 66.84595M, GpsLng = 23.9711M, WaterDepth = 2
                },
                //new Data() { GpsLat = 66.84595M, GpsLng = 23.9710M, WaterDepth = 1.5}, MissingLocation
                new Data()
                {
                    GpsLat = 66.84595M, GpsLng = 23.9709M, WaterDepth = 2
                },
                new Data()
                {
                    GpsLat = 66.84595M, GpsLng = 23.9708M, WaterDepth = 2
                },
                new Data()
                {
                    GpsLat = 66.84600M, GpsLng = 23.9710M, WaterDepth = 2
                },
                new Data()
                {
                    GpsLat = 66.84590M, GpsLng = 23.9710M, WaterDepth = 1
                },
                new Data()
                {
                    GpsLat = 66.84600M, GpsLng = 23.9711M, WaterDepth = 1
                },
                new Data()
                {
                    GpsLat = 66.84590M, GpsLng = 23.9711M, WaterDepth = 1
                },
                new Data()
                {
                    GpsLat = 66.84600M, GpsLng = 23.9712M, WaterDepth = 1
                },
                new Data()
                {
                    GpsLat = 66.84590M, GpsLng = 23.9712M, WaterDepth = 1
                },
            };

            var settings = new LocationSettings
            {
                Shoreline1 = new List <Shoreline>(),
                Shoreline2 = new List <Shoreline>()
            };

            _data = new ProcessingContext
            {
                Rows             = data,
                LocationSettings = settings
            };
        }
 public void Construct(ObstaclesController obstaclesController, LocationSettings locationSettings, FinalPopup finalPopup,
                       StartText startText, ICreationManager creationManager)
 {
     _obstaclesController = obstaclesController;
     _finalPopup          = finalPopup;
     _startText           = startText;
     _creationManager     = creationManager;
     _jumpForce           = locationSettings.JumpForce;
     _firstTap            = true;
 }
Пример #6
0
        private void btnLocation_Click(object sender, EventArgs e)
        {
            LocationSettings locationSettings = new LocationSettings();

            if (locationSettings.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            Engine.LocationList.Add((ILocation)locationSettings.SelectedLocation);
            this.ddlLocations.SelectedIndex = this.ddlLocations.Items.Add((object)locationSettings.SelectedLocation);
        }
Пример #7
0
        public static LocationSettings CreateInMemoryLocationSettings()
        {
            var locationSettings = new LocationSettings
            {
                DefaultWaterLevel = 78,
                MeasurementPoint  = new List <MeasurementPoint>()
                {
                    new MeasurementPoint {
                        UnixTime = 1533569333, WaterLevel = 77.8
                    }
                },
                Shoreline1 = new List <Shoreline>()
                {
                    new Shoreline()
                    {
                        GpsLat = 66.320642M, GpsLng = 23.650434M
                    },
                    new Shoreline()
                    {
                        GpsLat = 66.315315M, GpsLng = 23.647945M
                    },
                    new Shoreline()
                    {
                        GpsLat = 66.310871M, GpsLng = 23.647559M
                    },
                    new Shoreline()
                    {
                        GpsLat = 66.307386M, GpsLng = 23.646051M
                    }
                },
                Shoreline2 = new List <Shoreline>()
                {
                    new Shoreline()
                    {
                        GpsLat = 66.320395M, GpsLng = 23.661847M
                    },
                    new Shoreline()
                    {
                        GpsLat = 66.312765M, GpsLng = 23.661418M
                    },
                    new Shoreline()
                    {
                        GpsLat = 66.308213M, GpsLng = 23.660156M
                    },
                    new Shoreline()
                    {
                        GpsLat = 66.320642M, GpsLng = 23.650434M
                    }
                },
            };

            return(locationSettings);
        }
Пример #8
0
    void Update()
    {
        if (dt.playMode || IsTimeOrLocationUpdated())
        {
            if (skyModel != null)
            {
                skyModel.Update((double)dt.JulianDay(), ToLocationData(location));
            }
        }

        lastLocation = location;
        lastJD       = dt.JulianDay();

        UpdateSettings();
    }
        public ProcessingContext GetData()
        {
            List<Data> data = new List<Data>
            {
                new Data {UnixTime =  1509090005, GpsLat = 68.190879M, GpsLng = 23.148565M, WaterDepth = 4.1, HeatMap = 1},
                new Data {UnixTime =  1509090006, GpsLat = 68.190877M, GpsLng = 23.148565M, WaterDepth = 4.5, HeatMap = 1},
                new Data {UnixTime =  1509090007, GpsLat = 68.190958M, GpsLng = 23.148565M, WaterDepth = 4.8, HeatMap = 0},
                new Data {UnixTime =  1509090008, GpsLat = 68.190801M, GpsLng = 23.148524M, WaterDepth = 8.0, HeatMap = 0},
                new Data {UnixTime =  1509090009, GpsLat = 68.190878M, GpsLng = 23.148510M, WaterDepth = 8.0, HeatMap = 0},
                new Data {UnixTime =  1509090010, GpsLat = 68.190868M, GpsLng = 23.148606M, WaterDepth = 8.0, HeatMap = 0},
                new Data {UnixTime =  1509090011, GpsLat = 68.190834M, GpsLng = 23.148560M, WaterDepth = 1.2, HeatMap = 0},
                new Data {UnixTime =  1509090012, GpsLat = 68.190918M, GpsLng = 23.148545M, WaterDepth = 3.2, HeatMap = 0},
                new Data {UnixTime =  1509090013, GpsLat = 68.190835M, GpsLng = 23.148542M, WaterDepth = 6.1, HeatMap = 0},
                new Data {UnixTime =  1509090014, GpsLat = 68.190838M, GpsLng = 23.148598M, WaterDepth = 2.5, HeatMap = 0},
                new Data {UnixTime =  1509090015, GpsLat = 68.190834M, GpsLng = 23.148598M, WaterDepth = 8.1, HeatMap = 0},
                new Data {UnixTime =  1509090016, GpsLat = 68.190888M, GpsLng = 23.148598M, WaterDepth = 4.7, HeatMap = 0},
                new Data {UnixTime =  1509090017, GpsLat = 68.190918M, GpsLng = 23.148508M, WaterDepth = 2.5, HeatMap = 0},
                new Data {UnixTime =  1509090018, GpsLat = 68.190888M, GpsLng = 23.148506M, WaterDepth = 7.0, HeatMap = 0},
                new Data {UnixTime =  1509090019, GpsLat = 68.190878M, GpsLng = 23.148518M, WaterDepth = 6.6, HeatMap = 0},
                new Data {UnixTime =  1509090020, GpsLat = 68.190814M, GpsLng = 23.148526M, WaterDepth = 4.5, HeatMap = 0},
                new Data {UnixTime =  1509090021, GpsLat = 68.190877M, GpsLng = 23.148536M, WaterDepth = 4.5, HeatMap = 0},
                new Data {UnixTime =  1509090022, GpsLat = 68.190856M, GpsLng = 23.148499M, WaterDepth = 2.3, HeatMap = 0},
            };

            var settings = new LocationSettings
            {
                DefaultWaterLevel = 11
            };

            var waterLevels = new List<MeasurementPoint>
            {
                new MeasurementPoint { UnixTime = 1509090005, WaterLevel = 11.6 },
                new MeasurementPoint { UnixTime = 1509090012, WaterLevel = 9.0 },
                new MeasurementPoint { UnixTime = 1509090014, WaterLevel = 12 },
                new MeasurementPoint { UnixTime = 1509090016, WaterLevel = 9.0 },
                new MeasurementPoint { UnixTime = 1509090021, WaterLevel = 9.0 }
            };
            settings.MeasurementPoint = waterLevels;

            var testData = new ProcessingContext()
            {
                Rows = data,
                LocationSettings = settings,
            };
            return testData;
        }
Пример #10
0
    void Start()
    {
        /*
         * if(instance == null){
         *      instance = this;
         * }
         * skyModel = new SkyModel((double)dt.JulianDay(), ToLocationData(location));
         */
        //stars
        ParseStarsRaw();
        ParseConstellations();

        lastJD       = dt.JulianDay();
        lastLocation = location;

        //Log();
    }
Пример #11
0
        private void btnEditLocation_Click(object sender, EventArgs e)
        {
            if (this.ddlLocations.SelectedIndex < 0 || !(this.ddlLocations.SelectedItem is ILocation))
            {
                return;
            }
            ILocation        selectedItem     = (ILocation)this.ddlLocations.SelectedItem;
            LocationSettings locationSettings = new LocationSettings();

            locationSettings.SelectedLocation = new Location(selectedItem);
            if (locationSettings.ShowDialog() != DialogResult.OK)
            {
                return;
            }
            selectedItem.Copy((ILocation)locationSettings.SelectedLocation);
            this.ResetLocationList();
        }
        public void StartListening(LocationSettings settings)
        {
            if (this.locationManager != null)
            {
                return;
            }

            this.locationManager = new CLLocationManager
                {
                    DesiredAccuracy = this.GetAccuracyFromSetting(settings.DesiredAccuracy),
                    Delegate = new LocationDelegate(this)
                };

            this.locationManager.StartMonitoringSignificantLocationChanges();
            var currentLocation = this.locationManager.Location;
            if (currentLocation != null)
            {
                this.OnLocationChanged(new List<CLLocation> {currentLocation});
            }
        }               
        public void StartListening(LocationSettings settings)
        {
            if (this.locationManager != null)
            {
                return;
            }

            this.locationManager = new CLLocationManager
            {
                DesiredAccuracy = this.GetAccuracyFromSetting(settings.DesiredAccuracy),
                Delegate        = new LocationDelegate(this)
            };

            this.locationManager.StartMonitoringSignificantLocationChanges();
            var currentLocation = this.locationManager.Location;

            if (currentLocation != null)
            {
                this.OnLocationChanged(new List <CLLocation> {
                    currentLocation
                });
            }
        }
Пример #14
0
    // Use this for initialization
    void Start()
    {
        sim      = SimController.INSTANCE;
        skyModel = sim.skyModel;


        LocationSettings location = sim.GetLocation();
        double           angle    = 90.0d - location.Latitude;

        earthAxis = new Vector3(0.0f, (float)Math.Sin(angle * M.DEG2RAD), (float)Math.Cos(angle * M.DEG2RAD));

        Quaternion q = Quaternion.Euler((float)angle, 0, 0);

        gameObject.transform.localRotation = q;


        //correction for hour angle
        //TODO



        Debug.Log(string.Format("Angle {0}", angle));
        Debug.Log(string.Format("Quaternion {0}", q));
    }
Пример #15
0
 void OnEnable()
 {
     locSettings = (LocationSettings)target;
 }
Пример #16
0
        public override void ViewDidLoad()
        {
            try
            {
                base.ViewDidLoad();

                Images.SetTitle(LangEnglish.Images, UIControlState.Normal);
                ImagesProgressText.Text = "";
                DescriptionLabel.Text   = LangEnglish.Description;
                SexLabel.Text           = LangEnglish.EditSex;
                WomenLabel.Text         = LangEnglish.Women;
                MenLabel.Text           = LangEnglish.Men;

                AccountData.SetTitle(LangEnglish.EditAccountData, UIControlState.Normal);
                ChangePassword.SetTitle(LangEnglish.EditChangePassword, UIControlState.Normal);
                LocationSettings.SetTitle(LangEnglish.EditLocationSettings, UIControlState.Normal);

                Save.SetTitle(LangEnglish.EditSave, UIControlState.Normal);
                Cancel.SetTitle(LangEnglish.Cancel, UIControlState.Normal);

                MoreOptions.SetTitle(LangEnglish.EditMoreOptions, UIControlState.Normal);

                EmailLabel.Text    = LangEnglish.Email;
                UsernameLabel.Text = LangEnglish.Username;
                CheckUsername.SetTitle(LangEnglish.CheckAvailability, UIControlState.Normal);
                NameLabel.Text = LangEnglish.Name;

                OldPasswordLabel.Text     = LangEnglish.EditOldPassword;
                NewPasswordLabel.Text     = LangEnglish.EditNewPassword;
                ConfirmPasswordLabel.Text = LangEnglish.EditConfirmPassword;

                UseLocationLabel.Text         = LangEnglish.UseLocation;
                LocationShareLabel.Text       = LangEnglish.LocationShare;
                LocationShareAllLabel.Text    = LangEnglish.LocationShareAll;
                LocationShareLikeLabel.Text   = LangEnglish.LocationShareLike;
                LocationShareMatchLabel.Text  = LangEnglish.LocationShareMatch;
                LocationShareFriendLabel.Text = LangEnglish.LocationShareFriend;
                LocationShareNoneLabel.Text   = LangEnglish.LocationShareNone;
                DistanceShareLabel.Text       = LangEnglish.DistanceShare;
                DistanceShareAllLabel.Text    = LangEnglish.DistanceShareAll;
                DistanceShareLikeLabel.Text   = LangEnglish.DistanceShareLike;
                DistanceShareMatchLabel.Text  = LangEnglish.DistanceShareMatch;
                DistanceShareFriendLabel.Text = LangEnglish.DistanceShareFriend;
                DistanceShareNoneLabel.Text   = LangEnglish.DistanceShareNone;
                ImageEditorLabel.Text         = LangEnglish.ImageEditorLabel;

                DeactivateAccount.SetTitle(LangEnglish.DeactivateAccount, UIControlState.Normal);
                DeleteAccount.SetTitle(LangEnglish.DeleteAccount, UIControlState.Normal);

                DescriptionText.Delegate = this;

                Images.Layer.MasksToBounds            = true;
                CheckUsername.Layer.MasksToBounds     = true;
                Save.Layer.MasksToBounds              = true;
                Cancel.Layer.MasksToBounds            = true;
                DeactivateAccount.Layer.MasksToBounds = true;
                DeleteAccount.Layer.MasksToBounds     = true;

                c.DrawBorder(DescriptionText);

                c.CollapseY(AccountDataSection);
                c.CollapseY(ChangePasswordSection);
                c.CollapseY(LocationSettingsSection);
                c.CollapseY(MoreOptionsSection);
                LoaderCircle.Hidden = true;

                ImageEditorFrameBorder.Layer.BorderColor = UIColor.FromName("PrimaryDark").CGColor;
                ImageEditorFrameBorder.Layer.BorderWidth = 1;

                rc = new RegisterCommonMethods(this, c, ImagesUploaded, Email, Username, Name, DescriptionText, CheckUsername, Images,
                                               ImagesProgressText, LoaderCircle, ImagesProgress, UseLocationSwitch, LocationShareAll, LocationShareLike, LocationShareMatch, LocationShareFriend, LocationShareNone,
                                               DistanceShareAll, DistanceShareLike, DistanceShareMatch, DistanceShareFriend, DistanceShareNone, ImageEditorControls, TopSeparator, RippleImageEditor, ImageEditorStatus, ImageEditorCancel, ImageEditorOK, ImageEditor, ImageEditorFrame, ImageEditorFrameBorder);

                c.AddViews(Snackbar, Snackbar.SnackText, Snackbar.SnackButton);
                ProfileEditScroll.SetContext(this);

                ImagesUploaded.SetContext(this);
                ImagesUploaded.numColumns  = 3; //it does not get passed in the layout file
                ImagesUploaded.tileSpacing = 2;

                AccountData.TouchUpInside      += AccountData_Click;
                ChangePassword.TouchUpInside   += ChangePassword_Click;
                LocationSettings.TouchUpInside += LocationSettings_Click;

                Save.TouchUpInside              += Save_Click;
                Cancel.TouchUpInside            += Cancel_Click;
                MoreOptions.TouchUpInside       += MoreOptions_Click;
                DeactivateAccount.TouchUpInside += DeactivateAccount_Click;
                DeleteAccount.TouchUpInside     += DeleteAccount_Click;

                ImageEditorCancel.TouchUpInside += rc.CancelImageEditing;
                ImageEditorOK.TouchUpInside     += rc.OKImageEditing;

                RoundBottom_Base                 = RoundBottom;
                Snackbar_Base                    = Snackbar;
                BottomConstraint_Base            = BottomConstraint;
                SnackTopConstraint_Base          = SnackTopConstraint;
                SnackBottomConstraint_Base       = SnackBottomConstraint;
                ScrollBottomConstraint_Base      = ScrollBottomConstraint;
                ScrollBottomOuterConstraint_Base = ScrollBottomOuterConstraint;
                ViewportConstraint_Base          = ViewportConstraint;
            }
            catch (Exception ex)
            {
                c.ReportErrorSilent(ex.Message + Environment.NewLine + ex.StackTrace);
            }
        }
Пример #17
0
 private LocationData ToLocationData(LocationSettings location)
 {
     return(new LocationData(location.Longitude, location.Latitude, (double)location.Altitude));
 }
Пример #18
0
        public static LocationSettings UpdateLocation(int countryId, string city, string address, string address2, decimal?privacyRadius, decimal?travelRadius, decimal?lat, decimal?lng, long userId = 0, string conStr = "")
        {
            LocationSettings locationSettings = null;

            using (SqlConnection con = new SqlConnection(conStr))
            {
                SqlCommand cmd = new SqlCommand("sp_ManageUsers", con);
                cmd.CommandType = CommandType.StoredProcedure;
                cmd.Parameters.Add(new SqlParameter()
                {
                    ParameterName = "@Mode",
                    Value         = "Location"
                });
                cmd.Parameters.Add(new SqlParameter()
                {
                    ParameterName = "@Id",
                    Value         = userId
                });
                cmd.Parameters.Add(new SqlParameter()
                {
                    ParameterName = "@CountryId",
                    Value         = countryId
                });
                cmd.Parameters.Add(new SqlParameter()
                {
                    ParameterName = "@City",
                    Value         = city
                });
                cmd.Parameters.Add(new SqlParameter()
                {
                    ParameterName = "@Address",
                    Value         = address
                });
                cmd.Parameters.Add(new SqlParameter()
                {
                    ParameterName = "@Address2",
                    Value         = address2
                });
                cmd.Parameters.Add(new SqlParameter()
                {
                    ParameterName = "@PrivacyRadius",
                    Value         = privacyRadius
                });
                cmd.Parameters.Add(new SqlParameter()
                {
                    ParameterName = "@TravelRadius",
                    Value         = travelRadius
                });
                cmd.Parameters.Add(new SqlParameter()
                {
                    ParameterName = "@Latitude",
                    Value         = lat
                });
                cmd.Parameters.Add(new SqlParameter()
                {
                    ParameterName = "@Longitude",
                    Value         = lng
                });

                con.Open();
                SqlDataReader rdr = cmd.ExecuteReader();
                if (rdr.HasRows)
                {
                    while (rdr.Read())
                    {
                        locationSettings = new LocationSettings(rdr);
                    }
                }
            }
            return(locationSettings);
        }
Пример #19
0
 public void Construct(LocationSettings locationSettings, ICreationManager creationManager)
 {
     _locationSettings = locationSettings;
     _creationManager  = creationManager;
     _position         = transform.position.x;
 }
Пример #20
0
 public LocationService()
 {
     Settings = new LocationSettings();
 }
 public OHCDateTimeProvider(IOptions <LocationSettings> settings)
 {
     this.settings = settings.Value;
 }
 public void StartListening(LocationSettings settings)
 {
     throw new NotImplementedException();
 }
 public virtual void StartListening(LocationSettings settings)
 {
     throw new NotImplementedException();
 }
Пример #24
0
 public CreationManager(Bird.Factory birdFactory, LocationSettings locationSettings, IObstaclesCreater obstaclesCreater)
 {
     _birdFactory      = birdFactory;
     _obstaclesCreater = obstaclesCreater;
     _locationSettings = locationSettings;
 }
        void ReleaseDesignerOutlets()
        {
            if (AccountData != null)
            {
                AccountData.Dispose();
                AccountData = null;
            }

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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