/// <summary> /// Shows the time widget. /// </summary> private void TClock() { if (InvokeRequired) { var o = new DelegateThis(TClock); Invoke(o); } else { _qwClock = new QWClock(); _qwClock.Location = new Point(Width - _qwClock.Width, 10); Controls.Add(_qwClock); } }
/// <summary> /// Loads the clock. /// </summary> private void LoadClock() { if (InvokeRequired) { var o = new DelegateThis(LoadClock); Invoke(o); } else { _clockWidget = new QWClock {Location = new Point(0, 10)}; pnlRight.Controls.Add(_clockWidget); } }
/// <summary> /// Ts the clock. /// </summary> private void TClock() { if (InvokeRequired) { var o = new DelegateThis(TClock); Invoke(o); } else { _clockWidget = new QWClock(); pnlRight.Controls.Add(_clockWidget); _clockWidget.Dock = DockStyle.Top; } }