public VariableDialog(EnvironmentVariable variable) : base() { this.InitializeComponent(); this.Icon = Properties.Resources.MainIcon; if (variable == null) { throw new ArgumentNullException(nameof(variable)); } this.Variable = (EnvironmentVariable)variable.Clone(); }