private static void HandleChanged(EnvironmentVariable variable)
        {
            if (variable.IsChanged)
            {
                if (variable.IsRenamed)
                {
                    // Try discarding original environment variable.
                    Environment.SetEnvironmentVariable(variable.Start, String.Empty, variable.Scope);
                    variable.FreeSettings(Program.Settings);
                }

                // Try creating this new environment variable.
                Environment.SetEnvironmentVariable(variable.Label, variable.Value, variable.Scope);
                variable.SaveSettings(Program.Settings);
            }
        }
        private static void HandleDeleted(EnvironmentVariable variable)
        {
            if (variable.IsDeleted)
            {
                if (variable.IsRenamed)
                {
                    // Try discarding original environment variable.
                    Environment.SetEnvironmentVariable(variable.Start, String.Empty, variable.Scope);
                }
                else
                {
                    // Try discarding current environment variable.
                    Environment.SetEnvironmentVariable(variable.Label, String.Empty, variable.Scope);
                }

                variable.FreeSettings(Program.Settings);
            }
        }