public MachineProgressViewer(BeamCutDevice bmachine) { try { InitializeComponent(); bdevice = new BeamCutDevice(); bdevice = bmachine; BeamCutQuery = new BeamCutQuery(_SERVER.ServerName.Database); var orders = BeamCutQuery.GetAllBDeviceOrders(bmachine.id); OrderTab.Controls.Clear(); OrderDetail = new OrderDetail(orders); OrderTab.Controls.Add(OrderDetail); OrderDetail.Dock = DockStyle.Fill; if (startTime.Value.DayOfYear > stopTime.Value.DayOfYear) { return; } UpdateProgress(); } catch { } }