企业一体化管理软件系统-源代码.docx
《企业一体化管理软件系统-源代码.docx》由会员分享,可在线阅读,更多相关《企业一体化管理软件系统-源代码.docx(528页珍藏版)》请在淘文阁 - 分享文档赚钱的网站上搜索。
1、Four short words sum up what has lifted most successful individuals above the crowd: a little bit more.-author-date企业一体化管理软件系统-源代码企业一体化管理软件系统-源代码using System;using System.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.D
2、ata;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.Windows.Shapes;using System.IO;public partial class Qr code set / class ColorBox: Label private bool mouseEnter;public ColorBox()th
3、is.BackColor = Color.White;this.AutoSize = false;this.Size = new Size(41, 23);this.BorderStyle = BorderStyle.Fixed3D; this.MouseEnter += new EventHandler(ColorBox_MouseEnter); this.MouseLeave += new EventHandler(ColorBox_MouseLeave); this.Click += new EventHandler(ColorBox_Click); this.MouseMove +=
4、new MouseEventHandler(ColorBox_MouseMove); void ColorBox_MouseMove(object sender, MouseEventArgs e) if (Cursor.Current != Cursors.Hand) Cursor.Current = Cursors.Hand; void ColorBox_MouseLeave(object sender, EventArgs e) mouseEnter = false; Cursor.Current = Cursors.Default; this.Invalidate(); void Co
5、lorBox_MouseEnter(object sender, EventArgs e) mouseEnter = true; Cursor.Current = Cursors.Hand; this.Invalidate(企业管理); / Fires when the selected color changespublic event ColorChangedEventHandler ColorChanged; public event ColorDialogCreatedEventHandler ColorDialogCreated;void ColorBox_Click(object
6、sender, EventArgs e) Cursor.Current = Cursors.Hand; IRadColorDialog dialogForm = RadColorEditor.CreateColorDialogInstance(); if (this.ColorDialogCreated != null) ColorDialogEventArgs args = new ColorDialogEventArgs(dialogForm); this.ColorDialogCreated(this, args); UserControl colorSelector = RadColo
7、rEditor.CreateColorSelectorInstance() as UserControl;(IColorSelector)dialogForm.RadColorSelector).SelectedColor = this.BackColor;(IColorSelector)dialogForm.RadColorSelector).OldColor = this.BackColor;(IColorSelector)colorSelector).OkButtonClicked += delegate(object sender1, ColorChangedEventArgs arg
8、s) (Form)dialogForm).DialogResult = DialogResult.OK; (Form)dialogForm).Close(); ;(IColorSelector)colorSelector).CancelButtonClicked += delegate(object sender1, ColorChangedEventArgs args) (Form)dialogForm).DialogResult = DialogResult.Cancel; (Form)dialogForm).Close(); ;colorSelector.Dock = DockStyle
9、.Fill;(Form)dialogForm).Controls.Add(colorSelector);if (Form)dialogForm).ShowDialog() = DialogResult.OK)this.BackColor = (IColorSelector)dialogForm.RadColorSelector).SelectedColor;if (ColorChanged != null)ColorChanged(this, new ColorChangedEventArgs(this.BackColor); this.Invalidate(); protected over
10、ride void OnPaint(PaintEventArgs e) Cursor.Current = Cursors.Hand; if( mouseEnter ) using (Pen pen = new Pen(this.ForeColor) e.Graphics.DrawRectangle(pen, new Rectangle(ClientRectangle.X, ClientRectangle.Y, ClientRectangle.Width - 1, ClientRectangle.Height - 1); base.OnPaint(e); public class ColorDi
11、alogEventArgs : EventArgs private IRadColorDialog dialog; public ColorDialogEventArgs(IRadColorDialog dialog) this.dialog = dialog; public IRadColorDialog Dialog get return dialog; public delegate void ColorDialogCreatedEventHandler(object sender, ColorDialogEventArgs args);using System;using System
12、.Collections.Generic;using System.Linq;using System.Text;using System.Windows;using System.Windows.Controls;using System.Windows.Data;using System.Windows.Documents;using System.Windows.Input;using System.Windows.Media;using System.Windows.Media.Imaging;using System.Windows.Navigation;using System.W
13、indows.Shapes;using System.IO;public partial class System Settings / Form codepublic partial class Form1 : TreeExamplesControl Bitmap bottomRightBitmap = Resources.TV_email; private string clickedNode; public Form1()InitializeComponent();this.radLblSelectedNode.Text = ; this.radLblSelectedItem.Text
14、= ;this.Load += new EventHandler(Form1_Load);this.SelectedControl = this.radTreeViewDemo; this.radTreeViewDemo.AllowEdit = true; this.radContextMenu1.DropDownOpening += new System.ComponentModel.CancelEventHandler(radContextMenu1_DropDownOpening); public override RadTreeView TreeControl get return t
15、his.radTreeViewDemo; public override Bitmap BottomRightImage get return bottomRightBitmap; public override string HeaderText get return Mail; private void Form1_Load(object sender, EventArgs e)this.radMenuItem1.Click += new EventHandler(radMenuItem1_Click);this.radMenuItem2.Click +=new EventHandler(
16、radMenuItem2_Click);this.radMenuItem4.Click +=new EventHandler(radMenuItem4_Click);this.radMenuItem5.Click +=new EventHandler(radMenuItem5_Click);this.radTreeViewDemo.NodeMouseDown += new Telerik.WinControls.UI.RadTreeView.TreeViewMouseEventHandler(node_MouseDown);private void node_MouseDown(object
17、sender, RadTreeViewEventArgs e)if (Control.MouseButtons = MouseButtons.Right)clickedNode = e.Node.Text; private void SetLabel(object sender) RadMenuItem item = sender as RadMenuItem; if (item != null) radLblSelectedNode.Text = this.clickedNode; radLblSelectedItem.Text = item.Text; void radContextMen
18、u1_DropDownOpening(object sender, System.ComponentModel.CancelEventArgs e) RadTreeNode node = this.radTreeViewDemo.SelectedNode; if (node != null) this.radMenuItem1.Enabled = node.Enabled; this.radMenuItem4.Enabled = node.Enabled; this.radMenuItem5.Enabled = node.Enabled; if (node.Enabled) this.radM
19、enuItem2.Text = Disable; else this.radMenuItem2.Text = Enable; private void radMenuItem1_Click(object sender, EventArgs e) SetLabel(sender); if (this.radTreeViewDemo.SelectedNode != null) this.radTreeViewDemo.BeginEdit(); private void radMenuItem2_Click(object sender, EventArgs e) SetLabel(sender);
- 配套讲稿:
如PPT文件的首页显示word图标,表示该PPT已包含配套word讲稿。双击word图标可打开word文档。
- 特殊限制:
部分文档作品中含有的国旗、国徽等图片,仅作为作品整体效果示例展示,禁止商用。设计者仅对作品中独创性部分享有著作权。
- 关 键 词:
- 企业 一体化 管理软件 系统 源代码
限制150内