public override void SetParameter(EventBase even)
        {
            OpenWindowDev _event = even as OpenWindowDev;

            this.txtName.Text   = _event.Name;
            this.txtCode.Text   = _event.Code;
            _selectedFormEntity = _windowComponentService.GetWindowEntity(_event.WindowId);
            if (_selectedFormEntity != null)
            {
                this.txtFormName.Text = this._selectedFormEntity.Name;
            }
            this.cbIsDiablog.Checked      = _event.IsDialog;
            this.ddlIfOpend.SelectedValue = ((int)_event.IfOpend).ToString();
        }
        public static void CheckWarning(OpenWindowDev entity)
        {
            entity.Warning.Clear();
            if (_windowComponentService.CheckExist(entity.WindowId) == false)
            {
                entity.Warning.AddWarningSign(entity, Language.Current.EventDev_OpenFormDev_FormNotExist);
            }
            XmlDocument xmlDocSendData = new XmlDocument();

            xmlDocSendData.LoadXml(entity.SendDataXml);
            XmlNodeList xmlNodeListSendData = xmlDocSendData.SelectNodes("SendData/Send");

            string[] strSource;
            UIElementDataListEntity sourceDataListEntity;

            foreach (XmlNode xmlNode in xmlNodeListSendData)
            {
                strSource = xmlNode.Attributes["Source"].Value.Split('.');
                if (strSource[0] == "FormElement")
                {
                    if (entity.HostFormEntity.Elements.Contains(strSource[1]) == false)
                    {
                        entity.Warning.AddWarningSign(entity, Language.Current.EventDev_OpenFormDev_FormElementNotExist);
                    }
                    if (strSource.Length == 3)
                    {
                        sourceDataListEntity =
                            entity.HostFormEntity.Elements.GetFormElementById(strSource[1]) as UIElementDataListEntity;
                        if (sourceDataListEntity != null)
                        {
                            if (!sourceDataListEntity.DataColumns.Contains(strSource[2]))
                            {
                                entity.Warning.AddWarningSign(entity, Language.Current.EventDev_OpenFormDev_FormElementNotExist);
                            }
                        }
                    }
                }
            }
        }
        public override void SetParameter(EventBase even)
        {
            OpenWindowDev _event = even as OpenWindowDev;
            XmlDocument   xmlDoc = new XmlDocument();

            xmlDoc.LoadXml(_event.SendDataXml);
            XmlNodeList xmlNodeList = xmlDoc.SelectNodes("SendData/Send");
            DataRow     dr;
            bool        warningRow;

            this.dtSendData.Rows.Clear();
            foreach (XmlNode xmlNode in xmlNodeList)
            {
                warningRow           = false;
                dr                   = dtSendData.NewRow();
                dr["DataName"]       = xmlNode.Attributes["DataName"].Value;
                dr["DataCode"]       = xmlNode.Attributes["DataCode"].Value;
                dr["DataSource"]     = xmlNode.Attributes["Source"].Value;
                dr["DataSourceName"] =
                    StringParserLogic.DataSourceVisibleString(this.HostAdapter.HostFormEntity, xmlNode.Attributes["Source"].Value, out warningRow);
                dr["Warning"] = warningRow;
                dtSendData.Rows.Add(dr);
            }
        }