예제 #1
0
        /// <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("разрыв соединения.");
            }
        }
예제 #2
0
 /// <summary>
 /// Change the entry in the DB to use this data.
 /// </summary>
 private void ButtonUpdate_Click(object sender, EventArgs e)
 {
     EventUpdate?.Invoke();
 }
예제 #3
0
 public void thucThiEventUpdate(Software ungdung, MyEventArgs e)
 {
     EventUpdate?.Invoke(ungdung, e);
 }
예제 #4
0
 public static void GuiElement(string s)
 {
     EventUpdate?.Invoke(s);
 }
예제 #5
0
 public void Update()
 {
     deltaTime = _time.deltaTime;
     _time.Restart();
     EventUpdate?.Invoke();
 }