private void RemoteToolsControl_HostOnlineStatus(object sender, bool e) { // If OnlineStatusChanged handle is not null, Invoke it. OnlineStatusChanged?.Invoke(this, e); }
private void OnOnlineStatusChanged(bool state) { _pbsUnit.States.Online = state; OnlineStatusChanged?.Invoke(state); }