private void pictureBox2_Click(object sender, EventArgs e) { if (valueCodeConsignment.Visible == false) { valueCodeConsignment.Visible = true; return; } else { if (valueCodeConsignment.Text != "Код партії" && valueCodeConsignment.Text != "") { StandartButton(); if (Main.sQLFunction.CheckProcess(valueCodeConsignment.Text)) { RefrigeratorClass refrigeratorSearch = Main.sQLFunction.SearchConsignment(valueCodeConsignment.Text); Point point = mapaClass.SearchLocationConsignment(refrigeratorSearch.Rows, refrigeratorSearch.Column, refrigeratorSearch.Camera); ClickButton(point, refrigeratorSearch.Storey); valueCodeConsignment.Text = ""; } else { MessageBox.Show("Не знайдено партію"); valueCodeConsignment.Text = ""; } } } }
void CalculationBoxs(Button panel) { refrigerator = mapaClass.CalculationBox(panel); panelConsignment.Visible = true; if (panel.Location.X < 590) { panelConsignment.Location = new Point(panel.Location.X + panel.Width + 1, panel.Location.Y - 76); } else { panelConsignment.Location = new Point(panel.Location.X - 179, panel.Location.Y - 76); } }
public Refrigerator() { InitializeComponent(); refrigeratorClass = new RefrigeratorClass(); }