版博士V2.0程序
No puede seleccionar más de 25 temas Los temas deben comenzar con una letra o número, pueden incluir guiones ('-') y pueden tener hasta 35 caracteres de largo.
 
 
 
 

44 líneas
1.1 KiB

  1. using System;
  2. using System.Collections.Generic;
  3. using System.ComponentModel;
  4. using System.Data;
  5. using System.Drawing;
  6. using System.Linq;
  7. using System.Text;
  8. using System.Threading.Tasks;
  9. using System.Windows.Forms;
  10. namespace AssistClient.UI
  11. {
  12. public partial class UISmallPic : UserControl
  13. {
  14. public UISmallPic(string index, string defect, string sor, Bitmap bmp)
  15. {
  16. InitializeComponent();
  17. lbIndex.Text = index;
  18. lbName.Text = defect;
  19. lbSor.Text = sor;
  20. this.BackColor = System.Drawing.SystemColors.ButtonHighlight;
  21. this.picBox.Image = bmp;//del
  22. }
  23. public void SetSelect(bool select)
  24. {
  25. if(select)
  26. {
  27. this.BackColor = System.Drawing.SystemColors.Highlight;
  28. }
  29. else
  30. {
  31. this.BackColor = System.Drawing.SystemColors.ButtonHighlight;
  32. }
  33. }
  34. private void picBox_DoubleClick(object sender, EventArgs e)
  35. {
  36. this.OnDoubleClick(null);
  37. }
  38. }
  39. }