public void UnRegisterDataListener(newDataEvent function) { if (newDataEvent != null) { newDataEvent -= function; } }
public void RegisterDataListener(newDataEvent function) { if (newDataEvent == null) { newDataEvent = function; } else { newDataEvent += function; } }