protected internal void Panel_Tree_Click(object sender, EventArgs e) { foreach (UTreeControl c in this.Parent.Controls) { c.BackgroundImage = (Image)PivasTool.Properties.Resources.ResourceManager.GetObject("菜单项"); c.Label_TreeName.ForeColor = Color.FromArgb(64, 64, 64); } this.BackgroundImage = (Image)PivasTool.Properties.Resources.ResourceManager.GetObject("菜单项1"); Label_TreeName.ForeColor = Color.White; um.ShowUCenter(Label_TreeName.Text); }
private void Panel_YES_Click(object sender, EventArgs e) { //string[] add = new string[] { Txt_Name.Text, Txt_Version.Text, Comb_MaxCategories.Text, Comb_MinCategories.Text, Txt_ImgName.Text, Txt_Path.Text }; Save(); if (db.SetPIVAsDB(insert.SetTools(this)) > 0) { uma.ShowUCenter(uma.ToolsMaxCategories); MessageBox.Show("成功"); this.Dispose(true); } else { MessageBox.Show("失败"); } }
private void 除此控件ToolStripMenuItem_Click(object sender, EventArgs e) { if (uma.lt) { DialogResult drt = MessageBox.Show("确认删除" + Label_ToolsName.Text + "工具", "", MessageBoxButtons.YesNo, MessageBoxIcon.Warning); if (drt == DialogResult.Yes) { if (new DB_Help().SetPIVAsDB(string.Format("delete from [dbo].[Tools] where ToolsID='{0}'", dr["ToolsID"].ToString())) > 0) { uma.ShowUCenter(uma.ToolsMaxCategories); } } } else { MessageBox.Show("您没有权限,请联系管理员"); } }