/// <summary> /// Edits the environment variable. /// </summary> /// <param name="varName">Name of the variable.</param> /// <param name="varType">Type of the variable.</param> private void EditEnvVar( string varName, EnvironmentVariableTarget varType) { this.frmEditVariable = new FrmEditEnvVar(varName, varType); this.frmEditVariable.ShowDialog(); this.frmEditVariable.Dispose(); }