/// <summary> /// Чтение входящих данных /// </summary> private void GetDataEngine(object obj, EventArgs e) { if (IsConnected == false) { return; } try { string data = GetData(_read); if (data == null) { return; } else { // Запускаем событие EventUpdate?.Invoke(this, new EventNetworkUpdate(data)); } } catch (IOException) { Disconnect("разрыв соединения."); } }
/// <summary> /// Change the entry in the DB to use this data. /// </summary> private void ButtonUpdate_Click(object sender, EventArgs e) { EventUpdate?.Invoke(); }
public void thucThiEventUpdate(Software ungdung, MyEventArgs e) { EventUpdate?.Invoke(ungdung, e); }
public static void GuiElement(string s) { EventUpdate?.Invoke(s); }
public void Update() { deltaTime = _time.deltaTime; _time.Restart(); EventUpdate?.Invoke(); }