private void ActivateFingerprinting()
        {
            try
            {
                /* Send the mode changing request to the server */
                Environment env    = (Environment)cbEnvironments.SelectedItem;
                Beacon      beacon = (Beacon)cbBeacons.SelectedItem;
                IndoorPositioningClient.SetModeAsFingerprinting(beacon.BeaconId, env.EnvironmentId,
                                                                environmentShape.SelectedXaxis, environmentShape.SelectedYaxis);

                /* Change the color of the fingerprinting ellipse */
                FingerprintingBrush = new SolidColorBrush(Colors.Green);
            }
            catch (Exception ex) { MessageBox.Show(ex.Message); }
        }
        /* sends the add-environment request to the server */
        public static void AddEnvironment(Environment environment)
        {
            string json = JsonConvert.SerializeObject(environment);

            Post(ADD_ENVIRONMENT_COMMAND + json);
        }
        /* sends the delete-environment request to the server */
        public static void DeleteEnvironment(Environment environment)
        {
            string json = JsonConvert.SerializeObject(environment);

            Post(DELETE_ENVIRONMENT_COMMAND + json);
        }