private void InitializeComponent_1() { this.icontainer_3 = new Container(); this.TreeView1 = new AisinoTVW(); this.imageList_0 = new ImageList(this.icontainer_3); base.SuspendLayout(); this.TreeView1.BorderStyle = BorderStyle.FixedSingle; this.TreeView1.Dock = DockStyle.Fill; this.TreeView1.ImageIndex = 0; this.TreeView1.ImageList = this.imageList_0; this.TreeView1.Location = new Point(0, 0); this.TreeView1.Name = "TreeView1"; this.TreeView1.SelectedImageIndex = 0; this.TreeView1.Size = new Size(0x124, 0x111); this.TreeView1.TabIndex = 0; this.TreeView1.NodeMouseClick += new TreeNodeMouseClickEventHandler(this.TreeView1_NodeMouseClick); this.imageList_0.ColorDepth = ColorDepth.Depth8Bit; this.imageList_0.ImageSize = new Size(0x10, 0x10); this.imageList_0.TransparentColor = Color.Transparent; base.AutoScaleDimensions = new SizeF(6f, 12f); base.AutoScaleMode = AutoScaleMode.Font; base.ClientSize = new Size(0x124, 0x111); base.Controls.Add(this.TreeView1); base.Name = "DockToolForm"; this.Text = "菜单栏"; base.ResumeLayout(false); }
public static void Load(AisinoTVW aisinoTVW_0, object object_0, string string_0, bool bool_0) { if (aisinoTVW_0.ImageList != null) { foreach (string str in ResourceUtil.dictionary_0.Keys) { if (ResourceUtil.GetBitmap(str) != null) { aisinoTVW_0.ImageList.Images.Add(str, ResourceUtil.GetBitmap(str)); } } } Class120 class2 = PlugInTree.smethod_5(string_0); if (class2 != null) { foreach (object obj2 in class2.method_2(object_0, bool_0)) { if (!bool_0 && (obj2 is TreeNodeCommand)) { aisinoTVW_0.Nodes.Add((TreeNodeCommand)obj2); } else if (bool_0 && (obj2 is TreeNodeCommand_All)) { aisinoTVW_0.Nodes.Add((TreeNodeCommand_All)obj2); } } } }
private void Initialize() { this.InitializeComponent(); base.MaximizeBox = false; base.MinimizeBox = false; base.FormBorderStyle = FormBorderStyle.FixedDialog; this.txtPhone = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtPhone"); this.txtCreateDate = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtCreateDate"); this.txtDesc = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtDesc"); this.txtName = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtName"); this.tvUser = this.xmlComponentLoader1.GetControlByName <AisinoTVW>("tvUser"); this.chklRole = this.xmlComponentLoader1.GetControlByName <AisinoCKL>("chklRole"); this.tsbtnNewUser = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tsbtnNewUser"); this.tsbtnUpdUser = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tsbtnUpdUser"); this.tsbtnDelUser = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tsbtnDelUser"); this.tsbtnChangePwd = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tsbtnChangePwd"); this.tsBtnCancel = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tsBtnCancel"); this.tsBtnSave = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tsBtnSave"); this.txtName.KeyPress += new KeyPressEventHandler(this.txtName_KeyPress); this.txtPhone.KeyPress += new KeyPressEventHandler(this.txtPhone_KeyPress); this.txtDesc.KeyPress += new KeyPressEventHandler(this.txtDesc_KeyPress); this.txtName.TextChanged += new EventHandler(this.txtName_TextChanged); this.txtPhone.TextChanged += new EventHandler(this.txtPhone_TextChanged); this.txtDesc.TextChanged += new EventHandler(this.txtDesc_TextChanged); this.chklRole.CheckOnClick = true; this.tsBtnSave.Alignment = ToolStripItemAlignment.Right; this.tsBtnCancel.Alignment = ToolStripItemAlignment.Right; this.tsbtnNewUser.Image = Resources.user_add; this.tsbtnNewUser.ToolTipText = "新增用户"; this.tsbtnUpdUser.Image = Resources.user_edit; this.tsbtnUpdUser.ToolTipText = "修改用户"; this.tsbtnDelUser.Image = Resources.user_delete; this.tsbtnDelUser.ToolTipText = "删除用户"; this.tsbtnChangePwd.Image = Resources.change_password; this.tsbtnChangePwd.ToolTipText = "修改密码"; this.tsBtnCancel.Image = Resources.cancel; this.tsBtnSave.Image = Resources.accept; this.tsbtnNewUser.Click += new EventHandler(this.tsbtnNewUser_Click); this.tsbtnUpdUser.Click += new EventHandler(this.tsbtnUpdUser_Click); this.tsbtnDelUser.Click += new EventHandler(this.tsbtnDelUser_Click); this.tsbtnChangePwd.Click += new EventHandler(this.tsbtnChangePwd_Click); this.tvUser.AfterSelect += new TreeViewEventHandler(this.tvUser_AfterSelect); this.tvUser.BeforeSelect += new TreeViewCancelEventHandler(this.tvUser_BeforeSelect); this.tsBtnCancel.Click += new EventHandler(this.tsBtnCancel_Click); this.tsBtnSave.Click += new EventHandler(this.tsBtnSave_Click); }
private void Initialize() { this.InitializeComponent(); base.MaximizeBox = false; base.MinimizeBox = false; base.FormBorderStyle = FormBorderStyle.FixedDialog; this.txtRoleCreateDate = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtRoleCreateDate"); this.txtRoleCreator = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtRoleCreator"); this.txtRoleDesc = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtRoleDesc"); this.txtRoleName = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtRoleName"); this.tvRole = this.xmlComponentLoader1.GetControlByName <AisinoTVW>("tvRole"); this.tvRolePerm = this.xmlComponentLoader1.GetControlByName <TriStateTreeView>("tvRolePerm"); this.tsbtnNewRole = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tsbtnNewRole"); this.tsbtnNewRole.ToolTipText = "新增角色"; this.tsbtnUpdRole = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tsbtnUpdRole"); this.tsbtnUpdRole.ToolTipText = "修改角色"; this.tsbtnDelRole = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tsbtnDelRole"); this.tsbtnDelRole.ToolTipText = "删除角色"; this.tsBtnCancel = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tsBtnCancel"); this.tsBtnSave = this.xmlComponentLoader1.GetControlByName <ToolStripButton>("tsBtnSave"); this.txtRoleName.KeyPress += new KeyPressEventHandler(this.txtRoleName_KeyPress); this.txtRoleDesc.KeyPress += new KeyPressEventHandler(this.txtRoleDesc_KeyPress); this.txtRoleName.TextChanged += new EventHandler(this.txtRoleName_TextChanged); this.txtRoleDesc.TextChanged += new EventHandler(this.txtRoleDesc_TextChanged); this.tvRole.HideSelection = false; this.tvRolePerm.CheckBoxes = true; this.tsBtnSave.Alignment = ToolStripItemAlignment.Right; this.tsBtnCancel.Alignment = ToolStripItemAlignment.Right; this.tsbtnNewRole.Image = Resources.group_add; this.tsbtnUpdRole.Image = Resources.group_edit; this.tsbtnDelRole.Image = Resources.group_delete; this.tsBtnCancel.Image = Resources.cancel; this.tsBtnSave.Image = Resources.accept; this.tsbtnNewRole.Click += new EventHandler(this.tsbtnNewRole_Click); this.tsbtnUpdRole.Click += new EventHandler(this.tsbtnUpdRole_Click); this.tsbtnDelRole.Click += new EventHandler(this.tsbtnDelRole_Click); this.tvRole.BeforeSelect += new TreeViewCancelEventHandler(this.tvRole_BeforeSelect); this.tvRole.AfterSelect += new TreeViewEventHandler(this.tvRole_AfterSelect); this.tsBtnCancel.Click += new EventHandler(this.tsBtnCancel_Click); this.tsBtnSave.Click += new EventHandler(this.tsBtnSave_Click); }
private void Initialize() { this.InitializeComponent(); base.MaximizeBox = false; base.MinimizeBox = false; base.FormBorderStyle = FormBorderStyle.FixedDialog; this.tcRegistInfo = this.xmlComponentLoader1.GetControlByName <AisinoTAB>("tcRegistInfo"); this.tpBaseInfo = this.xmlComponentLoader1.GetControlByName <TabPage>("tpBaseInfo"); this.tpRegist = this.xmlComponentLoader1.GetControlByName <TabPage>("tpRegist"); this.tpLoadFiles = this.xmlComponentLoader1.GetControlByName <TabPage>("tpLoadFiles"); this.tpFileCheck = this.xmlComponentLoader1.GetControlByName <TabPage>("tpFileCheck"); this.numUdDays = this.xmlComponentLoader1.GetControlByName <AisinoNUD>("numUdDays"); this.numUDMachineNo = this.xmlComponentLoader1.GetControlByName <AisinoNUD>("numUDMachineNo"); this.numUdOutTime = this.xmlComponentLoader1.GetControlByName <AisinoNUD>("numUdOutTime"); this.txtName = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtName"); this.txtTaxNo = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtTaxNo"); this.txtLoadUri = this.xmlComponentLoader1.GetControlByName <AisinoTXT>("txtLoadUri"); this.rtxtInsVersions = this.xmlComponentLoader1.GetControlByName <AisinoRTX>("rtxtInsVersions"); this.rtxtVersion = this.xmlComponentLoader1.GetControlByName <AisinoRTX>("rtxtVersion"); this.btnSetupRegFile = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnSetupRegFile"); this.btnLoad = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnLoad"); this.btnRemove = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnRemove"); this.btnAdd = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnAdd"); this.btnExport = this.xmlComponentLoader1.GetControlByName <AisinoBTN>("btnExport"); this.chkOverdate = this.xmlComponentLoader1.GetControlByName <AisinoCHK>("chkOverdate"); this.chkBeforeDate = this.xmlComponentLoader1.GetControlByName <AisinoCHK>("chkBeforeDate"); this.lblBBH = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblBBH"); this.label6 = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("label6"); this.lblRJZL = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblRJZL"); this.lblRJXLH = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblRJXLH"); this.lblKPJH = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblKPJH"); this.lblZCDY = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblZCDY"); this.lblSQJZRQ = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblSQJZRQ"); this.lblRJBH = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblRJBH"); this.lblNSDJH = this.xmlComponentLoader1.GetControlByName <AisinoLBL>("lblNSDJH"); this.tvRegVersion = this.xmlComponentLoader1.GetControlByName <AisinoTVW>("tvRegVersion"); this.txtAuthNo = this.xmlComponentLoader1.GetControlByName <TextBoxRegex>("txtAuthNo"); this.lstBoxAuthNo = this.xmlComponentLoader1.GetControlByName <AisinoLST>("lstBoxAuthNo"); this.numUDMachineNo.Enabled = false; this.txtAuthNo.IsEmpty = false; this.txtAuthNo.RegexText = "^[0-9]{0,20}$"; this.tvRegVersion.ImageList = this.imageList1; this.tvRegVersion.ImageIndex = 0; this.tvRegVersion.SelectedImageIndex = 0; this.chkBeforeDate.Visible = true; this.numUdDays.Visible = true; this.label6.Visible = true; this.chkOverdate.Visible = true; this.rtxtInsVersions.Visible = true; this.btnSetupRegFile.Visible = true; this.btnAdd.Click += new EventHandler(this.btnAdd_Click); this.btnRemove.Click += new EventHandler(this.btnRemove_Click); this.btnExport.Click += new EventHandler(this.btnExport_Click); this.btnLoad.Click += new EventHandler(this.btnLoad_Click); this.btnSetupRegFile.Click += new EventHandler(this.btnSetupRegFile_Click); this.txtAuthNo.TextChanged += new EventHandler(this.txtAuthNo_TextChanged); this.lstBoxAuthNo.SelectedIndexChanged += new EventHandler(this.lstBoxAuthNo_SelectedIndexChanged); this.tvRegVersion.AfterSelect += new TreeViewEventHandler(this.tvRegVersion_AfterSelect); this.tvRegVersion.MouseClick += new MouseEventHandler(this.tvRegVersion_MouseClick); this.delToolStripMenuItem.Click += new EventHandler(this.delToolStripMenuItem_Click); }