public ExplorerGridContainer()
        {
            InitializeComponent();

            Unity.ApplyResource(this);

            UIHelper.ProcessDataGridView(this.dataGridView);
            this.pictureBox1.Image = ImagesLibrary.Navigate_48;

            if (DesignMode)
            {
                return;
            }

            //初始化命令
            InitCommands();

            //初始化菜单
            InitContextMenu();

            //初始化 DataGridView 控制器
            InitController();

            SubscribeEvent();
        }
Exemplo n.º 2
0
 public FolderEditView(string parentId)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     _parentId = parentId;
 }
Exemplo n.º 3
0
 public WindowEditView(string folderId)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.txtCode.Regex = CoreConstant.ENTITY_CODE_REGEX;
     this.folderId      = folderId;
 }
Exemplo n.º 4
0
 public EnumEntityEditView()
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.txtCode.Regex          = CoreConstant.ENTITY_CODE_REGEX;
     this.txtCode.CustomValidate = CodeValidateMethod;
 }
 public EnumItemEntityEditView(EnumEntity enumEntity)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     _enumEntity = enumEntity;
     this.txtValue.CustomValidate = ValueValidateMethod;
 }
Exemplo n.º 6
0
 public ToolStripGroupEditView(string pageId)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this.txtCode.Regex          = CoreConstant.ENTITY_CODE_REGEX;
     this.txtCode.CustomValidate = CodeValidateMethod;
     _pageId = pageId;
 }
Exemplo n.º 7
0
 public ProjectPropertyView()
 {
     InitializeComponent();
     _container      = ServiceUnity.Container;
     _projectService = _container.Resolve <IProjectService>();
     _project        = (Project)_projectService.Current;
     Unity.ApplyResource(this);
     ApplyLanguageResource();
 }
 public DataBaseCreateWizard_Create()
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     this.panelCreate.Dock = DockStyle.Fill;
     this.panelError.Dock  = DockStyle.Fill;
     _backgroundWorkerCreateDataBase.DoWork +=
         new DoWorkEventHandler(backgroundWorkerCreateDataBase_DoWork);
     _backgroundWorkerCreateDataBase.RunWorkerCompleted +=
         new RunWorkerCompletedEventHandler(backgroundWorkerCreateDataBase_RunWorkerCompleted);
 }
Exemplo n.º 9
0
 public DataItemEditView(DataEntityDev dataEntity)
 {
     InitializeComponent();
     this.txtCode.Regex            = CoreConstant.ENTITY_CODE_REGEX;
     this.txtCode.CustomValidate   = CodeValidateMethod;
     this.txtLength.MaxLength      = 4;
     this.txtLength.CustomValidate = LengthValidateMethod;
     Unity.ApplyResource(this);
     this.ApplyLanguageResource();
     this._dataEntity = dataEntity;
 }
Exemplo n.º 10
0
 public MenuEditView(string parentId)
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
     this._parentId              = parentId;
     this.txtCode.Regex          = CoreConstant.ENTITY_CODE_REGEX;
     this.txtCode.CustomValidate = CodeValidateMethod;
     _userControlEvent.Dock      = DockStyle.Fill;
     this.panelEvent.Controls.Add(_userControlEvent);
 }
Exemplo n.º 11
0
        public ToolStripItemEditView(string groupId)
        {
            InitializeComponent();
            Unity.ApplyResource(this);
            ApplyLanguageResource();
            _groupId = groupId;
            PropertyGridTypeWrapper typeWrapper = new PropertyGridTypeWrapper(typeof(ToolStripItemAbstract));

            typeWrapper.ActOnSubClass = true;
            typeWrapper.VisibleAll    = true;
            typeWrapper.VisibleException.AddRange(new string[] {
                ToolStripItemAbstract.Property_Name, ToolStripItemAbstract.Property_Code
            });
            propertyGrid.AddTypeWrapper(typeWrapper);
            this.txtCode.Regex                = CoreConstant.ENTITY_CODE_REGEX;
            this.txtCode.CustomValidate       = CodeValidateMethod;
            this._userControlEvent            = new UserControlEvent(null);
            this._userControlEvent.FormEntity = null;
            this._userControlEvent.Dock       = DockStyle.Fill;
        }
Exemplo n.º 12
0
 public CreateProjectView()
 {
     InitializeComponent();
     _container = ServiceUnity.Container;
     Unity.ApplyResource(this);
 }
 public DataBaseCreateWizard_Account()
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     ApplyLanguageResource();
 }
Exemplo n.º 14
0
 public DataBaseCreateWizard_Confirm()
 {
     InitializeComponent();
     Unity.ApplyResource(this);
     this.BackSkip = true;
 }
 public DataBaseCreateWizard_Option()
 {
     InitializeComponent();
     Unity.ApplyResource(this);
 }