void availableEvents_SelectedValueChanged(object sender, SEComboSelector2.OnSelectedValueChangedEventArgs e) { EventProvideAttribute attribute = e.Value as EventProvideAttribute; if (attribute.Code == -1) { this._eventEditorSupport = null; this.treeViewParameter.Nodes.Clear(); this.panelParameter.Controls.Clear(); return; } //EventBase objEvent = EventSupport.EventProvide.CreateInstance(attribute); EventBase objEvent = EventDevTypes.Instance.CreateInstance(attribute); if (objEvent == null) { return; } this.Event = objEvent as EventBase; this.Event.HostFormEntity = this.formEntity; CreateEventEditorSupport(); }
void availabilityEvent_SelectedValueChanged(object sender, SEComboSelector2.OnSelectedValueChangedEventArgs e) { if (e.Value != null) { EventProvideAttribute attribute = e.Value as EventProvideAttribute; this.SelectedEvent = _eventDevTypes.CreateInstance(attribute); } else { this.SelectedEvent = null; } LoadMethodPlan(); }