public Clock() { CurrentBackgroundColor = DefaultBackgroundColor; Message = new StartClockMessage { ClockId = Guid.NewGuid().ToString(), AlmostDone = DefaultAlmostDone, PayAttention = DefaultPayAttention, CountDown = DefaultCountDown, AlmostDoneColor = DefaultAlmostDoneColor, PayAttentionColor = DefaultPayAttentionColor, RunningColor = DefaultRunningColor, Label = "New clock" }; ResetDisplay(); }
public void Update( StartClockMessage model, bool copyIdToo) { Message.AlmostDone = model.AlmostDone; Message.AlmostDoneColor = model.AlmostDoneColor; Message.CountDown = model.CountDown; Message.Nudge = model.Nudge; Message.Label = model.Label; Message.PayAttention = model.PayAttention; Message.PayAttentionColor = model.PayAttentionColor; Message.Position = model.Position; Message.RunningColor = model.RunningColor; Message.ServerTime = model.ServerTime; Message.Position = model.Position; if (copyIdToo) { Message.ClockId = model.ClockId; ResetDisplay(); } }
public Clock(StartClockMessage message) : base() { Message = message; }