comparison ServerMonitor/Objects/Server.cs @ 8:052aa62cb42a

Single instance. Add autorun option. Add icons. General enhancements.
author Brad Greco <brad@bgreco.net>
date Sat, 09 Mar 2019 20:14:03 -0500
parents c1dffaac66fa
children 68d7834dc28e
comparison
equal deleted inserted replaced
7:8486ab7d2357 8:052aa62cb42a
106 public bool Enabled 106 public bool Enabled
107 { 107 {
108 get { return _enabled; } 108 get { return _enabled; }
109 set 109 set
110 { 110 {
111 if (LoginType == LoginType.PrivateKey && PrivateKeyFile == null && value == true) 111 if ((LoginType == LoginType.PrivateKey && PrivateKeyFile == null && value == true) || value == _enabled)
112 return; 112 return;
113 _enabled = value; 113 _enabled = value;
114 EnabledChanged?.Invoke(this, new EventArgs()); 114 EnabledChanged?.Invoke(this, new EventArgs());
115 } 115 }
116 } 116 }