/// <summary> /// 进行参数设置 /// </summary> /// <param name="cmi"></param> /// <param name="bac"></param> void _ParameterSettings(ContextMenuInfo cmi, XtnBaseActivity bac) { if (cmi.AssemblyQualifiedName.IsNullOrEmpty()) { return; } FrameworkElement ui = Wrapper.CreateControl <FrameworkElement>(cmi.AssemblyQualifiedName); ISelectors select = ui as ISelectors; if (null == select) { return; } select.IDesignFramework = this.IDesignFramework; select.CurrentContextMenuInfo = cmi; select.IActivity = bac as IActivity; select.ActivityName = bac.Name; select.EventControlName = this.EventControlName; select.EventName = this.EventName; select.ActivityType = bac.GetType().Name; select.AttributeInfo = this.AttributeInfo; select.CurrentSelectedSetEventControl = this.CurrentSelectedControl; //-->弹出窗体来 XtnChildWindow pcc = new XtnChildWindow(this.IDesignFramework, ui); pcc.Closed += pcc_Closed; pcc.SetTitle(string.Format("正在对【{0}】控件【{1}】事件参数进行设置...", this.CurrentSelectedControl.Name, this.EventName)); pcc.Show(); }
internal FrameExecutionContext(IExecutionContextDelegate executionContextDelegate, Frame frame, ISelectors selectors = null) : base(executionContextDelegate) { Frame = frame; _selectors = selectors ?? Selectors.Instance.Value; }