public NewActionHandler SetTarget(VDViewComponent target) { m_txtTarget.Text = string.Empty; m_cmbClientAction.Items.Clear(); if (target != null) { m_txtTarget.Text = string.Format("{0} [{1}]", target.WidgetName, target.WidgetType.ToString()); if (target.SupportedActions != null) { m_cmbClientAction.Items.AddRange(target.SupportedActions.ToArray()); if (m_cmbClientAction.Items.Count > 0) { m_cmbClientAction.SelectedIndex = 0; } } } m_chkServer.Checked = false; m_chkServer.Enabled = target.CanBeTargetOfServerAction; VDModelStore ms = target.GetModelStore(); if (ms != null) { m_serverActionJoints = ms.GetSupportedServerActionJoints(); } else { m_serverActionJoints = null; } return(this); }
private void initModelTypeList(VDModelStore modelStore) { #if todel // init the type list, be sure "string" type always exists, it's default type modelStore.ModelTypes.Add(new VDPredefinedType(modelStore.Partition, new PropertyAssignment(VDModelType2.NameDomainPropertyId, "string"))); #endif }
protected override VDWidgetValue createWidgetValue() { VDModelStore modelStore = this.GetModelStore(); if (modelStore != null) { return(modelStore.CreateConcreteType <VDWidgetValue>("string")); } return(null); }