Form_materInMontior.cs 4.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118
  1. using CCWin;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.Linq;
  8. using System.Reflection;
  9. using System.Text;
  10. using System.Threading.Tasks;
  11. using System.Windows.Forms;
  12. namespace WCS_Client.From
  13. {
  14. public partial class Form_materInMontior : Form
  15. {
  16. public Form_materInMontior()
  17. {
  18. InitializeComponent();
  19. Init();
  20. }
  21. private static Form_materInMontior childFromInstanc;
  22. public static Form_materInMontior ChildFromInstanc
  23. {
  24. get
  25. {
  26. if (childFromInstanc == null || childFromInstanc.IsDisposed)
  27. {
  28. childFromInstanc = new Form_materInMontior();
  29. }
  30. return childFromInstanc;
  31. }
  32. }
  33. private void Init()
  34. {
  35. conveyor_1080.button1.Text = "1080";
  36. conveyor_1081.button1.Text = "1081";
  37. conveyor_1082.button1.Text = "1082";
  38. conveyor_1083.button1.Text = "1083";
  39. conveyor_1084.button1.Text = "1084";
  40. conveyor_1085.button1.Text = "1085";
  41. rgv04.btn02.Text = "1087";
  42. rgv04.btn01.Text = "1086";
  43. conveyor_1090.button1.Text = "1090";
  44. conveyor_1091.button1.Text = "1091";
  45. conveyor_1092.button1.Text = "1092";
  46. conveyor_1093.button1.Text = "1093";
  47. conveyor_1094.button1.Text = "1094";
  48. conveyor_1095.button1.Text = "1095";
  49. conveyor_1096.button1.Text = "1096";
  50. conveyor_1097.button1.Text = "1097";
  51. conveyor_1098.button1.Text = "1098";
  52. conveyor_1099.button1.Text = "1099";
  53. conveyor_1100.button1.Text = "1100";
  54. conveyor_1101.button1.Text = "1101";
  55. conveyor_1102.button1.Text = "1102";
  56. conveyor_1103.button1.Text = "1103";
  57. conveyor_1116.button1.Text = "1116";
  58. conveyor_1120.button1.Text = "1120";
  59. conveyor_1121.button1.Text = "1121";
  60. conveyor_1123.button1.Text = "1123";
  61. conveyor_1124.button1.Text = "1124";
  62. conveyor_1126.button1.Text = "1126";
  63. conveyor_1127.button1.Text = "1127";
  64. conveyor_1128.button1.Text = "1128";
  65. conveyor_1130.button1.Text = "1130";
  66. conveyor_1129.button1.Text = "1129";
  67. conveyor_1132.button1.Text = "1132";
  68. conveyor_1133.button1.Text = "1133";
  69. conveyor_1134.button1.Text = "1134";
  70. conveyor_1136.button1.Text = "1136";
  71. conveyor_1137.button1.Text = "1137";
  72. conveyor_1112.button1.Text = "1114";
  73. }
  74. private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e)
  75. {
  76. }
  77. private void tableLayoutPanel1_CellPaint(object sender, TableLayoutCellPaintEventArgs e)
  78. {
  79. #region RGV03轨道边框
  80. if (e.Row == 4 && e.Column == 2)
  81. {
  82. float x = e.CellBounds.Location.X;
  83. float x2 = e.CellBounds.Right;
  84. float y = e.CellBounds.Location.Y;
  85. float y2 = e.CellBounds.Bottom;
  86. e.Graphics.DrawLine(new Pen(Color.Blue), x, y, x2, y);//横线
  87. }
  88. if (e.Row >= 4 && e.Row <= 18 && e.Column == 2)
  89. {
  90. float x = e.CellBounds.Location.X;
  91. float x2 = e.CellBounds.Right;
  92. float y = e.CellBounds.Location.Y;
  93. float y2 = e.CellBounds.Bottom;
  94. e.Graphics.DrawLine(new Pen(Color.Blue), x, y, x, y2);//竖线
  95. }
  96. if (e.Row >= 4 && e.Row <= 18 && e.Column == 3)
  97. {
  98. float x = e.CellBounds.Location.X;
  99. float x2 = e.CellBounds.Right;
  100. float y = e.CellBounds.Location.Y;
  101. float y2 = e.CellBounds.Bottom;
  102. e.Graphics.DrawLine(new Pen(Color.Blue), x, y, x, y2);//竖线
  103. }
  104. if (e.Row == 19 && e.Column == 2)
  105. {
  106. float x = e.CellBounds.Location.X;
  107. float x2 = e.CellBounds.Right;
  108. float y = e.CellBounds.Location.Y;
  109. float y2 = e.CellBounds.Bottom;
  110. e.Graphics.DrawLine(new Pen(Color.Blue), x, y, x2, y);//横线
  111. }
  112. #endregion;
  113. }
  114. }
  115. }