private void Clear() { if (this.surface == null) return; if (this.workflowViewValue != null) { if (Controls.Contains(this.workflowViewValue)) Controls.Remove(this.workflowViewValue); this.workflowViewValue.Dispose(); this.workflowViewValue = null; } this.surface.Dispose(); this.surface = null; this.loader = null; }
//Initializes the designer setting up the services, surface, and loader private void Initialize() { if (this.surface != null) this.surface.Dispose(); this.loader = new Loader(); this.surface = new WorkflowDesignSurface(new MemberCreationService()); }