|
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
-
- namespace AssistClient.UI
- {
- public partial class UISmallPic : UserControl
- {
- public UISmallPic(string index, string defect, string sor, Bitmap bmp)
- {
- InitializeComponent();
-
- lbIndex.Text = index;
- lbName.Text = defect;
- lbSor.Text = sor;
- this.BackColor = System.Drawing.SystemColors.ButtonHighlight;
- this.picBox.Image = bmp;//del
- }
-
- public void SetSelect(bool select)
- {
- if(select)
- {
- this.BackColor = System.Drawing.SystemColors.Highlight;
- }
- else
- {
- this.BackColor = System.Drawing.SystemColors.ButtonHighlight;
- }
- }
-
- private void picBox_DoubleClick(object sender, EventArgs e)
- {
- this.OnDoubleClick(null);
- }
- }
- }
|