Esempio n. 1
0
        public void Ready(double width, double height)
        {
            _dim.Resize(width, height);
            var clientUpdate = new ClientUpdate()
            {
                Drawing   = GetDrawing(),
                Settings  = GetSettings(),
                Transform = GetDisplayTransform(),
            };

            PushUpdate(clientUpdate);
            if (!_readyEventFired)
            {
                _readyEventFired = true;
                IsReady?.Invoke(this, new EventArgs());
            }
        }
Esempio n. 2
0
 /// <summary>
 /// Raise the 'IsReady' event.
 /// </summary>
 protected void RaiseIsReady()
 {
     IsReady?.Invoke(this, EventArgs.Empty);
 }
Esempio n. 3
0
 public void DisplayInfo(Customer person)
 {
     IsReady?.Invoke($"{person.Id} может забрать заказ.");
 }