123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118 |
- using CCWin;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.Linq;
- using System.Reflection;
- using System.Text;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- namespace WCS_Client.From
- {
- public partial class Form_materInMontior : Form
- {
- public Form_materInMontior()
- {
- InitializeComponent();
- Init();
- }
- private static Form_materInMontior childFromInstanc;
- public static Form_materInMontior ChildFromInstanc
- {
- get
- {
- if (childFromInstanc == null || childFromInstanc.IsDisposed)
- {
- childFromInstanc = new Form_materInMontior();
- }
- return childFromInstanc;
- }
- }
- private void Init()
- {
- conveyor_1080.button1.Text = "1080";
- conveyor_1081.button1.Text = "1081";
- conveyor_1082.button1.Text = "1082";
- conveyor_1083.button1.Text = "1083";
- conveyor_1084.button1.Text = "1084";
- conveyor_1085.button1.Text = "1085";
- rgv04.btn02.Text = "1087";
- rgv04.btn01.Text = "1086";
- conveyor_1090.button1.Text = "1090";
- conveyor_1091.button1.Text = "1091";
- conveyor_1092.button1.Text = "1092";
- conveyor_1093.button1.Text = "1093";
- conveyor_1094.button1.Text = "1094";
- conveyor_1095.button1.Text = "1095";
- conveyor_1096.button1.Text = "1096";
- conveyor_1097.button1.Text = "1097";
- conveyor_1098.button1.Text = "1098";
- conveyor_1099.button1.Text = "1099";
- conveyor_1100.button1.Text = "1100";
- conveyor_1101.button1.Text = "1101";
- conveyor_1102.button1.Text = "1102";
- conveyor_1103.button1.Text = "1103";
- conveyor_1116.button1.Text = "1116";
- conveyor_1120.button1.Text = "1120";
- conveyor_1121.button1.Text = "1121";
- conveyor_1123.button1.Text = "1123";
- conveyor_1124.button1.Text = "1124";
- conveyor_1126.button1.Text = "1126";
- conveyor_1127.button1.Text = "1127";
- conveyor_1128.button1.Text = "1128";
- conveyor_1130.button1.Text = "1130";
- conveyor_1129.button1.Text = "1129";
- conveyor_1132.button1.Text = "1132";
- conveyor_1133.button1.Text = "1133";
- conveyor_1134.button1.Text = "1134";
- conveyor_1136.button1.Text = "1136";
- conveyor_1137.button1.Text = "1137";
- conveyor_1112.button1.Text = "1114";
- }
- private void tableLayoutPanel1_Paint(object sender, PaintEventArgs e)
- {
- }
- private void tableLayoutPanel1_CellPaint(object sender, TableLayoutCellPaintEventArgs e)
- {
- #region RGV03轨道边框
- if (e.Row == 4 && e.Column == 2)
- {
- float x = e.CellBounds.Location.X;
- float x2 = e.CellBounds.Right;
- float y = e.CellBounds.Location.Y;
- float y2 = e.CellBounds.Bottom;
- e.Graphics.DrawLine(new Pen(Color.Blue), x, y, x2, y);//横线
- }
- if (e.Row >= 4 && e.Row <= 18 && e.Column == 2)
- {
- float x = e.CellBounds.Location.X;
- float x2 = e.CellBounds.Right;
- float y = e.CellBounds.Location.Y;
- float y2 = e.CellBounds.Bottom;
- e.Graphics.DrawLine(new Pen(Color.Blue), x, y, x, y2);//竖线
- }
- if (e.Row >= 4 && e.Row <= 18 && e.Column == 3)
- {
- float x = e.CellBounds.Location.X;
- float x2 = e.CellBounds.Right;
- float y = e.CellBounds.Location.Y;
- float y2 = e.CellBounds.Bottom;
- e.Graphics.DrawLine(new Pen(Color.Blue), x, y, x, y2);//竖线
- }
- if (e.Row == 19 && e.Column == 2)
- {
- float x = e.CellBounds.Location.X;
- float x2 = e.CellBounds.Right;
- float y = e.CellBounds.Location.Y;
- float y2 = e.CellBounds.Bottom;
- e.Graphics.DrawLine(new Pen(Color.Blue), x, y, x2, y);//横线
- }
- #endregion;
- }
- }
- }
|