Beispiel #1
0
		void HubRefresh(DrawContract contract)
		{
			this.draw = contract;
			if (this.panel1.InvokeRequired)
			{
				this.Invoke(
					(MethodInvoker)(() =>
					{
						if (!this.IsDisposed && !this.panel1.IsDisposed)
						{
							this.panel1.Refresh();
						}
					}));
			}
			else
			{
				this.panel1.Refresh();
			}
		}
Beispiel #2
0
		protected virtual void OnRefresh(DrawContract draw)
		{
			var handler = this.Refresh;
			if (handler != null)
			{
				handler(draw);
			}
		}