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()); } }
/// <summary> /// Raise the 'IsReady' event. /// </summary> protected void RaiseIsReady() { IsReady?.Invoke(this, EventArgs.Empty); }
public void DisplayInfo(Customer person) { IsReady?.Invoke($"{person.Id} может забрать заказ."); }