public void EndInit() { if (DesignMode) return; try { Initialize(); } catch { // Prevent the IDE from crashing when component is in design mode. } }