public ButtonDownMenu() { InitializeComponent(); ControlAddEvent cotrol = new ControlAddEvent(Resources.展开箭头_1, Resources.展开箭头_2, Resources.展开箭头_3); cotrol.AddMouseMove(panelDown); }
public SearchTextBox() { InitializeComponent(); ControlAddEvent addevent = new ControlAddEvent(Resources.搜索1, Resources.搜索2, Resources.搜索3); addevent.AddMouseMove(btnSearch); }
public DialogHostFormPC() { InitializeComponent(); ControlAddEvent cotrol = new ControlAddEvent(Resources.x2_1, Resources.x2_2, Resources.x2_3); cotrol.AddMouseMove(picClose); }
private void MessageBoxFormPC_Load(object sender, EventArgs e) { ControlAddEvent cotrol = new ControlAddEvent(Resources.x2_1, Resources.x2_2, Resources.x2_3); cotrol.AddMouseMove(picClose); SetIcon(); SetButton(); }
public DialogHostFormPC(string caption, int width, int height) : this() { this.Text = caption; this.Width = width + this.Padding.Left + this.Padding.Right; this.Height = height + TitleHeight + this.Padding.Top + this.Padding.Bottom; this.AutoScroll = true; StartPosition = FormStartPosition.CenterParent; ControlAddEvent cotrol = new ControlAddEvent(Resources.x2_1, Resources.x2_2, Resources.x2_3); cotrol.AddMouseMove(picClose); }
private void TableControlMenu_Load(object sender, EventArgs e) { switch (menuType) { case ControlType.病历病程: panelTitle.BackgroundImage = Resources.病历病程_1; addevent = new ControlAddEvent(Resources.病历病程_1, Resources.病历病程_2, Resources.病历病程_3); break; case ControlType.患者文书: panelTitle.BackgroundImage = Resources.患者文书_1; addevent = new ControlAddEvent(Resources.患者文书_1, Resources.患者文书_2, Resources.患者文书_3); break; case ControlType.术中操作: panelTitle.BackgroundImage = Resources.术中操作_1; addevent = new ControlAddEvent(Resources.术中操作_1, Resources.术中操作_2, Resources.术中操作_3); break; } addevent.AddMouseMove(panelTitle); }
private void ButtonColor_Load(object sender, EventArgs e) { ControlAddEvent cotrol = null; switch (buttonType) { case ButtonType.蓝色: cotrol = new ControlAddEvent(Resources.蓝1, Resources.蓝2, Resources.蓝3); panelBtn.BackgroundImage = Resources.蓝1; break; case ButtonType.绿色: cotrol = new ControlAddEvent(Resources.绿1, Resources.绿2, Resources.绿3); panelBtn.BackgroundImage = Resources.绿1; break; case ButtonType.灰色: cotrol = new ControlAddEvent(Resources.灰1, Resources.灰2, Resources.灰3); panelBtn.BackgroundImage = Resources.灰1; break; } cotrol.AddMouseMove(panelBtn); }