Beispiel #1
0
 public DataSourceEditView()
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     this.dataSourceSelector.Title = Language.Current.DataSourceEditView_LabelDataSource;
     this.provideSelector.Title    = Language.Current.DataSourceEditView_LabelProvide;
 }
 public FormFormElementChoose(WindowEntity formEntity)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.formEntity = formEntity;
 }
Beispiel #3
0
        ////否决
        //private DataTable dtWhere;
        ///// <summary>
        ///// 条件设置
        ///// </summary>
        //public DataTable Where
        //{
        //    get
        //    {
        //        return this.dtWhere;
        //    }
        //    set
        //    {
        //        this.dtWhere = value;
        //        this.dataGridViewWhere.DataSource = this.dtWhere;
        //    }
        //}

        #endregion

        #region 构造

        public UserControlEventEditorPanel_DeleteData_DataEntity(EventEditorAdapterAbstract hostAdapter)
            : base(hostAdapter)
        {
            InitializeComponent();

            _dataEntityComponentService = ServiceUnity.Container.Resolve <IDataEntityComponentService>();

            UIHelper.ProcessDataGridView(this.dataGridViewWhere);

            Unity.ApplyResource(this);
            ApplyLanguageResource();

            this.dataGridViewWhere.AutoGenerateColumns = false;

            this._wheres = new BindingList <DeleteDataEvent.WhereItem>();
            this.dataGridViewWhere.DataSource = this._wheres;

            ////初始化条件设置表
            //dtWhere = new DataTable();
            //dtWhere.Columns.Add("DataItem");
            //dtWhere.Columns.Add("DataItemName");
            //dtWhere.Columns.Add("Source");
            //dtWhere.Columns.Add("SourceName");
            //dtWhere.Columns.Add("MatchType"); //匹配方式
            //dtWhere.Columns.Add("Warning", typeof(bool));

            ////关联条件设置表
            //this.dataGridViewWhere.AutoGenerateColumns = false;
            //this.dataGridViewWhere.DataSource = this.dtWhere;

            //关联条件表中匹配方式枚举
            this.ColumnWhereMatchType.DataSource    = EnumDescConverter.Get(typeof(EnumMatchType));
            this.ColumnWhereMatchType.DisplayMember = "Text";
            this.ColumnWhereMatchType.ValueMember   = "Object";
        }
Beispiel #4
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="entity">实体对象,将从此对象中提取其所支持的事件</param>
        /// <param name="eventBase">要编辑的事件</param>
        public FormEventEditor(EntityBase hostEntity, EventBase eventBase)
        {
            InitializeComponent();

            Unity.ApplyResource(this);
            ApplyLanguageResource();

            availableEvents.DisplayMember     = EventProvideAttribute.Property_Name;
            availableEvents.DescriptionMember = EventProvideAttribute.Property_Description;

            availableEventTimes.DisplayMember = EventTimeAbstract.Property_Name;
            availableEventTimes.LayoutMode    = ListViewLayoutMode.Standard;

            //初始化imageList
            //如果修改这里,注意修改 EditorTreeNodeIcons
            this.imageListParameter.Images.Add(IconsLibrary.EmptyIcon);
            this.imageListParameter.Images.Add(IconsLibrary.Property);
            this.imageListParameter.Images.Add(IconsLibrary.Right);
            this.imageListParameter.Images.Add(IconsLibrary.Method);
            this.imageListParameter.Images.Add(IconsLibrary.Error2);

            this._entity = hostEntity;
            this.Event   = eventBase;

            //CheckWarning
            if (this.Event != null)
            {
                IWarningable warningable = this.Event as IWarningable;
                if (warningable != null)
                {
                    warningable.CheckWarning();
                }
            }
        }
Beispiel #5
0
 public FormWarning()
 {
     InitializeComponent();
     this.toolStrip1.Renderer          = ToolStripRenders.Default;
     this.toolStripButtonWarning.Image = IconsLibrary.Warning;
     Unity.ApplyResource(this);
 }
 public DataListDataItemEditView()
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ddlDataColumn.DisplayMember = EntityBase.Property_Name;
     ddlDataColumn.Title         = Language.Current.DataListDataItemEditView_LabelDataColumn;
 }
Beispiel #7
0
 public UserControlEventEditorPanel_ReLogin_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     this.txtCode.Regex = CoreConstant.ENTITY_CODE_REGEX;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
 }
Beispiel #8
0
        /// <summary>
        /// 构造,需手动调用 InitFormElementTree 初始化树
        /// </summary>
        public FormGlobalFormElementChoose()
        {
            InitializeComponent();

            this.contextMenuStrip.Renderer = ToolStripRenders.Default;

            Unity.ApplyResource(this);
        }
Beispiel #9
0
 public UserControlEventEditorPanel_DataListRefresh_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     radioButtonDataEntity.Checked = true;
 }
 public UserControlEventEditorPanel_ValidateFormData_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     this.txtCode.Regex = CoreConstant.ENTITY_CODE_REGEX;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.ddlMode.DataSource = EnumDescConverter.Get(typeof(ValidateFormDataEvent.EnumValidateFormDataMode));
 }
 public UserControlEventEditorPanel_LoadDataToForm_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     this.txtCode.Regex = CoreConstant.ENTITY_CODE_REGEX;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     radioButtonDataEntity.Checked = true;
 }
 public FormEventDataListDataSet(WindowEntity formEntity)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.formEntity             = formEntity;
     this.txtDataColumn.Location = this.ddlDataColumn.Location;
     this.txtDataColumn.Size     = this.ddlDataColumn.Size;
 }
 public UserControlEventEditorPanel_UpdateFormData_SqlRegex(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.txtSqlRegex.FormEntity                  = this.HostAdapter.HostFormEntity;
     this.txtSqlRegex.AllowDataSourceType         = UpdateFormDataDev.AllowDataSourceType;
     this.txtSqlRegex.AllowFormElementControlType = UpdateFormDataDev.AllowFormElementControlType;
 }
 public UserControlEventEditorPanel_OpenWindow_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     _windowComponentService = ServiceUnity.Container.Resolve <IWindowComponentService>();
     this.txtCode.Regex      = CoreConstant.ENTITY_CODE_REGEX;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     ddlIfOpend.DataSource = EnumDescConverter.Get(typeof(OpenWindowEvent.EnumOpenWindowIfOpend));
 }
Beispiel #15
0
 public UserControlEventEditorPanel_OpenSystemForm_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     this.txtCode.Regex = CoreConstant.ENTITY_CODE_REGEX;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     dtForm             = EnumDescConverter.Get(typeof(OpenSystemFormEvent.EnumSystemForm));
     ddlForm.DataSource = dtForm;
 }
 public UserControlEventEditorPanel_DataListAddRow_Data(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     UIHelper.ProcessDataGridView(this.dataGridViewDataSet);
     Unity.ApplyResource(this);
     this.dataGridViewDataSet.AutoGenerateColumns = false;
     this._datas = new BindingList <DataListAddRowEvent.DataItem>();
     this.dataGridViewDataSet.DataSource = this._datas;
 }
 public FormEventReceiveDataSet(WindowEntity formEntity)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.formEntity = formEntity;
     this.ddlFormElement.AllowDataSource             = EnumEventDataSource.FormElement;
     this.ddlFormElement.AllowFormElementControlType = ReceiveDataDev.AllowTargetFormElementControlType;
     this.ddlFormElement.FormEntity = this.formEntity;
 }
 public FormEventDataItemDataSet(WindowEntity formEntity)
 {
     InitializeComponent();
     _dataEntityComponentService = ServiceUnity.Container.Resolve <IDataEntityComponentService>();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.txtDataItem.Location = this.ddlDataItem.Location;
     this.txtDataItem.Size     = this.ddlDataItem.Size;
     this.formEntity           = formEntity;
 }
 public UserControlEventEditorPanel_DataListRefresh_SqlRegex(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     _dataEntityComponentService = ServiceUnity.Container.Resolve <IDataEntityComponentService>();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.txtSqlRegex.FormEntity                  = this.HostAdapter.HostFormEntity;
     this.txtSqlRegex.AllowDataSourceType         = DataListRefreshDev.AllowWhereSetDataSourceType;
     this.txtSqlRegex.AllowFormElementControlType = DataListRefreshDev.AllowWhereSetFormElementControlType;
 }
Beispiel #20
0
 public UserControlEventEditorPanel_NewGuid_General(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     this.txtCode.Regex                         = CoreConstant.ENTITY_CODE_REGEX;
     ddlFormElement.AllowDataSource             = EnumEventDataSource.FormElement;
     ddlFormElement.AllowFormElementControlType = NewGuidDev.AllowTargetFormElementControlType;
     ddlFormElement.FormEntity                  = this.HostAdapter.HostFormEntity;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
 }
 public FormEventOpenFormSendDataSet(WindowEntity formEntity)
 {
     InitializeComponent();
     this.txtDataCode.Regex = CoreConstant.ENTITY_CODE_REGEX;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.formEntity = formEntity;
     this.ddlFormElement.AllowDataSource             = EnumEventDataSource.FormElement;
     this.ddlFormElement.AllowFormElementControlType = OpenWindowDev.AllowFormElementControlType;
     this.ddlFormElement.FormEntity = this.formEntity;
 }
Beispiel #22
0
 public DataEntityTreeChooseView(bool showDataItem)
 {
     InitializeComponent();
     _dataEntityComponentService = ServiceUnity.Container.Resolve <IDataEntityComponentService>();
     Unity.ApplyResource(this);
     this.ShowDataItem = showDataItem;
     _imageList        = new ImageList();
     _imageList.Images.Add(IconsLibrary.DataEntity3);
     _imageList.Images.Add(IconsLibrary.Cube2);
     this.treeViewDataEntity.ImageList = this._imageList;
     this.ShowDataItem = showDataItem;
 }
Beispiel #23
0
 public FormEventReturnDataToCallerFormSet(WindowEntity formEntity)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.formEntity = formEntity;
     this.ddlFormElement.AllowDataSource = EnumEventDataSource.FormElement;
     this.ddlFormElement.AllowFormElementControlType.Add(typeof(UIElementTextBoxEntity));
     this.ddlFormElement.AllowFormElementControlType.Add(typeof(UIElementComboBoxEntity));
     this.ddlFormElement.AllowFormElementControlType.Add(typeof(UIElementDataListTextBoxColumnEntity));
     this.ddlFormElement.FormEntity = this.formEntity;
 }
 public UserControlEventEditorPanel_DataListUpdateRow_Data(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.dataGridViewDataSet.AutoGenerateColumns = false;
     this._datas = new BindingList <DataListUpdateRowEvent.DataItem>();
     this.dataGridViewDataSet.DataSource = this._datas;
     this.ColumnWhere.DataSource         = Misc.TrueFalseTable;
     this.ColumnWhere.DisplayMember      = "Text";
     this.ColumnWhere.ValueMember        = "Value";
 }
Beispiel #25
0
 public UserControlEventEditorPanel_ValidateFormData_FormElement(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     UIHelper.ProcessDataGridView(this.dataGridViewFormElement);
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.dtFormElement = new DataTable();
     this.dtFormElement.Columns.Add("FormElement");
     this.dtFormElement.Columns.Add("FormElementName");
     this.dtFormElement.Columns.Add("Warning", typeof(bool));
     this.dataGridViewFormElement.AutoGenerateColumns = false;
     this.dataGridViewFormElement.DataSource          = this.dtFormElement;
 }
Beispiel #26
0
 public ImageResourceChooseView()
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     InitController();
     SubscribeEvent();
     this.Disposed += (sender, e) =>
     {
         foreach (var item in _imageCache)
         {
             item.Value.Dispose();
         }
     };
 }
 public UserControlEventEditorPanel_UpdateFormData_Where(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     UIHelper.ProcessDataGridView(this.dataGridViewWhere);
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.dataGridViewWhere.AutoGenerateColumns = false;
     this._wheres = new BindingList <UpdateFormDataEvent.WhereItem>();
     this.dataGridViewWhere.DataSource       = this._wheres;
     this.ColumnWhereMatchType.DataSource    = EnumDescConverter.Get(typeof(EnumMatchType));
     this.ColumnWhereMatchType.DisplayMember = "Text";
     this.ColumnWhereMatchType.ValueMember   = "Object";
 }
        public UserControlEvent(EntityBase entity)
        {
            InitializeComponent();

            UIHelper.ProcessDataGridView(this.dataGridViewEvent);
            this.dataGridViewEvent.AutoGenerateColumns = false;

            this.toolStrip.Renderer        = ToolStripRenders.ControlToControlLight;
            this.contextMenuStrip.Renderer = ToolStripRenders.Default;

            Unity.ApplyResource(this);
            ApplyIconResource();

            this.HostEntity = entity;
        }
Beispiel #29
0
 public UserControlEventEditorPanel_ReturnDataToCallerForm_ReturnData(EventEditorAdapterAbstract hostAdapter)
     : base(hostAdapter)
 {
     InitializeComponent();
     UIHelper.ProcessDataGridView(this.dataGridViewReturnData);
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     dtReturnData = new DataTable();
     dtReturnData.Columns.Add("FormElementCode");
     dtReturnData.Columns.Add("Source");
     dtReturnData.Columns.Add("SourceName");
     dtReturnData.Columns.Add("Warning", typeof(bool));
     this.dataGridViewReturnData.AutoGenerateColumns = false;
     this.dataGridViewReturnData.DataSource          = this.dtReturnData;
 }
        /// <summary>
        ///
        /// </summary>
        /// <param name="collection"></param>
        /// <param name="supportCancel">是否需要支持撤销,重做</param>
        public FormCollectionEditor(CollectionBase collection, bool supportCancel)
        {
            InitializeComponent();

            Unity.ApplyResource(this);

            UIHelper.ProcessDataGridView(this.dataGridView);
            this.dataGridView.AutoGenerateColumns = false;

            ApplyIconResource();

            _collection = collection;

            this.SupportCancel = supportCancel;
        }