Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Component Initialization - Runtime vs. Designtime

I have a series of visual compound components that I'm building, which use similar / common "connect" methods, which fire up there internal tables, etc.

I am automating some of the connection stuff to connect automatically at runtime. How do I tell, at the component level, if the current state is runtime or designtime?

like image 225
Jamo Avatar asked Mar 28 '09 01:03

Jamo


1 Answers

I think you want to check if the csDesigning flag is present in the component's ComponentState property:

if csDesigning in ComponentState then
  // designtime
else
  // not designtime
like image 116
Herbert Sitz Avatar answered Nov 12 '22 01:11

Herbert Sitz