diff --git a/AgroBase/.vs/AgroBase/FileContentIndex/0349cb14-edbb-4c8b-ba96-9730e6c581d8.vsidx b/AgroBase/.vs/AgroBase/FileContentIndex/0349cb14-edbb-4c8b-ba96-9730e6c581d8.vsidx deleted file mode 100644 index 0078defe8..000000000 Binary files a/AgroBase/.vs/AgroBase/FileContentIndex/0349cb14-edbb-4c8b-ba96-9730e6c581d8.vsidx and /dev/null differ diff --git a/AgroBase/.vs/AgroBase/FileContentIndex/0d8d8ee1-5908-4c74-b9f5-6ad2e625d1c2.vsidx b/AgroBase/.vs/AgroBase/FileContentIndex/0d8d8ee1-5908-4c74-b9f5-6ad2e625d1c2.vsidx deleted file mode 100644 index f03673539..000000000 Binary files a/AgroBase/.vs/AgroBase/FileContentIndex/0d8d8ee1-5908-4c74-b9f5-6ad2e625d1c2.vsidx and /dev/null differ diff --git a/AgroBase/.vs/AgroBase/FileContentIndex/5ee32f07-dcf2-481b-ac4e-d9d8fac1ca4f.vsidx b/AgroBase/.vs/AgroBase/FileContentIndex/5ee32f07-dcf2-481b-ac4e-d9d8fac1ca4f.vsidx new file mode 100644 index 000000000..8cad54d0e Binary files /dev/null and b/AgroBase/.vs/AgroBase/FileContentIndex/5ee32f07-dcf2-481b-ac4e-d9d8fac1ca4f.vsidx differ diff --git a/AgroBase/.vs/AgroBase/FileContentIndex/6f25debf-1ee5-4bc9-ae83-7b5cc1a2274b.vsidx b/AgroBase/.vs/AgroBase/FileContentIndex/6f25debf-1ee5-4bc9-ae83-7b5cc1a2274b.vsidx deleted file mode 100644 index de2886760..000000000 Binary files a/AgroBase/.vs/AgroBase/FileContentIndex/6f25debf-1ee5-4bc9-ae83-7b5cc1a2274b.vsidx and /dev/null differ diff --git a/AgroBase/.vs/AgroBase/FileContentIndex/8a5d3fca-1e37-4d72-8e20-34a3e1be7dfa.vsidx b/AgroBase/.vs/AgroBase/FileContentIndex/8a5d3fca-1e37-4d72-8e20-34a3e1be7dfa.vsidx new file mode 100644 index 000000000..1c0c3d122 Binary files /dev/null and b/AgroBase/.vs/AgroBase/FileContentIndex/8a5d3fca-1e37-4d72-8e20-34a3e1be7dfa.vsidx differ diff --git a/AgroBase/.vs/AgroBase/FileContentIndex/8d467802-c99d-4e65-a856-7d09f7096a13.vsidx b/AgroBase/.vs/AgroBase/FileContentIndex/8d467802-c99d-4e65-a856-7d09f7096a13.vsidx new file mode 100644 index 000000000..4884b5031 Binary files /dev/null and b/AgroBase/.vs/AgroBase/FileContentIndex/8d467802-c99d-4e65-a856-7d09f7096a13.vsidx differ diff --git a/AgroBase/.vs/AgroBase/FileContentIndex/9414bd8a-8fba-45ed-9a9a-e3c2ab21001a.vsidx b/AgroBase/.vs/AgroBase/FileContentIndex/9414bd8a-8fba-45ed-9a9a-e3c2ab21001a.vsidx new file mode 100644 index 000000000..6a2a95632 Binary files /dev/null and b/AgroBase/.vs/AgroBase/FileContentIndex/9414bd8a-8fba-45ed-9a9a-e3c2ab21001a.vsidx differ diff --git a/AgroBase/.vs/AgroBase/FileContentIndex/bf7d3746-92bc-4ca3-9100-98bf0fbde926.vsidx b/AgroBase/.vs/AgroBase/FileContentIndex/bf7d3746-92bc-4ca3-9100-98bf0fbde926.vsidx deleted file mode 100644 index 77bcdf58c..000000000 Binary files a/AgroBase/.vs/AgroBase/FileContentIndex/bf7d3746-92bc-4ca3-9100-98bf0fbde926.vsidx and /dev/null differ diff --git a/AgroBase/.vs/AgroBase/v17/.suo b/AgroBase/.vs/AgroBase/v17/.suo index c1bbfc7ae..d6b9acdf3 100644 Binary files a/AgroBase/.vs/AgroBase/v17/.suo and b/AgroBase/.vs/AgroBase/v17/.suo differ diff --git a/AgroBase/AgroBase/.vs/AgroBase.csproj.dtbcache.json b/AgroBase/AgroBase/.vs/AgroBase.csproj.dtbcache.json index a5aec26c8..99d7b17c9 100644 --- a/AgroBase/AgroBase/.vs/AgroBase.csproj.dtbcache.json +++ b/AgroBase/AgroBase/.vs/AgroBase.csproj.dtbcache.json @@ -1 +1 @@ -{"RootPath":"C:\\ZendionInc\\agrobot_base\\AgroBase\\AgroBase","ProjectFileName":"AgroBase.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"Forms\\Atuador\\frmAtuCalibragem.cs"},{"SourceFile":"Forms\\Atuador\\frmAtuCalibragem.Designer.cs"},{"SourceFile":"Forms\\Atuador\\frmAtuConfig.cs"},{"SourceFile":"Forms\\Atuador\\frmAtuConfig.Designer.cs"},{"SourceFile":"Forms\\Direcional\\frmDirConfig.cs"},{"SourceFile":"Forms\\Direcional\\frmDirConfig.Designer.cs"},{"SourceFile":"Forms\\Direcional\\frmDirPlot.cs"},{"SourceFile":"Forms\\Direcional\\frmDirPlot.Designer.cs"},{"SourceFile":"Forms\\frmAcompanhamento.cs"},{"SourceFile":"Forms\\frmAcompanhamento.Designer.cs"},{"SourceFile":"Forms\\Atuador\\frmAtuCamera.cs"},{"SourceFile":"Forms\\Atuador\\frmAtuCamera.Designer.cs"},{"SourceFile":"Forms\\frmBLD.cs"},{"SourceFile":"Forms\\frmBLD.Designer.cs"},{"SourceFile":"Forms\\frmGPS.cs"},{"SourceFile":"Forms\\frmGPS.Designer.cs"},{"SourceFile":"Forms\\frmKinect.cs"},{"SourceFile":"Forms\\frmKinect.Designer.cs"},{"SourceFile":"Forms\\frmLoraConfig.cs"},{"SourceFile":"Forms\\frmLoraConfig.Designer.cs"},{"SourceFile":"Forms\\frmMapa.cs"},{"SourceFile":"Forms\\frmMapa.Designer.cs"},{"SourceFile":"Forms\\frmMKS.cs"},{"SourceFile":"Forms\\frmMKS.Designer.cs"},{"SourceFile":"Forms\\frmMvdConfig.cs"},{"SourceFile":"Forms\\frmMvdConfig.Designer.cs"},{"SourceFile":"Forms\\frmPinout.cs"},{"SourceFile":"Forms\\frmPinout.Designer.cs"},{"SourceFile":"Forms\\frmSimulacaoMapaGPS.cs"},{"SourceFile":"Forms\\frmSimulacaoMapaGPS.Designer.cs"},{"SourceFile":"Forms\\frmWT901C.cs"},{"SourceFile":"Forms\\frmWT901C.Designer.cs"},{"SourceFile":"Forms\\IHM\\frmIHM.cs"},{"SourceFile":"Forms\\IHM\\frmIHM.Designer.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovCamera.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovCamera.Designer.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovDiagnosticos.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovDiagnosticos.Designer.cs"},{"SourceFile":"Forms\\frmInstancial.cs"},{"SourceFile":"Forms\\frmInstancial.Designer.cs"},{"SourceFile":"Forms\\frmJoystick.cs"},{"SourceFile":"Forms\\frmJoystick.Designer.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovConfig.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovConfig.Designer.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovPlot.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovPlot.Designer.cs"},{"SourceFile":"Forms\\Operacoes\\frmInicioOperacao.cs"},{"SourceFile":"Forms\\Operacoes\\frmInicioOperacao.Designer.cs"},{"SourceFile":"Forms\\Operacoes\\frmOperacaoManual.cs"},{"SourceFile":"Forms\\Operacoes\\frmOperacaoManual.Designer.cs"},{"SourceFile":"Forms\\Operacoes\\frmOperacaoMapaGPS.cs"},{"SourceFile":"Forms\\Operacoes\\frmOperacaoSeguidorLinha.Designer.cs"},{"SourceFile":"Forms\\Operacoes\\frmParametrizacaoOperacao.cs"},{"SourceFile":"Forms\\Operacoes\\frmParametrizacaoOperacao.Designer.cs"},{"SourceFile":"Forms\\Operacoes\\frmResultadosOperacao.cs"},{"SourceFile":"Forms\\Operacoes\\frmResultadosOperacao.Designer.cs"},{"SourceFile":"Forms\\Sensoriamento\\frmSenCamera.cs"},{"SourceFile":"Forms\\Sensoriamento\\frmSenCamera.Designer.cs"},{"SourceFile":"Forms\\Sensoriamento\\frmSenConfig.cs"},{"SourceFile":"Forms\\Sensoriamento\\frmSenConfig.Designer.cs"},{"SourceFile":"Forms\\Sensoriamento\\frmSonar.cs"},{"SourceFile":"Forms\\Sensoriamento\\frmSonar.Designer.cs"},{"SourceFile":"Models\\AlarmeModel.cs"},{"SourceFile":"Models\\BLD300RModel.cs"},{"SourceFile":"Models\\CameraCaminhoModel.cs"},{"SourceFile":"Models\\CameraModel.cs"},{"SourceFile":"Models\\CameraSoloModel.cs"},{"SourceFile":"Models\\GPSModel.cs"},{"SourceFile":"Models\\GraficoInterativoModel.cs"},{"SourceFile":"Models\\LoRaModel.cs"},{"SourceFile":"Models\\MapasModel.cs"},{"SourceFile":"Models\\MensagemFilaModel.cs"},{"SourceFile":"Models\\Modules\\AtuadorModel.cs"},{"SourceFile":"Models\\Modules\\DirecionalModel.cs"},{"SourceFile":"Models\\Modules\\DispositivoBaseModel.cs"},{"SourceFile":"Models\\Enuns.cs"},{"SourceFile":"Models\\GeneralJoystick.cs"},{"SourceFile":"Models\\Modules\\MovimentacaoModel.cs"},{"SourceFile":"Models\\Modules\\MovimentacaoUnificadoModel.cs"},{"SourceFile":"Models\\Modules\\PinoutModel.cs"},{"SourceFile":"Models\\Modules\\SensoriamentoModel.cs"},{"SourceFile":"Models\\MotorComum.cs"},{"SourceFile":"Models\\Operacoes\\OperacaoManualModel.cs"},{"SourceFile":"Models\\Operacoes\\OperacaoMapaGPSModel.cs"},{"SourceFile":"Models\\Operacoes\\OperacaoModel.cs"},{"SourceFile":"Models\\PIDModel.cs"},{"SourceFile":"Models\\PZEMModel.cs"},{"SourceFile":"Models\\SonarModel.cs"},{"SourceFile":"Models\\Variaveis.cs"},{"SourceFile":"Models\\WT901CModel.cs"},{"SourceFile":"Services\\APIService.cs"},{"SourceFile":"Services\\BLD300RService.cs"},{"SourceFile":"Services\\CameraService.cs"},{"SourceFile":"Services\\CoulombCounterService.cs"},{"SourceFile":"Services\\DispositivosService.cs"},{"SourceFile":"Forms\\frmPrincipal.cs"},{"SourceFile":"Forms\\frmPrincipal.Designer.cs"},{"SourceFile":"Program.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"Services\\DispositivosServiceFactory.cs"},{"SourceFile":"Services\\FilaService.cs"},{"SourceFile":"Services\\GPSService.cs"},{"SourceFile":"Services\\IDispositivosService.cs"},{"SourceFile":"Services\\LoRaSerializer.cs"},{"SourceFile":"Services\\LoRaService.cs"},{"SourceFile":"Services\\MapasService.cs"},{"SourceFile":"Services\\ModbusService.cs"},{"SourceFile":"Services\\MqttService.cs"},{"SourceFile":"Services\\PythonService.cs"},{"SourceFile":"Services\\PZEMService.cs"},{"SourceFile":"Services\\RS485Service.cs"},{"SourceFile":"Services\\SerialService.cs"},{"SourceFile":"Services\\SocketService.cs"},{"SourceFile":"Services\\WT901CService.cs"},{"SourceFile":"Properties\\Resources.Designer.cs"},{"SourceFile":"Properties\\Settings.Designer.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.7.2.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\AForge.2.2.5\\lib\\AForge.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\AForge.Video.DirectShow.2.2.5\\lib\\AForge.Video.DirectShow.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\AForge.Video.2.2.5\\lib\\AForge.Video.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\CefSharp.Common.119.4.30\\lib\\net462\\CefSharp.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\CefSharp.Common.119.4.30\\lib\\net462\\CefSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\CefSharp.WinForms.119.4.30\\lib\\net462\\CefSharp.WinForms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\Emgu.CV.4.8.1.5350\\lib\\netstandard2.0\\Emgu.CV.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\Microsoft.Bcl.AsyncInterfaces.7.0.0\\lib\\net462\\Microsoft.Bcl.AsyncInterfaces.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\AgroBase\\Microsoft.DirectX.DirectInput.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\AgroBase\\Microsoft.DirectX.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\AgroBase\\bin\\Debug\\Microsoft.Kinect.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\MQTTnet.3.1.1\\lib\\net461\\MQTTnet.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\Newtonsoft.Json.13.0.3\\lib\\net45\\Newtonsoft.Json.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\OpenTK.1.1.2225.0\\lib\\net20\\OpenTK.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\OpenTK.GLControl.1.1.2225.0\\lib\\net20\\OpenTK.GLControl.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\SharpDX.DirectInput.4.2.0\\lib\\net45\\SharpDX.DirectInput.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\SharpDX.4.2.0\\lib\\net45\\SharpDX.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Buffers.4.5.1\\lib\\net461\\System.Buffers.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.CodeDom.8.0.0\\lib\\net462\\System.CodeDom.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.ComponentModel.Composition.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Deployment.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Facades\\System.Drawing.Primitives.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Management.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Memory.4.5.5\\lib\\net461\\System.Memory.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Net.Http.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Numerics.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Numerics.Vectors.4.5.0\\lib\\net46\\System.Numerics.Vectors.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Runtime.CompilerServices.Unsafe.6.0.0\\lib\\net461\\System.Runtime.CompilerServices.Unsafe.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Facades\\System.Runtime.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Facades\\System.Runtime.InteropServices.RuntimeInformation.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Text.Encodings.Web.7.0.0\\lib\\net462\\System.Text.Encodings.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Text.Json.7.0.3\\lib\\net462\\System.Text.Json.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Threading.Tasks.Extensions.4.5.4\\lib\\net461\\System.Threading.Tasks.Extensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.ValueTuple.4.5.0\\lib\\net47\\System.ValueTuple.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Windows.Forms.DataVisualization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Windows.Forms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\System32\\WinMetadata\\Windows.Gaming.winmd","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\ZedGraph.5.1.5\\lib\\ZedGraph.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\ZendionInc\\agrobot_base\\AgroBase\\AgroBase\\bin\\Debug\\AgroBase.exe","OutputItemRelativePath":"AgroBase.exe"},{"OutputItemFullPath":"C:\\ZendionInc\\agrobot_base\\AgroBase\\AgroBase\\bin\\Debug\\AgroBase.pdb","OutputItemRelativePath":"AgroBase.pdb"}],"CopyToOutputEntries":[]} \ No newline at end of file +{"RootPath":"C:\\ZendionInc\\agrobot_base\\AgroBase\\AgroBase","ProjectFileName":"AgroBase.csproj","Configuration":"Debug|AnyCPU","FrameworkPath":"","Sources":[{"SourceFile":"Forms\\Atuador\\frmAtuCalibragem.cs"},{"SourceFile":"Forms\\Atuador\\frmAtuCalibragem.Designer.cs"},{"SourceFile":"Forms\\Atuador\\frmAtuConfig.cs"},{"SourceFile":"Forms\\Atuador\\frmAtuConfig.Designer.cs"},{"SourceFile":"Forms\\Direcional\\frmDirConfig.cs"},{"SourceFile":"Forms\\Direcional\\frmDirConfig.Designer.cs"},{"SourceFile":"Forms\\Direcional\\frmDirPlot.cs"},{"SourceFile":"Forms\\Direcional\\frmDirPlot.Designer.cs"},{"SourceFile":"Forms\\frmAcompanhamento.cs"},{"SourceFile":"Forms\\frmAcompanhamento.Designer.cs"},{"SourceFile":"Forms\\Atuador\\frmAtuCamera.cs"},{"SourceFile":"Forms\\Atuador\\frmAtuCamera.Designer.cs"},{"SourceFile":"Forms\\frmBLD.cs"},{"SourceFile":"Forms\\frmBLD.Designer.cs"},{"SourceFile":"Forms\\frmGPS.cs"},{"SourceFile":"Forms\\frmGPS.Designer.cs"},{"SourceFile":"Forms\\frmKinect.cs"},{"SourceFile":"Forms\\frmKinect.Designer.cs"},{"SourceFile":"Forms\\frmLoraConfig.cs"},{"SourceFile":"Forms\\frmLoraConfig.Designer.cs"},{"SourceFile":"Forms\\frmMapa.cs"},{"SourceFile":"Forms\\frmMapa.Designer.cs"},{"SourceFile":"Forms\\frmMKS.cs"},{"SourceFile":"Forms\\frmMKS.Designer.cs"},{"SourceFile":"Forms\\frmMvdConfig.cs"},{"SourceFile":"Forms\\frmMvdConfig.Designer.cs"},{"SourceFile":"Forms\\frmPinout.cs"},{"SourceFile":"Forms\\frmPinout.Designer.cs"},{"SourceFile":"Forms\\frmSimulacaoMapaGPS.cs"},{"SourceFile":"Forms\\frmSimulacaoMapaGPS.Designer.cs"},{"SourceFile":"Forms\\frmWT901C.cs"},{"SourceFile":"Forms\\frmWT901C.Designer.cs"},{"SourceFile":"Forms\\IHM\\frmDialogoMapa.cs"},{"SourceFile":"Forms\\IHM\\frmDialogoMapa.Designer.cs"},{"SourceFile":"Forms\\IHM\\frmIHM.cs"},{"SourceFile":"Forms\\IHM\\frmIHM.Designer.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovCamera.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovCamera.Designer.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovDiagnosticos.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovDiagnosticos.Designer.cs"},{"SourceFile":"Forms\\frmInstancial.cs"},{"SourceFile":"Forms\\frmInstancial.Designer.cs"},{"SourceFile":"Forms\\frmJoystick.cs"},{"SourceFile":"Forms\\frmJoystick.Designer.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovConfig.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovConfig.Designer.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovPlot.cs"},{"SourceFile":"Forms\\Movimentacao\\frmMovPlot.Designer.cs"},{"SourceFile":"Forms\\IHM\\frmInicioOperacao.cs"},{"SourceFile":"Forms\\IHM\\frmInicioOperacao.Designer.cs"},{"SourceFile":"Forms\\Operacoes\\frmOperacaoManual.cs"},{"SourceFile":"Forms\\Operacoes\\frmOperacaoManual.Designer.cs"},{"SourceFile":"Forms\\Operacoes\\frmOperacaoMapaGPS.cs"},{"SourceFile":"Forms\\Operacoes\\frmOperacaoSeguidorLinha.Designer.cs"},{"SourceFile":"Forms\\Operacoes\\frmParametrizacaoOperacao.cs"},{"SourceFile":"Forms\\Operacoes\\frmParametrizacaoOperacao.Designer.cs"},{"SourceFile":"Forms\\Operacoes\\frmResultadosOperacao.cs"},{"SourceFile":"Forms\\Operacoes\\frmResultadosOperacao.Designer.cs"},{"SourceFile":"Forms\\Sensoriamento\\frmSenCamera.cs"},{"SourceFile":"Forms\\Sensoriamento\\frmSenCamera.Designer.cs"},{"SourceFile":"Forms\\Sensoriamento\\frmSenConfig.cs"},{"SourceFile":"Forms\\Sensoriamento\\frmSenConfig.Designer.cs"},{"SourceFile":"Forms\\Sensoriamento\\frmSonar.cs"},{"SourceFile":"Forms\\Sensoriamento\\frmSonar.Designer.cs"},{"SourceFile":"Models\\AlarmeModel.cs"},{"SourceFile":"Models\\BLD300RModel.cs"},{"SourceFile":"Models\\CameraCaminhoModel.cs"},{"SourceFile":"Models\\CameraModel.cs"},{"SourceFile":"Models\\CameraSoloModel.cs"},{"SourceFile":"Models\\GPSModel.cs"},{"SourceFile":"Models\\GraficoInterativoModel.cs"},{"SourceFile":"Models\\LoRaModel.cs"},{"SourceFile":"Models\\MapasModel.cs"},{"SourceFile":"Models\\MensagemFilaModel.cs"},{"SourceFile":"Models\\MKS057DModel.cs"},{"SourceFile":"Models\\Modules\\AtuadorModel.cs"},{"SourceFile":"Models\\Modules\\DirecionalModel.cs"},{"SourceFile":"Models\\Modules\\DispositivoBaseModel.cs"},{"SourceFile":"Models\\Enuns.cs"},{"SourceFile":"Models\\GeneralJoystick.cs"},{"SourceFile":"Models\\Modules\\MovimentacaoModel.cs"},{"SourceFile":"Models\\Modules\\MovimentacaoUnificadoModel.cs"},{"SourceFile":"Models\\Modules\\PinoutModel.cs"},{"SourceFile":"Models\\Modules\\SensoriamentoModel.cs"},{"SourceFile":"Models\\MotorComum.cs"},{"SourceFile":"Models\\Operacoes\\OperacaoManualModel.cs"},{"SourceFile":"Models\\Operacoes\\OperacaoMapaGPSModel.cs"},{"SourceFile":"Models\\Operacoes\\OperacaoModel.cs"},{"SourceFile":"Models\\Operacoes\\OperacaoParametrosModel.cs"},{"SourceFile":"Models\\PIDModel.cs"},{"SourceFile":"Models\\PZEMModel.cs"},{"SourceFile":"Models\\SonarModel.cs"},{"SourceFile":"Models\\Variaveis.cs"},{"SourceFile":"Models\\WT901CModel.cs"},{"SourceFile":"Services\\APIService.cs"},{"SourceFile":"Services\\BLD300RService.cs"},{"SourceFile":"Services\\CameraService.cs"},{"SourceFile":"Services\\CoulombCounterService.cs"},{"SourceFile":"Services\\DispositivosService.cs"},{"SourceFile":"Forms\\frmPrincipal.cs"},{"SourceFile":"Forms\\frmPrincipal.Designer.cs"},{"SourceFile":"Program.cs"},{"SourceFile":"Properties\\AssemblyInfo.cs"},{"SourceFile":"Services\\DispositivosServiceFactory.cs"},{"SourceFile":"Services\\FilaService.cs"},{"SourceFile":"Services\\GPSService.cs"},{"SourceFile":"Services\\IDispositivosService.cs"},{"SourceFile":"Services\\LoRaSerializer.cs"},{"SourceFile":"Services\\LoRaService.cs"},{"SourceFile":"Services\\MapasService.cs"},{"SourceFile":"Services\\MKS057DService.cs"},{"SourceFile":"Services\\ModbusService.cs"},{"SourceFile":"Services\\MqttService.cs"},{"SourceFile":"Services\\PythonService.cs"},{"SourceFile":"Services\\PZEMService.cs"},{"SourceFile":"Services\\RS485Service.cs"},{"SourceFile":"Services\\SerialService.cs"},{"SourceFile":"Services\\SocketService.cs"},{"SourceFile":"Services\\WT901CService.cs"},{"SourceFile":"Properties\\Resources.Designer.cs"},{"SourceFile":"Properties\\Settings.Designer.cs"},{"SourceFile":"obj\\Debug\\.NETFramework,Version=v4.7.2.AssemblyAttributes.cs"}],"References":[{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\AForge.2.2.5\\lib\\AForge.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\AForge.Video.DirectShow.2.2.5\\lib\\AForge.Video.DirectShow.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\AForge.Video.2.2.5\\lib\\AForge.Video.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\CefSharp.Common.119.4.30\\lib\\net462\\CefSharp.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\CefSharp.Common.119.4.30\\lib\\net462\\CefSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\CefSharp.WinForms.119.4.30\\lib\\net462\\CefSharp.WinForms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\Emgu.CV.4.8.1.5350\\lib\\netstandard2.0\\Emgu.CV.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\Microsoft.Bcl.AsyncInterfaces.7.0.0\\lib\\net462\\Microsoft.Bcl.AsyncInterfaces.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Microsoft.CSharp.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\AgroBase\\Microsoft.DirectX.DirectInput.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\AgroBase\\Microsoft.DirectX.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\AgroBase\\bin\\Debug\\Microsoft.Kinect.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\MQTTnet.3.1.1\\lib\\net461\\MQTTnet.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\mscorlib.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\Newtonsoft.Json.13.0.3\\lib\\net45\\Newtonsoft.Json.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\OpenTK.1.1.2225.0\\lib\\net20\\OpenTK.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\OpenTK.GLControl.1.1.2225.0\\lib\\net20\\OpenTK.GLControl.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\SharpDX.DirectInput.4.2.0\\lib\\net45\\SharpDX.DirectInput.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\SharpDX.4.2.0\\lib\\net45\\SharpDX.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Buffers.4.5.1\\lib\\net461\\System.Buffers.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.CodeDom.8.0.0\\lib\\net462\\System.CodeDom.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.ComponentModel.Composition.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Core.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.DataSetExtensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Data.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Deployment.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Drawing.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Facades\\System.Drawing.Primitives.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Management.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Memory.4.5.5\\lib\\net461\\System.Memory.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Net.Http.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Numerics.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Numerics.Vectors.4.5.0\\lib\\net46\\System.Numerics.Vectors.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Runtime.CompilerServices.Unsafe.6.0.0\\lib\\net461\\System.Runtime.CompilerServices.Unsafe.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Facades\\System.Runtime.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\Facades\\System.Runtime.InteropServices.RuntimeInformation.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Text.Encodings.Web.7.0.0\\lib\\net462\\System.Text.Encodings.Web.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Text.Json.7.0.3\\lib\\net462\\System.Text.Json.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.Threading.Tasks.Extensions.4.5.4\\lib\\net461\\System.Threading.Tasks.Extensions.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\System.ValueTuple.4.5.0\\lib\\net47\\System.ValueTuple.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Windows.Forms.DataVisualization.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Windows.Forms.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Program Files (x86)\\Reference Assemblies\\Microsoft\\Framework\\.NETFramework\\v4.7.2\\System.Xml.Linq.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\Windows\\System32\\WinMetadata\\Windows.Gaming.winmd","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""},{"Reference":"C:\\ZendionInc\\agrobot_base\\AgroBase\\packages\\ZedGraph.5.1.5\\lib\\ZedGraph.dll","ResolvedFrom":"","OriginalItemSpec":"","Name":"","EmbedInteropTypes":false,"CopyLocal":false,"IsProjectReference":false,"ProjectPath":""}],"Analyzers":[],"Outputs":[{"OutputItemFullPath":"C:\\ZendionInc\\agrobot_base\\AgroBase\\AgroBase\\bin\\Debug\\AgroBase.exe","OutputItemRelativePath":"AgroBase.exe"},{"OutputItemFullPath":"C:\\ZendionInc\\agrobot_base\\AgroBase\\AgroBase\\bin\\Debug\\AgroBase.pdb","OutputItemRelativePath":"AgroBase.pdb"}],"CopyToOutputEntries":[]} \ No newline at end of file diff --git a/AgroBase/AgroBase/AgroBase.csproj b/AgroBase/AgroBase/AgroBase.csproj index 6d3646f57..5a470d0a0 100644 --- a/AgroBase/AgroBase/AgroBase.csproj +++ b/AgroBase/AgroBase/AgroBase.csproj @@ -265,6 +265,18 @@ frmWT901C.cs + + Form + + + frmAjustes.cs + + + Form + + + frmDialogoMapa.cs + Form @@ -307,10 +319,10 @@ frmMovPlot.cs - + Form - + frmInicioOperacao.cs @@ -379,6 +391,7 @@ + @@ -413,13 +426,26 @@ + + + + + + + + + + + + + Always @@ -615,6 +641,12 @@ frmWT901C.cs + + frmAjustes.cs + + + frmDialogoMapa.cs + frmIHM.cs @@ -639,7 +671,7 @@ frmJoystick.cs - + frmInicioOperacao.cs @@ -790,7 +822,6 @@ - diff --git a/AgroBase/AgroBase/Forms/Atuador/frmAtuCalibragem.cs b/AgroBase/AgroBase/Forms/Atuador/frmAtuCalibragem.cs index c54b4c256..8473d4ce6 100644 --- a/AgroBase/AgroBase/Forms/Atuador/frmAtuCalibragem.cs +++ b/AgroBase/AgroBase/Forms/Atuador/frmAtuCalibragem.cs @@ -30,7 +30,7 @@ namespace AgroBase.Forms.Atuador { PopularBicos(); - nudPressaoSP.Value = Convert.ToInt32(DispAtu.Dados.BombaPressurizadora.PressaoSP); + nudPressaoSP.Value = Convert.ToInt32(Variaveis.OperacaoEmAndamento.Controle.PressaoLinha); txtMMassaRef.Text = DispAtu.Dados._MassaRef.ToString(); txtMLeituraRef.Text = DispAtu.Dados._MassaLeituraRef.ToString(); txtPressaoVmin.Text = DispAtu.Dados._PressaoVmin.ToString(); @@ -160,7 +160,7 @@ namespace AgroBase.Forms.Atuador private void nudPressaoSP_ValueChanged(object sender, EventArgs e) { - DispAtu.Dados.BombaPressurizadora.PressaoSP = Convert.ToInt32(((NumericUpDown)sender).Value); + Variaveis.OperacaoEmAndamento.Controle.PressaoLinha = Convert.ToInt32(((NumericUpDown)sender).Value); EnviarProtocoloComandoBomba(); } @@ -227,7 +227,7 @@ namespace AgroBase.Forms.Atuador private void btnSalvar_Click(object sender, EventArgs e) { - DispAtu.Dados.BombaPressurizadora.PressaoSP = Convert.ToDouble(nudPressaoSP.Value); + Variaveis.OperacaoEmAndamento.Controle.PressaoLinha = Convert.ToDouble(nudPressaoSP.Value); DispAtu.Dados._MassaRef = Convert.ToDouble(txtMMassaRef.Text); DispAtu.Dados._MassaLeituraRef = Convert.ToDouble(txtMLeituraRef.Text); DispAtu.Dados._PressaoVmin = Convert.ToDouble(txtPressaoVmin.Text); diff --git a/AgroBase/AgroBase/Forms/Atuador/frmAtuConfig.cs b/AgroBase/AgroBase/Forms/Atuador/frmAtuConfig.cs index cfa02babc..3002319e0 100644 --- a/AgroBase/AgroBase/Forms/Atuador/frmAtuConfig.cs +++ b/AgroBase/AgroBase/Forms/Atuador/frmAtuConfig.cs @@ -35,7 +35,7 @@ namespace AgroBase.Forms.Atuador chbBicosAtuacao.Checked = Disp.Dados.AtuacaoNivelAlto; nudBicosQtd.Value = Disp.Dados.QuantidadeBicos; txtDensidade.Text = Disp.Dados.DensidadeHerbicida.ToString("0.00"); - nudCapMax.Value = Convert.ToInt32(Disp.Dados.CapacidadeReservatorio); + nudCapMax.Value = Convert.ToInt32(Variaveis.OperacaoEmAndamento.CapacidadeReservatorio); } private void frmAtuConfig_FormClosing(object sender, FormClosingEventArgs e) @@ -49,7 +49,7 @@ namespace AgroBase.Forms.Atuador Disp.Dados.AtuacaoNivelAlto = chbBicosAtuacao.Checked; Disp.Dados.QuantidadeBicos = Convert.ToInt32(nudBicosQtd.Value); Disp.Dados.DensidadeHerbicida = Convert.ToDouble(txtDensidade.Text.Replace(".", ",")); - Disp.Dados.CapacidadeReservatorio = Convert.ToDouble(nudCapMax.Value); + Variaveis.OperacaoEmAndamento.CapacidadeReservatorio = Convert.ToDouble(nudCapMax.Value); Disp.SalvarParametros(Disp.Dados); } diff --git a/AgroBase/AgroBase/Forms/IHM/frmAjustes.Designer.cs b/AgroBase/AgroBase/Forms/IHM/frmAjustes.Designer.cs new file mode 100644 index 000000000..67dcefa89 --- /dev/null +++ b/AgroBase/AgroBase/Forms/IHM/frmAjustes.Designer.cs @@ -0,0 +1,535 @@ +namespace AgroBase.Forms.IHM +{ + partial class frmAjustes + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.pnlEsquerda = new System.Windows.Forms.Panel(); + this.lblCameras = new System.Windows.Forms.Label(); + this.lblEsquerda = new System.Windows.Forms.Label(); + this.lblDireita = new System.Windows.Forms.Label(); + this.pnlDireita = new System.Windows.Forms.Panel(); + this.pnlCentro = new System.Windows.Forms.Panel(); + this.lblCentro = new System.Windows.Forms.Label(); + this.cmbS0 = new System.Windows.Forms.ComboBox(); + this.cmbC = new System.Windows.Forms.ComboBox(); + this.cmbS1 = new System.Windows.Forms.ComboBox(); + this.lblComunicacao = new System.Windows.Forms.Label(); + this.picVoltar = new System.Windows.Forms.PictureBox(); + this.picSalvar = new System.Windows.Forms.PictureBox(); + this.lblCanal = new System.Windows.Forms.Label(); + this.txtCanal = new System.Windows.Forms.TextBox(); + this.lblEndereco = new System.Windows.Forms.Label(); + this.txtEndereco = new System.Windows.Forms.TextBox(); + this.cmbPower = new System.Windows.Forms.ComboBox(); + this.lblPotencia = new System.Windows.Forms.Label(); + this.cmbWorCycle = new System.Windows.Forms.ComboBox(); + this.lblWorCycle = new System.Windows.Forms.Label(); + this.cmbTransmissao = new System.Windows.Forms.ComboBox(); + this.lblTransmissao = new System.Windows.Forms.Label(); + this.cmbPacketSize = new System.Windows.Forms.ComboBox(); + this.lblTamanhoPacote = new System.Windows.Forms.Label(); + this.cmbAirRate = new System.Windows.Forms.ComboBox(); + this.lblAirRate = new System.Windows.Forms.Label(); + this.cmbBaudRate = new System.Windows.Forms.ComboBox(); + this.lblBaudRate = new System.Windows.Forms.Label(); + this.picLer = new System.Windows.Forms.PictureBox(); + this.picGravar = new System.Windows.Forms.PictureBox(); + this.picAtualizar = new System.Windows.Forms.PictureBox(); + this.picEsquerda = new System.Windows.Forms.PictureBox(); + this.picCentro = new System.Windows.Forms.PictureBox(); + this.picDireita = new System.Windows.Forms.PictureBox(); + this.pnlEsquerda.SuspendLayout(); + this.pnlDireita.SuspendLayout(); + this.pnlCentro.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.picVoltar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picSalvar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picLer)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picGravar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picAtualizar)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picEsquerda)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picCentro)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picDireita)).BeginInit(); + this.SuspendLayout(); + // + // pnlEsquerda + // + this.pnlEsquerda.Controls.Add(this.picEsquerda); + this.pnlEsquerda.Location = new System.Drawing.Point(101, 71); + this.pnlEsquerda.Name = "pnlEsquerda"; + this.pnlEsquerda.Size = new System.Drawing.Size(225, 172); + this.pnlEsquerda.TabIndex = 0; + // + // lblCameras + // + this.lblCameras.AutoSize = true; + this.lblCameras.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblCameras.Location = new System.Drawing.Point(97, 9); + this.lblCameras.Name = "lblCameras"; + this.lblCameras.Size = new System.Drawing.Size(85, 24); + this.lblCameras.TabIndex = 2; + this.lblCameras.Text = "Câmeras"; + // + // lblEsquerda + // + this.lblEsquerda.AutoSize = true; + this.lblEsquerda.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.lblEsquerda.Location = new System.Drawing.Point(123, 48); + this.lblEsquerda.Name = "lblEsquerda"; + this.lblEsquerda.Size = new System.Drawing.Size(178, 20); + this.lblEsquerda.TabIndex = 3; + this.lblEsquerda.Text = "Esquerda Pulverizador"; + // + // lblDireita + // + this.lblDireita.AutoSize = true; + this.lblDireita.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.lblDireita.Location = new System.Drawing.Point(595, 48); + this.lblDireita.Name = "lblDireita"; + this.lblDireita.Size = new System.Drawing.Size(157, 20); + this.lblDireita.TabIndex = 5; + this.lblDireita.Text = "Direita Pulverizador"; + // + // pnlDireita + // + this.pnlDireita.Controls.Add(this.picDireita); + this.pnlDireita.Location = new System.Drawing.Point(563, 71); + this.pnlDireita.Name = "pnlDireita"; + this.pnlDireita.Size = new System.Drawing.Size(225, 172); + this.pnlDireita.TabIndex = 4; + // + // pnlCentro + // + this.pnlCentro.Controls.Add(this.picCentro); + this.pnlCentro.Location = new System.Drawing.Point(332, 71); + this.pnlCentro.Name = "pnlCentro"; + this.pnlCentro.Size = new System.Drawing.Size(225, 172); + this.pnlCentro.TabIndex = 1; + // + // lblCentro + // + this.lblCentro.AutoSize = true; + this.lblCentro.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.lblCentro.Location = new System.Drawing.Point(374, 48); + this.lblCentro.Name = "lblCentro"; + this.lblCentro.Size = new System.Drawing.Size(132, 20); + this.lblCentro.TabIndex = 6; + this.lblCentro.Text = "Caminho Frontal"; + // + // cmbS0 + // + this.cmbS0.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbS0.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.cmbS0.FormattingEnabled = true; + this.cmbS0.Location = new System.Drawing.Point(101, 249); + this.cmbS0.Name = "cmbS0"; + this.cmbS0.Size = new System.Drawing.Size(225, 28); + this.cmbS0.TabIndex = 7; + // + // cmbC + // + this.cmbC.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbC.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.cmbC.FormattingEnabled = true; + this.cmbC.Location = new System.Drawing.Point(332, 249); + this.cmbC.Name = "cmbC"; + this.cmbC.Size = new System.Drawing.Size(225, 28); + this.cmbC.TabIndex = 8; + // + // cmbS1 + // + this.cmbS1.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbS1.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.cmbS1.FormattingEnabled = true; + this.cmbS1.Location = new System.Drawing.Point(563, 249); + this.cmbS1.Name = "cmbS1"; + this.cmbS1.Size = new System.Drawing.Size(225, 28); + this.cmbS1.TabIndex = 9; + // + // lblComunicacao + // + this.lblComunicacao.AutoSize = true; + this.lblComunicacao.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.lblComunicacao.Location = new System.Drawing.Point(97, 303); + this.lblComunicacao.Name = "lblComunicacao"; + this.lblComunicacao.Size = new System.Drawing.Size(127, 24); + this.lblComunicacao.TabIndex = 10; + this.lblComunicacao.Text = "Comunicação"; + // + // picVoltar + // + this.picVoltar.Image = global::AgroBase.Properties.Resources.voltar; + this.picVoltar.Location = new System.Drawing.Point(12, 12); + this.picVoltar.Name = "picVoltar"; + this.picVoltar.Size = new System.Drawing.Size(65, 65); + this.picVoltar.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picVoltar.TabIndex = 11; + this.picVoltar.TabStop = false; + // + // picSalvar + // + this.picSalvar.Image = global::AgroBase.Properties.Resources.salvar; + this.picSalvar.Location = new System.Drawing.Point(12, 212); + this.picSalvar.Name = "picSalvar"; + this.picSalvar.Size = new System.Drawing.Size(65, 65); + this.picSalvar.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picSalvar.TabIndex = 12; + this.picSalvar.TabStop = false; + // + // lblCanal + // + this.lblCanal.AutoSize = true; + this.lblCanal.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.25F); + this.lblCanal.Location = new System.Drawing.Point(127, 436); + this.lblCanal.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lblCanal.Name = "lblCanal"; + this.lblCanal.Size = new System.Drawing.Size(60, 17); + this.lblCanal.TabIndex = 32; + this.lblCanal.Text = "Channel"; + // + // txtCanal + // + this.txtCanal.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.txtCanal.Location = new System.Drawing.Point(247, 431); + this.txtCanal.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.txtCanal.Name = "txtCanal"; + this.txtCanal.Size = new System.Drawing.Size(155, 26); + this.txtCanal.TabIndex = 31; + // + // lblEndereco + // + this.lblEndereco.AutoSize = true; + this.lblEndereco.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.25F); + this.lblEndereco.Location = new System.Drawing.Point(127, 406); + this.lblEndereco.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lblEndereco.Name = "lblEndereco"; + this.lblEndereco.Size = new System.Drawing.Size(60, 17); + this.lblEndereco.TabIndex = 30; + this.lblEndereco.Text = "Address"; + // + // txtEndereco + // + this.txtEndereco.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.txtEndereco.Location = new System.Drawing.Point(247, 401); + this.txtEndereco.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.txtEndereco.Name = "txtEndereco"; + this.txtEndereco.Size = new System.Drawing.Size(155, 26); + this.txtEndereco.TabIndex = 29; + // + // cmbPower + // + this.cmbPower.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbPower.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.cmbPower.FormattingEnabled = true; + this.cmbPower.Location = new System.Drawing.Point(563, 433); + this.cmbPower.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.cmbPower.Name = "cmbPower"; + this.cmbPower.Size = new System.Drawing.Size(155, 28); + this.cmbPower.TabIndex = 28; + // + // lblPotencia + // + this.lblPotencia.AutoSize = true; + this.lblPotencia.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.25F); + this.lblPotencia.Location = new System.Drawing.Point(444, 438); + this.lblPotencia.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lblPotencia.Name = "lblPotencia"; + this.lblPotencia.Size = new System.Drawing.Size(47, 17); + this.lblPotencia.TabIndex = 27; + this.lblPotencia.Text = "Power"; + // + // cmbWorCycle + // + this.cmbWorCycle.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbWorCycle.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.cmbWorCycle.FormattingEnabled = true; + this.cmbWorCycle.Location = new System.Drawing.Point(563, 401); + this.cmbWorCycle.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.cmbWorCycle.Name = "cmbWorCycle"; + this.cmbWorCycle.Size = new System.Drawing.Size(155, 28); + this.cmbWorCycle.TabIndex = 26; + // + // lblWorCycle + // + this.lblWorCycle.AutoSize = true; + this.lblWorCycle.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.25F); + this.lblWorCycle.Location = new System.Drawing.Point(444, 406); + this.lblWorCycle.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lblWorCycle.Name = "lblWorCycle"; + this.lblWorCycle.Size = new System.Drawing.Size(75, 17); + this.lblWorCycle.TabIndex = 25; + this.lblWorCycle.Text = "Wor Clycle"; + // + // cmbTransmissao + // + this.cmbTransmissao.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbTransmissao.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.cmbTransmissao.FormattingEnabled = true; + this.cmbTransmissao.Location = new System.Drawing.Point(247, 369); + this.cmbTransmissao.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.cmbTransmissao.Name = "cmbTransmissao"; + this.cmbTransmissao.Size = new System.Drawing.Size(155, 28); + this.cmbTransmissao.TabIndex = 24; + // + // lblTransmissao + // + this.lblTransmissao.AutoSize = true; + this.lblTransmissao.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.25F); + this.lblTransmissao.Location = new System.Drawing.Point(127, 374); + this.lblTransmissao.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lblTransmissao.Name = "lblTransmissao"; + this.lblTransmissao.Size = new System.Drawing.Size(89, 17); + this.lblTransmissao.TabIndex = 23; + this.lblTransmissao.Text = "Transmissão"; + // + // cmbPacketSize + // + this.cmbPacketSize.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbPacketSize.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.cmbPacketSize.FormattingEnabled = true; + this.cmbPacketSize.Location = new System.Drawing.Point(563, 369); + this.cmbPacketSize.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.cmbPacketSize.Name = "cmbPacketSize"; + this.cmbPacketSize.Size = new System.Drawing.Size(155, 28); + this.cmbPacketSize.TabIndex = 22; + // + // lblTamanhoPacote + // + this.lblTamanhoPacote.AutoSize = true; + this.lblTamanhoPacote.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.25F); + this.lblTamanhoPacote.Location = new System.Drawing.Point(444, 374); + this.lblTamanhoPacote.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lblTamanhoPacote.Name = "lblTamanhoPacote"; + this.lblTamanhoPacote.Size = new System.Drawing.Size(82, 17); + this.lblTamanhoPacote.TabIndex = 21; + this.lblTamanhoPacote.Text = "Packet Size"; + // + // cmbAirRate + // + this.cmbAirRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbAirRate.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.cmbAirRate.FormattingEnabled = true; + this.cmbAirRate.Location = new System.Drawing.Point(563, 337); + this.cmbAirRate.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.cmbAirRate.Name = "cmbAirRate"; + this.cmbAirRate.Size = new System.Drawing.Size(155, 28); + this.cmbAirRate.TabIndex = 20; + // + // lblAirRate + // + this.lblAirRate.AutoSize = true; + this.lblAirRate.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.25F); + this.lblAirRate.Location = new System.Drawing.Point(444, 342); + this.lblAirRate.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lblAirRate.Name = "lblAirRate"; + this.lblAirRate.Size = new System.Drawing.Size(59, 17); + this.lblAirRate.TabIndex = 19; + this.lblAirRate.Text = "Air Rate"; + // + // cmbBaudRate + // + this.cmbBaudRate.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbBaudRate.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.cmbBaudRate.FormattingEnabled = true; + this.cmbBaudRate.Location = new System.Drawing.Point(247, 337); + this.cmbBaudRate.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); + this.cmbBaudRate.Name = "cmbBaudRate"; + this.cmbBaudRate.Size = new System.Drawing.Size(155, 28); + this.cmbBaudRate.TabIndex = 18; + // + // lblBaudRate + // + this.lblBaudRate.AutoSize = true; + this.lblBaudRate.Font = new System.Drawing.Font("Microsoft Sans Serif", 10.25F); + this.lblBaudRate.Location = new System.Drawing.Point(127, 342); + this.lblBaudRate.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lblBaudRate.Name = "lblBaudRate"; + this.lblBaudRate.Size = new System.Drawing.Size(75, 17); + this.lblBaudRate.TabIndex = 17; + this.lblBaudRate.Text = "Baud Rate"; + // + // picLer + // + this.picLer.Image = global::AgroBase.Properties.Resources.atualizar; + this.picLer.Location = new System.Drawing.Point(12, 311); + this.picLer.Name = "picLer"; + this.picLer.Size = new System.Drawing.Size(65, 65); + this.picLer.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picLer.TabIndex = 33; + this.picLer.TabStop = false; + // + // picGravar + // + this.picGravar.Image = global::AgroBase.Properties.Resources.salvar; + this.picGravar.Location = new System.Drawing.Point(12, 395); + this.picGravar.Name = "picGravar"; + this.picGravar.Size = new System.Drawing.Size(65, 65); + this.picGravar.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picGravar.TabIndex = 34; + this.picGravar.TabStop = false; + // + // picAtualizar + // + this.picAtualizar.Image = global::AgroBase.Properties.Resources.atualizar; + this.picAtualizar.Location = new System.Drawing.Point(12, 127); + this.picAtualizar.Name = "picAtualizar"; + this.picAtualizar.Size = new System.Drawing.Size(65, 65); + this.picAtualizar.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picAtualizar.TabIndex = 35; + this.picAtualizar.TabStop = false; + // + // picEsquerda + // + this.picEsquerda.BackColor = System.Drawing.Color.Black; + this.picEsquerda.Dock = System.Windows.Forms.DockStyle.Fill; + this.picEsquerda.Location = new System.Drawing.Point(0, 0); + this.picEsquerda.Name = "picEsquerda"; + this.picEsquerda.Size = new System.Drawing.Size(225, 172); + this.picEsquerda.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picEsquerda.TabIndex = 0; + this.picEsquerda.TabStop = false; + // + // picCentro + // + this.picCentro.BackColor = System.Drawing.Color.Black; + this.picCentro.Dock = System.Windows.Forms.DockStyle.Fill; + this.picCentro.Location = new System.Drawing.Point(0, 0); + this.picCentro.Name = "picCentro"; + this.picCentro.Size = new System.Drawing.Size(225, 172); + this.picCentro.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picCentro.TabIndex = 1; + this.picCentro.TabStop = false; + // + // picDireita + // + this.picDireita.BackColor = System.Drawing.Color.Black; + this.picDireita.Dock = System.Windows.Forms.DockStyle.Fill; + this.picDireita.Location = new System.Drawing.Point(0, 0); + this.picDireita.Name = "picDireita"; + this.picDireita.Size = new System.Drawing.Size(225, 172); + this.picDireita.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picDireita.TabIndex = 1; + this.picDireita.TabStop = false; + // + // frmAjustes + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Ivory; + this.ClientSize = new System.Drawing.Size(800, 480); + this.Controls.Add(this.picSalvar); + this.Controls.Add(this.picAtualizar); + this.Controls.Add(this.picGravar); + this.Controls.Add(this.picLer); + this.Controls.Add(this.lblCanal); + this.Controls.Add(this.txtCanal); + this.Controls.Add(this.lblEndereco); + this.Controls.Add(this.txtEndereco); + this.Controls.Add(this.cmbPower); + this.Controls.Add(this.lblPotencia); + this.Controls.Add(this.cmbWorCycle); + this.Controls.Add(this.lblWorCycle); + this.Controls.Add(this.cmbTransmissao); + this.Controls.Add(this.lblTransmissao); + this.Controls.Add(this.cmbPacketSize); + this.Controls.Add(this.lblTamanhoPacote); + this.Controls.Add(this.cmbAirRate); + this.Controls.Add(this.lblAirRate); + this.Controls.Add(this.cmbBaudRate); + this.Controls.Add(this.lblBaudRate); + this.Controls.Add(this.picVoltar); + this.Controls.Add(this.lblComunicacao); + this.Controls.Add(this.cmbS1); + this.Controls.Add(this.cmbC); + this.Controls.Add(this.cmbS0); + this.Controls.Add(this.lblCentro); + this.Controls.Add(this.pnlCentro); + this.Controls.Add(this.lblDireita); + this.Controls.Add(this.pnlDireita); + this.Controls.Add(this.lblEsquerda); + this.Controls.Add(this.lblCameras); + this.Controls.Add(this.pnlEsquerda); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "frmAjustes"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "frmAjustes"; + this.Load += new System.EventHandler(this.frmAjustes_Load); + this.pnlEsquerda.ResumeLayout(false); + this.pnlDireita.ResumeLayout(false); + this.pnlCentro.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.picVoltar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picSalvar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picLer)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picGravar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picAtualizar)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picEsquerda)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picCentro)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picDireita)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + private System.Windows.Forms.Panel pnlEsquerda; + private System.Windows.Forms.Label lblCameras; + private System.Windows.Forms.Label lblEsquerda; + private System.Windows.Forms.Label lblDireita; + private System.Windows.Forms.Panel pnlDireita; + private System.Windows.Forms.Panel pnlCentro; + private System.Windows.Forms.Label lblCentro; + private System.Windows.Forms.ComboBox cmbS0; + private System.Windows.Forms.ComboBox cmbC; + private System.Windows.Forms.ComboBox cmbS1; + private System.Windows.Forms.Label lblComunicacao; + private System.Windows.Forms.PictureBox picVoltar; + private System.Windows.Forms.PictureBox picSalvar; + private System.Windows.Forms.Label lblCanal; + private System.Windows.Forms.TextBox txtCanal; + private System.Windows.Forms.Label lblEndereco; + private System.Windows.Forms.TextBox txtEndereco; + private System.Windows.Forms.ComboBox cmbPower; + private System.Windows.Forms.Label lblPotencia; + private System.Windows.Forms.ComboBox cmbWorCycle; + private System.Windows.Forms.Label lblWorCycle; + private System.Windows.Forms.ComboBox cmbTransmissao; + private System.Windows.Forms.Label lblTransmissao; + private System.Windows.Forms.ComboBox cmbPacketSize; + private System.Windows.Forms.Label lblTamanhoPacote; + private System.Windows.Forms.ComboBox cmbAirRate; + private System.Windows.Forms.Label lblAirRate; + private System.Windows.Forms.ComboBox cmbBaudRate; + private System.Windows.Forms.Label lblBaudRate; + private System.Windows.Forms.PictureBox picLer; + private System.Windows.Forms.PictureBox picGravar; + private System.Windows.Forms.PictureBox picAtualizar; + private System.Windows.Forms.PictureBox picEsquerda; + private System.Windows.Forms.PictureBox picDireita; + private System.Windows.Forms.PictureBox picCentro; + } +} \ No newline at end of file diff --git a/AgroBase/AgroBase/Forms/IHM/frmAjustes.cs b/AgroBase/AgroBase/Forms/IHM/frmAjustes.cs new file mode 100644 index 000000000..8ea928221 --- /dev/null +++ b/AgroBase/AgroBase/Forms/IHM/frmAjustes.cs @@ -0,0 +1,324 @@ +using AForge.Video.DirectShow; +using AForge.Video; +using AgroBase.Models; +using AgroBase.Models.Modules; +using AgroBase.Services; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; + +namespace AgroBase.Forms.IHM +{ + public partial class frmAjustes : Form + { + LoRaService loraService; + LoRaParametrosModel Parametros = null; + Dictionary Cameras = new Dictionary(); + + public frmAjustes(LoRaService lora) + { + InitializeComponent(); + loraService = lora; + } + + private void frmAjustes_Load(object sender, EventArgs e) + { + FuncoesGlobais.DefinirEventosPicBtn(picVoltar, async () => + { + this.Close(); + }); + FuncoesGlobais.DefinirEventosPicBtn(picSalvar, async () => + { + Variaveis.OperacaoEmAndamento.DispSen.Dados.CameraID_Caminho = cmbC.Text; + Variaveis.OperacaoEmAndamento.DispSen.Dados.CameraID_Solo.Clear(); + Variaveis.OperacaoEmAndamento.DispSen.Dados.CameraID_Solo.AddRange(new string[] { cmbS0.Text, cmbS1.Text }); + + MessageBox.Show("Configuração de câmeras salva com sucesso!", "Sucesso", MessageBoxButtons.OK, MessageBoxIcon.Information); + }); + FuncoesGlobais.DefinirEventosPicBtn(picAtualizar, async () => + { + AtualizarCameras(); + }); + FuncoesGlobais.DefinirEventosPicBtn(picLer, async () => + { + if (LoRaService.Iniciado) + { + await AtualizarParametros(); + } + else + { + MessageBox.Show("Módulo LoRa de comunicação não está conectado ou não está no modo de parametrização!", "Alerta", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + }); + FuncoesGlobais.DefinirEventosPicBtn(picGravar, async () => + { + if (LoRaService.Iniciado) + { + Parametros.baudRate = LoRaService.CodigosBaudRates.FirstOrDefault(x => x.Key.ToString() == cmbBaudRate.Text).Value; + Parametros.tranMode = LoRaService.CodigosTipoTransmissao.FirstOrDefault(x => x.Key.ToString() == cmbTransmissao.Text).Value; + Parametros.address = Convert.ToByte(txtEndereco.Text); + Parametros.channel = Convert.ToByte(txtCanal.Text); + Parametros.airRate = LoRaService.CodigosAirRates.FirstOrDefault(x => x.Key.ToString() == cmbAirRate.Text).Value; + Parametros.packetSize = LoRaService.CodigosPacketSizes.FirstOrDefault(x => x.Key.ToString() == cmbPacketSize.Text).Value; + Parametros.worCycle = LoRaService.CodigosWorCycles.FirstOrDefault(x => x.Key.ToString() == cmbWorCycle.Text).Value; + Parametros.power = LoRaService.CodigosPowers.FirstOrDefault(x => x.Key.ToString() == cmbPower.Text).Value; + + await ConfigurarModulo(); + + MessageBox.Show("Configuração de comunicação salva com sucesso!", "Sucesso", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + else + { + MessageBox.Show("Módulo LoRa de comunicação não está conectado ou não está no modo de parametrização!", "Alerta", MessageBoxButtons.OK, MessageBoxIcon.Warning); + } + }); + + AtualizarCameras(); + if (LoRaService.Iniciado) + { + AtualizarParametros().ConfigureAwait(false); + } + } + + #region COMUNICACAO + + private async Task AtualizarParametros() + { + var (sucesso, par) = await loraService.RequisitarParametrosModuloAsync(); + + if (!sucesso) + { + MessageBox.Show("Erro ao requisitar parâmetros! Verifique o modo do módulo LoRa!"); + } + + Parametros = par; + + txtEndereco.Text = ((int)Parametros.address).ToString(); + txtCanal.Text = ((int)Parametros.channel).ToString(); + + cmbBaudRate.Items.Clear(); + cmbBaudRate.Items.AddRange(LoRaService.CodigosBaudRates.Keys.Select(x => x.ToString()).ToArray()); + cmbBaudRate.SelectedItem = LoRaService.CodigosBaudRates.FirstOrDefault(x => x.Value == Parametros.baudRate).Key.ToString(); + cmbTransmissao.Items.Clear(); + cmbTransmissao.Items.AddRange(LoRaService.CodigosTipoTransmissao.Keys.Select(x => x.ToString()).ToArray()); + cmbTransmissao.SelectedItem = LoRaService.CodigosTipoTransmissao.FirstOrDefault(x => x.Value == Parametros.tranMode).Key.ToString(); + cmbAirRate.Items.Clear(); + cmbAirRate.Items.AddRange(LoRaService.CodigosAirRates.Keys.Select(x => x.ToString()).ToArray()); + cmbAirRate.SelectedItem = LoRaService.CodigosAirRates.FirstOrDefault(x => x.Value == Parametros.airRate).Key.ToString(); + cmbPacketSize.Items.Clear(); + cmbPacketSize.Items.AddRange(LoRaService.CodigosPacketSizes.Keys.Select(x => x.ToString()).ToArray()); + cmbPacketSize.SelectedItem = LoRaService.CodigosPacketSizes.FirstOrDefault(x => x.Value == Parametros.packetSize).Key.ToString(); + cmbWorCycle.Items.Clear(); + cmbWorCycle.Items.AddRange(LoRaService.CodigosWorCycles.Keys.Select(x => x.ToString()).ToArray()); + cmbWorCycle.SelectedItem = LoRaService.CodigosWorCycles.FirstOrDefault(x => x.Value == Parametros.worCycle).Key.ToString(); + cmbPower.Items.Clear(); + cmbPower.Items.AddRange(LoRaService.CodigosPowers.Keys.Select(x => x.ToString()).ToArray()); + cmbPower.SelectedItem = LoRaService.CodigosPowers.FirstOrDefault(x => x.Value == Parametros.power).Key.ToString(); + } + + private async Task ConfigurarModulo() + { + var Sucesso = await loraService.ConfigurarModuloAsync(Parametros); + if (Sucesso != null) + { + MessageBox.Show("Módulo configurado com sucesso!"); + } + else + { + MessageBox.Show("Erro ao configurar módulo!"); + } + await AtualizarParametros(); + } + + #endregion + + #region CAMERAS + + private FilterInfoCollection videoDevices; + private VideoCaptureDevice videoSourceCentro; + private VideoCaptureDevice videoSourceEsquerda; + private VideoCaptureDevice videoSourceDireita; + + private void AtualizarCameras() + { + Variaveis.OperacaoEmAndamento.CameraCaminho.combo = cmbC; + Variaveis.OperacaoEmAndamento.CamerasSolo[0].combo = cmbS0; + Variaveis.OperacaoEmAndamento.CamerasSolo[1].combo = cmbS1; + + cmbC.SelectedIndexChanged -= cmbCentro_SelectedIndexChanged; + cmbC.SelectedIndexChanged += cmbCentro_SelectedIndexChanged; + cmbS0.SelectedIndexChanged -= cmbCameraSolo_SelectedIndexChanged; + cmbS0.SelectedIndexChanged += cmbCameraSolo_SelectedIndexChanged; + cmbS1.SelectedIndexChanged -= cmbCameraSolo_SelectedIndexChanged; + cmbS1.SelectedIndexChanged += cmbCameraSolo_SelectedIndexChanged; + + + Cameras = CameraService.AtualizaListaCameras(); + + cmbC.Items.Clear(); + cmbC.Items.AddRange(Cameras.Values.ToArray()); + string IDrua = Variaveis.OperacaoEmAndamento.DispSen.Dados.CameraID_Caminho; + if (Cameras.Any(x => x.Value == IDrua)) + { + cmbC.SelectedIndex = cmbC.Items.IndexOf(IDrua); + } + else + { + cmbC.Text = IDrua; + } + + var CamerasSolo = Variaveis.OperacaoEmAndamento.DispSen.Dados.CameraID_Solo; + + cmbS0.Items.Clear(); + cmbS0.Items.AddRange(Cameras.Values.ToArray()); + string IDsoloE = CamerasSolo.Count() > 0 ? CamerasSolo[0] : ""; + if (Cameras.Any(x => x.Value == IDsoloE)) + { + cmbS0.SelectedIndex = cmbS0.Items.IndexOf(IDsoloE); + } + else + { + cmbS0.Text = IDsoloE; + } + + cmbS1.Items.Clear(); + cmbS1.Items.AddRange(Cameras.Values.ToArray()); + string IDsoloD = CamerasSolo.Count() > 1 ? CamerasSolo[1] : ""; + if (Cameras.Any(x => x.Value == IDsoloD)) + { + cmbS1.SelectedIndex = cmbS1.Items.IndexOf(IDsoloD); + } + else + { + cmbS1.Text = IDsoloD; + } + + IniciarCameras(); + } + + private void IniciarCameras() + { + Bitmap blackBitmap = new Bitmap(picCentro.Width, picCentro.Height); + using (Graphics g = Graphics.FromImage(blackBitmap)) + { + g.Clear(Color.Black); + } + + if (videoSourceCentro != null) + { + videoSourceCentro.Stop(); + videoSourceCentro = null; + picCentro.Image = blackBitmap; + } + if (videoSourceEsquerda != null) + { + videoSourceEsquerda.Stop(); + videoSourceEsquerda = null; + picEsquerda.Image = blackBitmap; + } + if (videoSourceDireita != null) + { + videoSourceDireita.Stop(); + videoSourceDireita = null; + picDireita.Image = blackBitmap; + } + + videoDevices = new FilterInfoCollection(FilterCategory.VideoInputDevice); + List CamerasIDs = new List(); + foreach (FilterInfo info in videoDevices) + { + CamerasIDs.Add(info.MonikerString.ToLower()); + } + + //string IDcamRua = Variaveis.OperacaoEmAndamento.DispSen.Dados.CameraID_Caminho.ToLower().Replace("\\", "#"); + string IDcamRua = cmbC.Text.ToLower().Replace("\\", "#"); + if (!string.IsNullOrEmpty(IDcamRua) && CamerasIDs.Any(x => x.Contains(IDcamRua))) + { + videoSourceCentro = new VideoCaptureDevice(CamerasIDs.First(x => x.Contains(IDcamRua))); + videoSourceCentro.NewFrame += new NewFrameEventHandler(videoSourceCentro_NewFrame); + videoSourceCentro.Start(); + } + //string IDcamSoloE = Variaveis.OperacaoEmAndamento.DispSen.Dados.CameraID_Solo.Count() > 0 ? Variaveis.OperacaoEmAndamento.DispSen.Dados.CameraID_Solo[0].ToLower().Replace("\\", "#") : ""; + string IDcamSoloE = cmbS0.Text.ToLower().Replace("\\", "#"); + if (!string.IsNullOrEmpty(IDcamSoloE) && CamerasIDs.Any(x => x.Contains(IDcamSoloE))) + { + videoSourceEsquerda = new VideoCaptureDevice(CamerasIDs.First(x => x.Contains(IDcamSoloE))); + videoSourceEsquerda.NewFrame += new NewFrameEventHandler(videoSourceEsquerda_NewFrame); + videoSourceEsquerda.Start(); + } + //string IDcamSoloD = Variaveis.OperacaoEmAndamento.DispSen.Dados.CameraID_Solo.Count() > 1 ? Variaveis.OperacaoEmAndamento.DispSen.Dados.CameraID_Solo[1].ToLower().Replace("\\", "#") : ""; + string IDcamSoloD = cmbS1.Text.ToLower().Replace("\\", "#"); + if (!string.IsNullOrEmpty(IDcamSoloD) && CamerasIDs.Any(x => x.Contains(IDcamSoloD))) + { + videoSourceDireita = new VideoCaptureDevice(CamerasIDs.First(x => x.Contains(IDcamSoloD))); + videoSourceDireita.NewFrame += new NewFrameEventHandler(videoSourceDireita_NewFrame); + videoSourceDireita.Start(); + } + } + + private void videoSourceCentro_NewFrame(object sender, NewFrameEventArgs eventArgs) + { + Bitmap bitmap = (Bitmap)eventArgs.Frame.Clone(); + picCentro.Image = bitmap; + } + + private void videoSourceEsquerda_NewFrame(object sender, NewFrameEventArgs eventArgs) + { + Bitmap bitmap = (Bitmap)eventArgs.Frame.Clone(); + picEsquerda.Image = bitmap; + } + + private void videoSourceDireita_NewFrame(object sender, NewFrameEventArgs eventArgs) + { + Bitmap bitmap = (Bitmap)eventArgs.Frame.Clone(); + picDireita.Image = bitmap; + } + + + private void cmbCentro_SelectedIndexChanged(object sender, EventArgs e) + { + if (Variaveis.OperacaoEmAndamento.CameraCaminho.combo.SelectedIndex > 0 && Variaveis.OperacaoEmAndamento.CamerasSolo.Any(x => x.combo.SelectedIndex == Variaveis.OperacaoEmAndamento.CameraCaminho.combo.SelectedIndex)) + { + MessageBox.Show("Essa câmera já está sendo usada por outro processo!", "Erro", MessageBoxButtons.OK, MessageBoxIcon.Warning); + Variaveis.OperacaoEmAndamento.CameraCaminho.combo.SelectedIndex = Variaveis.OperacaoEmAndamento.CameraCaminho.camera.selectedCamera; + return; + } + + Variaveis.OperacaoEmAndamento.CameraCaminho.camera.selectedCamera = cmbC.SelectedIndex; + IniciarCameras(); + } + + private void cmbCameraSolo_SelectedIndexChanged(object sender, EventArgs e) + { + ComboBox cmb = (ComboBox)sender; + + string CamID = cmb.Name.Replace("cmb", ""); + + CameraSoloModel CameraSolo = Variaveis.OperacaoEmAndamento.CamerasSolo.FirstOrDefault(x => x.ID == CamID); + + if (CameraSolo.combo.SelectedIndex > 0 && (cmbC.SelectedIndex == CameraSolo.combo.SelectedIndex || Variaveis.OperacaoEmAndamento.CamerasSolo.Any(x => x.Nome != CameraSolo.Nome && x.combo.SelectedIndex == CameraSolo.combo.SelectedIndex))) + { + MessageBox.Show("Essa câmera já está sendo usada por outro processo!", "Erro", MessageBoxButtons.OK, MessageBoxIcon.Warning); + CameraSolo.combo.SelectedIndex = CameraSolo.camera.selectedCamera; + return; + } + + CameraSolo.camera.selectedCamera = CameraSolo.combo.SelectedIndex; + IniciarCameras(); + } + + + #endregion + + + + + + } +} diff --git a/AgroBase/AgroBase/Forms/Operacoes/frmInicioOperacao.resx b/AgroBase/AgroBase/Forms/IHM/frmAjustes.resx similarity index 100% rename from AgroBase/AgroBase/Forms/Operacoes/frmInicioOperacao.resx rename to AgroBase/AgroBase/Forms/IHM/frmAjustes.resx diff --git a/AgroBase/AgroBase/Forms/IHM/frmDialogoMapa.Designer.cs b/AgroBase/AgroBase/Forms/IHM/frmDialogoMapa.Designer.cs new file mode 100644 index 000000000..91bfe08bc --- /dev/null +++ b/AgroBase/AgroBase/Forms/IHM/frmDialogoMapa.Designer.cs @@ -0,0 +1,488 @@ +namespace AgroBase.Forms.IHM +{ + partial class frmDialogoMapa + { + /// + /// Required designer variable. + /// + private System.ComponentModel.IContainer components = null; + + /// + /// Clean up any resources being used. + /// + /// true if managed resources should be disposed; otherwise, false. + protected override void Dispose(bool disposing) + { + if (disposing && (components != null)) + { + components.Dispose(); + } + base.Dispose(disposing); + } + + #region Windows Form Designer generated code + + /// + /// Required method for Designer support - do not modify + /// the contents of this method with the code editor. + /// + private void InitializeComponent() + { + this.pnlMapa = new System.Windows.Forms.Panel(); + this.lblMapaCarregado = new System.Windows.Forms.Label(); + this.txtStatusAtual = new System.Windows.Forms.TextBox(); + this.lblStatusAtual = new System.Windows.Forms.Label(); + this.txtIniciadoEm = new System.Windows.Forms.TextBox(); + this.lblIniciadoEm = new System.Windows.Forms.Label(); + this.txtConcluidoEm = new System.Windows.Forms.TextBox(); + this.lblConcluidoEm = new System.Windows.Forms.Label(); + this.txtDistanciaPercorrida = new System.Windows.Forms.TextBox(); + this.lblDistanciaPercorrida = new System.Windows.Forms.Label(); + this.txtTempoOperacao = new System.Windows.Forms.TextBox(); + this.lblTempoOperacao = new System.Windows.Forms.Label(); + this.txtErvasIdentificadas = new System.Windows.Forms.TextBox(); + this.lblErvasIdentificadas = new System.Windows.Forms.Label(); + this.txtHerbicidaAplicado = new System.Windows.Forms.TextBox(); + this.lblHerbicidaAplicado = new System.Windows.Forms.Label(); + this.txtBateriaConsumida = new System.Windows.Forms.TextBox(); + this.lblBateriaConsumida = new System.Windows.Forms.Label(); + this.pgbReservatorio = new System.Windows.Forms.ProgressBar(); + this.lblReservatorio = new System.Windows.Forms.Label(); + this.lblBateria = new System.Windows.Forms.Label(); + this.pgbBateria = new System.Windows.Forms.ProgressBar(); + this.lblOperacao = new System.Windows.Forms.Label(); + this.pgbOperacao = new System.Windows.Forms.ProgressBar(); + this.lblRuaAtual = new System.Windows.Forms.Label(); + this.pgbRuaAtual = new System.Windows.Forms.ProgressBar(); + this.lblUltimaLeituraSolo = new System.Windows.Forms.Label(); + this.lblUltimaLeituraRua = new System.Windows.Forms.Label(); + this.lblModoOperacao = new System.Windows.Forms.Label(); + this.txtModoOperacao = new System.Windows.Forms.TextBox(); + this.pnlCameraSoloE = new System.Windows.Forms.Panel(); + this.pnlCameraSoloD = new System.Windows.Forms.Panel(); + this.pnlCameraCaminho = new System.Windows.Forms.Panel(); + this.picFechar = new System.Windows.Forms.PictureBox(); + this.pnlInclinacao = new System.Windows.Forms.Panel(); + this.pnlOrientacao = new System.Windows.Forms.Panel(); + this.pnlMapa.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.picFechar)).BeginInit(); + this.SuspendLayout(); + // + // pnlMapa + // + this.pnlMapa.Controls.Add(this.pnlCameraCaminho); + this.pnlMapa.Controls.Add(this.pnlCameraSoloD); + this.pnlMapa.Controls.Add(this.pnlCameraSoloE); + this.pnlMapa.Controls.Add(this.pnlInclinacao); + this.pnlMapa.Controls.Add(this.pnlOrientacao); + this.pnlMapa.Location = new System.Drawing.Point(0, 0); + this.pnlMapa.Name = "pnlMapa"; + this.pnlMapa.Size = new System.Drawing.Size(480, 463); + this.pnlMapa.TabIndex = 0; + // + // lblMapaCarregado + // + this.lblMapaCarregado.AutoSize = true; + this.lblMapaCarregado.Location = new System.Drawing.Point(486, 9); + this.lblMapaCarregado.Name = "lblMapaCarregado"; + this.lblMapaCarregado.Size = new System.Drawing.Size(112, 13); + this.lblMapaCarregado.TabIndex = 2; + this.lblMapaCarregado.Text = "Mapa Carregado: N/A"; + // + // txtStatusAtual + // + this.txtStatusAtual.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.txtStatusAtual.Location = new System.Drawing.Point(652, 90); + this.txtStatusAtual.Name = "txtStatusAtual"; + this.txtStatusAtual.ReadOnly = true; + this.txtStatusAtual.Size = new System.Drawing.Size(136, 26); + this.txtStatusAtual.TabIndex = 6; + this.txtStatusAtual.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // lblStatusAtual + // + this.lblStatusAtual.AutoSize = true; + this.lblStatusAtual.Location = new System.Drawing.Point(486, 98); + this.lblStatusAtual.Name = "lblStatusAtual"; + this.lblStatusAtual.Size = new System.Drawing.Size(64, 13); + this.lblStatusAtual.TabIndex = 5; + this.lblStatusAtual.Text = "Status Atual"; + // + // txtIniciadoEm + // + this.txtIniciadoEm.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.txtIniciadoEm.Location = new System.Drawing.Point(652, 122); + this.txtIniciadoEm.Name = "txtIniciadoEm"; + this.txtIniciadoEm.ReadOnly = true; + this.txtIniciadoEm.Size = new System.Drawing.Size(136, 26); + this.txtIniciadoEm.TabIndex = 8; + this.txtIniciadoEm.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // lblIniciadoEm + // + this.lblIniciadoEm.AutoSize = true; + this.lblIniciadoEm.Location = new System.Drawing.Point(486, 130); + this.lblIniciadoEm.Name = "lblIniciadoEm"; + this.lblIniciadoEm.Size = new System.Drawing.Size(62, 13); + this.lblIniciadoEm.TabIndex = 7; + this.lblIniciadoEm.Text = "Iniciado Em"; + // + // txtConcluidoEm + // + this.txtConcluidoEm.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.txtConcluidoEm.Location = new System.Drawing.Point(652, 154); + this.txtConcluidoEm.Name = "txtConcluidoEm"; + this.txtConcluidoEm.ReadOnly = true; + this.txtConcluidoEm.Size = new System.Drawing.Size(136, 26); + this.txtConcluidoEm.TabIndex = 10; + this.txtConcluidoEm.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // lblConcluidoEm + // + this.lblConcluidoEm.AutoSize = true; + this.lblConcluidoEm.Location = new System.Drawing.Point(486, 162); + this.lblConcluidoEm.Name = "lblConcluidoEm"; + this.lblConcluidoEm.Size = new System.Drawing.Size(74, 13); + this.lblConcluidoEm.TabIndex = 9; + this.lblConcluidoEm.Text = "Concluído Em"; + // + // txtDistanciaPercorrida + // + this.txtDistanciaPercorrida.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.txtDistanciaPercorrida.Location = new System.Drawing.Point(652, 186); + this.txtDistanciaPercorrida.Name = "txtDistanciaPercorrida"; + this.txtDistanciaPercorrida.ReadOnly = true; + this.txtDistanciaPercorrida.Size = new System.Drawing.Size(136, 26); + this.txtDistanciaPercorrida.TabIndex = 12; + this.txtDistanciaPercorrida.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // lblDistanciaPercorrida + // + this.lblDistanciaPercorrida.AutoSize = true; + this.lblDistanciaPercorrida.Location = new System.Drawing.Point(486, 194); + this.lblDistanciaPercorrida.Name = "lblDistanciaPercorrida"; + this.lblDistanciaPercorrida.Size = new System.Drawing.Size(102, 13); + this.lblDistanciaPercorrida.TabIndex = 11; + this.lblDistanciaPercorrida.Text = "Distância Percorrida"; + // + // txtTempoOperacao + // + this.txtTempoOperacao.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.txtTempoOperacao.Location = new System.Drawing.Point(652, 218); + this.txtTempoOperacao.Name = "txtTempoOperacao"; + this.txtTempoOperacao.ReadOnly = true; + this.txtTempoOperacao.Size = new System.Drawing.Size(136, 26); + this.txtTempoOperacao.TabIndex = 14; + this.txtTempoOperacao.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // lblTempoOperacao + // + this.lblTempoOperacao.AutoSize = true; + this.lblTempoOperacao.Location = new System.Drawing.Point(486, 226); + this.lblTempoOperacao.Name = "lblTempoOperacao"; + this.lblTempoOperacao.Size = new System.Drawing.Size(105, 13); + this.lblTempoOperacao.TabIndex = 13; + this.lblTempoOperacao.Text = "Tempo de Operação"; + // + // txtErvasIdentificadas + // + this.txtErvasIdentificadas.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.txtErvasIdentificadas.Location = new System.Drawing.Point(652, 250); + this.txtErvasIdentificadas.Name = "txtErvasIdentificadas"; + this.txtErvasIdentificadas.ReadOnly = true; + this.txtErvasIdentificadas.Size = new System.Drawing.Size(136, 26); + this.txtErvasIdentificadas.TabIndex = 16; + this.txtErvasIdentificadas.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // lblErvasIdentificadas + // + this.lblErvasIdentificadas.AutoSize = true; + this.lblErvasIdentificadas.Location = new System.Drawing.Point(486, 258); + this.lblErvasIdentificadas.Name = "lblErvasIdentificadas"; + this.lblErvasIdentificadas.Size = new System.Drawing.Size(97, 13); + this.lblErvasIdentificadas.TabIndex = 15; + this.lblErvasIdentificadas.Text = "Ervas Identificadas"; + // + // txtHerbicidaAplicado + // + this.txtHerbicidaAplicado.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.txtHerbicidaAplicado.Location = new System.Drawing.Point(652, 282); + this.txtHerbicidaAplicado.Name = "txtHerbicidaAplicado"; + this.txtHerbicidaAplicado.ReadOnly = true; + this.txtHerbicidaAplicado.Size = new System.Drawing.Size(136, 26); + this.txtHerbicidaAplicado.TabIndex = 18; + this.txtHerbicidaAplicado.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // lblHerbicidaAplicado + // + this.lblHerbicidaAplicado.AutoSize = true; + this.lblHerbicidaAplicado.Location = new System.Drawing.Point(486, 290); + this.lblHerbicidaAplicado.Name = "lblHerbicidaAplicado"; + this.lblHerbicidaAplicado.Size = new System.Drawing.Size(96, 13); + this.lblHerbicidaAplicado.TabIndex = 17; + this.lblHerbicidaAplicado.Text = "Herbicida Aplicado"; + // + // txtBateriaConsumida + // + this.txtBateriaConsumida.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.txtBateriaConsumida.Location = new System.Drawing.Point(652, 314); + this.txtBateriaConsumida.Name = "txtBateriaConsumida"; + this.txtBateriaConsumida.ReadOnly = true; + this.txtBateriaConsumida.Size = new System.Drawing.Size(136, 26); + this.txtBateriaConsumida.TabIndex = 20; + this.txtBateriaConsumida.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // lblBateriaConsumida + // + this.lblBateriaConsumida.AutoSize = true; + this.lblBateriaConsumida.Location = new System.Drawing.Point(486, 322); + this.lblBateriaConsumida.Name = "lblBateriaConsumida"; + this.lblBateriaConsumida.Size = new System.Drawing.Size(95, 13); + this.lblBateriaConsumida.TabIndex = 19; + this.lblBateriaConsumida.Text = "Bateria Consumida"; + // + // pgbReservatorio + // + this.pgbReservatorio.Location = new System.Drawing.Point(652, 346); + this.pgbReservatorio.Name = "pgbReservatorio"; + this.pgbReservatorio.Size = new System.Drawing.Size(136, 26); + this.pgbReservatorio.TabIndex = 21; + // + // lblReservatorio + // + this.lblReservatorio.AutoSize = true; + this.lblReservatorio.Location = new System.Drawing.Point(486, 354); + this.lblReservatorio.Name = "lblReservatorio"; + this.lblReservatorio.Size = new System.Drawing.Size(84, 13); + this.lblReservatorio.TabIndex = 23; + this.lblReservatorio.Text = "Reservatório (%)"; + // + // lblBateria + // + this.lblBateria.AutoSize = true; + this.lblBateria.Location = new System.Drawing.Point(486, 386); + this.lblBateria.Name = "lblBateria"; + this.lblBateria.Size = new System.Drawing.Size(57, 13); + this.lblBateria.TabIndex = 25; + this.lblBateria.Text = "Bateria (%)"; + // + // pgbBateria + // + this.pgbBateria.Location = new System.Drawing.Point(652, 378); + this.pgbBateria.Name = "pgbBateria"; + this.pgbBateria.Size = new System.Drawing.Size(136, 26); + this.pgbBateria.TabIndex = 24; + // + // lblOperacao + // + this.lblOperacao.AutoSize = true; + this.lblOperacao.Location = new System.Drawing.Point(486, 418); + this.lblOperacao.Name = "lblOperacao"; + this.lblOperacao.Size = new System.Drawing.Size(71, 13); + this.lblOperacao.TabIndex = 27; + this.lblOperacao.Text = "Operação (%)"; + // + // pgbOperacao + // + this.pgbOperacao.Location = new System.Drawing.Point(652, 410); + this.pgbOperacao.Name = "pgbOperacao"; + this.pgbOperacao.Size = new System.Drawing.Size(136, 26); + this.pgbOperacao.TabIndex = 26; + // + // lblRuaAtual + // + this.lblRuaAtual.AutoSize = true; + this.lblRuaAtual.Location = new System.Drawing.Point(486, 450); + this.lblRuaAtual.Name = "lblRuaAtual"; + this.lblRuaAtual.Size = new System.Drawing.Size(71, 13); + this.lblRuaAtual.TabIndex = 29; + this.lblRuaAtual.Text = "Rua Atual (%)"; + // + // pgbRuaAtual + // + this.pgbRuaAtual.Location = new System.Drawing.Point(652, 442); + this.pgbRuaAtual.Name = "pgbRuaAtual"; + this.pgbRuaAtual.Size = new System.Drawing.Size(136, 26); + this.pgbRuaAtual.TabIndex = 28; + // + // lblUltimaLeituraSolo + // + this.lblUltimaLeituraSolo.AutoSize = true; + this.lblUltimaLeituraSolo.Location = new System.Drawing.Point(12, 466); + this.lblUltimaLeituraSolo.Name = "lblUltimaLeituraSolo"; + this.lblUltimaLeituraSolo.Size = new System.Drawing.Size(164, 13); + this.lblUltimaLeituraSolo.TabIndex = 30; + this.lblUltimaLeituraSolo.Text = "Ultima Leitura Solo: 00:00:00.000"; + // + // lblUltimaLeituraRua + // + this.lblUltimaLeituraRua.AutoSize = true; + this.lblUltimaLeituraRua.Location = new System.Drawing.Point(207, 466); + this.lblUltimaLeituraRua.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.lblUltimaLeituraRua.Name = "lblUltimaLeituraRua"; + this.lblUltimaLeituraRua.Size = new System.Drawing.Size(163, 13); + this.lblUltimaLeituraRua.TabIndex = 31; + this.lblUltimaLeituraRua.Text = "Ultima Leitura Rua: 00:00:00.000"; + // + // lblModoOperacao + // + this.lblModoOperacao.AutoSize = true; + this.lblModoOperacao.Location = new System.Drawing.Point(486, 66); + this.lblModoOperacao.Name = "lblModoOperacao"; + this.lblModoOperacao.Size = new System.Drawing.Size(99, 13); + this.lblModoOperacao.TabIndex = 3; + this.lblModoOperacao.Text = "Modo de Operação"; + // + // txtModoOperacao + // + this.txtModoOperacao.Font = new System.Drawing.Font("Microsoft Sans Serif", 12.25F); + this.txtModoOperacao.Location = new System.Drawing.Point(652, 58); + this.txtModoOperacao.Name = "txtModoOperacao"; + this.txtModoOperacao.ReadOnly = true; + this.txtModoOperacao.Size = new System.Drawing.Size(136, 26); + this.txtModoOperacao.TabIndex = 4; + this.txtModoOperacao.TextAlign = System.Windows.Forms.HorizontalAlignment.Center; + // + // pnlCameraSoloE + // + this.pnlCameraSoloE.Location = new System.Drawing.Point(0, 363); + this.pnlCameraSoloE.Name = "pnlCameraSoloE"; + this.pnlCameraSoloE.Size = new System.Drawing.Size(130, 100); + this.pnlCameraSoloE.TabIndex = 17; + // + // pnlCameraSoloD + // + this.pnlCameraSoloD.Location = new System.Drawing.Point(350, 363); + this.pnlCameraSoloD.Name = "pnlCameraSoloD"; + this.pnlCameraSoloD.Size = new System.Drawing.Size(130, 100); + this.pnlCameraSoloD.TabIndex = 18; + // + // pnlCameraCaminho + // + this.pnlCameraCaminho.Location = new System.Drawing.Point(174, 363); + this.pnlCameraCaminho.Name = "pnlCameraCaminho"; + this.pnlCameraCaminho.Size = new System.Drawing.Size(130, 100); + this.pnlCameraCaminho.TabIndex = 18; + // + // picFechar + // + this.picFechar.Image = global::AgroBase.Properties.Resources.fechar; + this.picFechar.Location = new System.Drawing.Point(753, 9); + this.picFechar.Name = "picFechar"; + this.picFechar.Size = new System.Drawing.Size(35, 35); + this.picFechar.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picFechar.TabIndex = 1; + this.picFechar.TabStop = false; + // + // pnlInclinacao + // + this.pnlInclinacao.BackColor = System.Drawing.Color.White; + this.pnlInclinacao.BackgroundImage = global::AgroBase.Properties.Resources.transferidor; + this.pnlInclinacao.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.pnlInclinacao.Location = new System.Drawing.Point(0, 0); + this.pnlInclinacao.Margin = new System.Windows.Forms.Padding(2); + this.pnlInclinacao.Name = "pnlInclinacao"; + this.pnlInclinacao.Size = new System.Drawing.Size(78, 84); + this.pnlInclinacao.TabIndex = 16; + this.pnlInclinacao.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlInclinacao_Paint); + // + // pnlOrientacao + // + this.pnlOrientacao.BackColor = System.Drawing.Color.White; + this.pnlOrientacao.BackgroundImage = global::AgroBase.Properties.Resources.rosa_dos_ventos; + this.pnlOrientacao.BackgroundImageLayout = System.Windows.Forms.ImageLayout.Zoom; + this.pnlOrientacao.Location = new System.Drawing.Point(402, 0); + this.pnlOrientacao.Margin = new System.Windows.Forms.Padding(2); + this.pnlOrientacao.Name = "pnlOrientacao"; + this.pnlOrientacao.Size = new System.Drawing.Size(78, 84); + this.pnlOrientacao.TabIndex = 12; + this.pnlOrientacao.Paint += new System.Windows.Forms.PaintEventHandler(this.pnlOrientacao_Paint); + // + // frmDialogoMapa + // + this.AutoScaleDimensions = new System.Drawing.SizeF(6F, 13F); + this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; + this.BackColor = System.Drawing.Color.Ivory; + this.ClientSize = new System.Drawing.Size(800, 480); + this.Controls.Add(this.lblUltimaLeituraRua); + this.Controls.Add(this.lblUltimaLeituraSolo); + this.Controls.Add(this.lblRuaAtual); + this.Controls.Add(this.pgbRuaAtual); + this.Controls.Add(this.lblOperacao); + this.Controls.Add(this.pgbOperacao); + this.Controls.Add(this.lblBateria); + this.Controls.Add(this.pgbBateria); + this.Controls.Add(this.lblReservatorio); + this.Controls.Add(this.pgbReservatorio); + this.Controls.Add(this.txtBateriaConsumida); + this.Controls.Add(this.lblBateriaConsumida); + this.Controls.Add(this.txtHerbicidaAplicado); + this.Controls.Add(this.lblHerbicidaAplicado); + this.Controls.Add(this.txtErvasIdentificadas); + this.Controls.Add(this.lblErvasIdentificadas); + this.Controls.Add(this.txtTempoOperacao); + this.Controls.Add(this.lblTempoOperacao); + this.Controls.Add(this.txtDistanciaPercorrida); + this.Controls.Add(this.lblDistanciaPercorrida); + this.Controls.Add(this.txtConcluidoEm); + this.Controls.Add(this.lblConcluidoEm); + this.Controls.Add(this.txtIniciadoEm); + this.Controls.Add(this.lblIniciadoEm); + this.Controls.Add(this.txtStatusAtual); + this.Controls.Add(this.lblStatusAtual); + this.Controls.Add(this.txtModoOperacao); + this.Controls.Add(this.lblModoOperacao); + this.Controls.Add(this.lblMapaCarregado); + this.Controls.Add(this.picFechar); + this.Controls.Add(this.pnlMapa); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; + this.Name = "frmDialogoMapa"; + this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; + this.Text = "frmDialogoMapa"; + this.pnlMapa.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.picFechar)).EndInit(); + this.ResumeLayout(false); + this.PerformLayout(); + + } + + #endregion + + public System.Windows.Forms.Panel pnlMapa; + private System.Windows.Forms.PictureBox picFechar; + public System.Windows.Forms.Label lblMapaCarregado; + private System.Windows.Forms.TextBox txtStatusAtual; + private System.Windows.Forms.Label lblStatusAtual; + private System.Windows.Forms.TextBox txtIniciadoEm; + private System.Windows.Forms.Label lblIniciadoEm; + private System.Windows.Forms.TextBox txtConcluidoEm; + private System.Windows.Forms.Label lblConcluidoEm; + private System.Windows.Forms.TextBox txtDistanciaPercorrida; + private System.Windows.Forms.Label lblDistanciaPercorrida; + private System.Windows.Forms.TextBox txtTempoOperacao; + private System.Windows.Forms.Label lblTempoOperacao; + private System.Windows.Forms.TextBox txtErvasIdentificadas; + private System.Windows.Forms.Label lblErvasIdentificadas; + private System.Windows.Forms.TextBox txtHerbicidaAplicado; + private System.Windows.Forms.Label lblHerbicidaAplicado; + private System.Windows.Forms.TextBox txtBateriaConsumida; + private System.Windows.Forms.Label lblBateriaConsumida; + private System.Windows.Forms.ProgressBar pgbReservatorio; + private System.Windows.Forms.Label lblReservatorio; + private System.Windows.Forms.Label lblBateria; + private System.Windows.Forms.ProgressBar pgbBateria; + private System.Windows.Forms.Label lblOperacao; + private System.Windows.Forms.ProgressBar pgbOperacao; + private System.Windows.Forms.Label lblRuaAtual; + private System.Windows.Forms.ProgressBar pgbRuaAtual; + private System.Windows.Forms.Panel pnlOrientacao; + private System.Windows.Forms.Panel pnlInclinacao; + public System.Windows.Forms.Label lblUltimaLeituraSolo; + private System.Windows.Forms.Label lblUltimaLeituraRua; + private System.Windows.Forms.Panel pnlCameraCaminho; + private System.Windows.Forms.Panel pnlCameraSoloD; + private System.Windows.Forms.Panel pnlCameraSoloE; + private System.Windows.Forms.Label lblModoOperacao; + private System.Windows.Forms.TextBox txtModoOperacao; + } +} \ No newline at end of file diff --git a/AgroBase/AgroBase/Forms/IHM/frmDialogoMapa.cs b/AgroBase/AgroBase/Forms/IHM/frmDialogoMapa.cs new file mode 100644 index 000000000..574fde0f8 --- /dev/null +++ b/AgroBase/AgroBase/Forms/IHM/frmDialogoMapa.cs @@ -0,0 +1,114 @@ +using AgroBase.Models; +using AgroBase.Models.Modules; +using AgroBase.Services; +using Newtonsoft.Json; +using System; +using System.Collections.Generic; +using System.ComponentModel; +using System.Data; +using System.Drawing; +using System.Linq; +using System.Text; +using System.Threading.Tasks; +using System.Windows.Forms; +using System.Windows.Forms.DataVisualization.Charting; + +namespace AgroBase.Forms.IHM +{ + public partial class frmDialogoMapa : Form + { + Timer tmrLeitura = new Timer() { Interval = 500 }; + + public frmDialogoMapa() + { + InitializeComponent(); + tmrLeitura.Tick += tmrLeitura_Tick; + tmrLeitura.Start(); + + FuncoesGlobais.DefinirEventosPicBtn(picFechar, async () => + { + if (Variaveis.OperacaoEmAndamento.Iniciado) + { + if (MessageBox.Show("Tem certeza que deseja interromper a operação em andamento?", "Interromper Operação", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + { + Variaveis.OperacaoEmAndamento.FinalizarOperacao(); + } + } + else + { + this.Hide(); + } + }); + } + + public async Task AtualizarRuasSelecionadas(List ruasSelecionadas) + { + Variaveis.OperacaoEmAndamento.AtualizaListaCameras(pnlCameraCaminho, new List(){ pnlCameraSoloE, pnlCameraSoloD }, true); + + await Task.Delay(1000); + GPSService.AtualizarRuasSelecionadas(ruasSelecionadas); + } + + public void IniciarOperacao() + { + Variaveis.OperacaoEmAndamento.IniciarOperacao(); + } + + private void tmrLeitura_Tick(object sender, EventArgs e) + { + pnlOrientacao.Invalidate(); + pnlInclinacao.Invalidate(); + + var ultimaLeitura = Variaveis.OperacaoEmAndamento.CamerasSolo.OrderByDescending(x => x.Leitura.timestamp).FirstOrDefault(); + if (ultimaLeitura != null) + { + lblUltimaLeituraSolo.Text = "Ultima Leitura Solo: " + FuncoesGlobais.TimestampToDate(ultimaLeitura.Leitura.timestamp); + } + if (Variaveis.OperacaoEmAndamento.CameraCaminho != null) + { + lblUltimaLeituraRua.Text = "Ultima Leitura Rua: " + FuncoesGlobais.TimestampToDate(Variaveis.OperacaoEmAndamento.CameraCaminho.Leitura.timestamp); + } + + txtModoOperacao.Text = Variaveis.OperacaoEmAndamento.Modo.ToString(); + txtStatusAtual.Text = Variaveis.OperacaoEmAndamento.StatusAtual.ToString(); + txtIniciadoEm.Text = new DateTime(Variaveis.OperacaoEmAndamento.TimestampInicio).ToString("dd/MM HH:mm:ss"); + txtConcluidoEm.Text = new DateTime(Variaveis.OperacaoEmAndamento.TimestampFim).ToString("dd/MM HH:mm:ss"); + txtDistanciaPercorrida.Text = Variaveis.OperacaoEmAndamento.Sensoriamento.DistanciaPercorrida.Sum().ToString("0.00") + " m"; + txtTempoOperacao.Text = Variaveis.OperacaoEmAndamento.Tempo.Hours.ToString("00") + ":" + Variaveis.OperacaoEmAndamento.Tempo.Minutes.ToString("00") + ":" + Variaveis.OperacaoEmAndamento.Tempo.Seconds.ToString("00"); + txtErvasIdentificadas.Text = Variaveis.OperacaoEmAndamento.OpMapaGPS.Sensoriamento.ErvasIdentificadas.ToString("000"); + txtHerbicidaAplicado.Text = Variaveis.OperacaoEmAndamento.OpMapaGPS.Sensoriamento.HerbicidaConsumido.ToString("0.000") + " L"; + txtBateriaConsumida.Text = Variaveis.OperacaoEmAndamento.Sensoriamento.BateriaConsumida.ToString("0.00") + "%"; + + FuncoesGlobais.PreencheValorProgressBar(pgbReservatorio, Variaveis.OperacaoEmAndamento.DispAtu.Dados.PercentualReservatorio); + lblReservatorio.Text = "Reservatório: " + (Variaveis.OperacaoEmAndamento.DispAtu.Dados.VolumeReservatorio.ToString("0.000") + " L " + (Variaveis.OperacaoEmAndamento.DispAtu.Dados.PercentualReservatorio < 0 ? 0 : Variaveis.OperacaoEmAndamento.DispAtu.Dados.PercentualReservatorio).ToString("00.00") + "%"); + + FuncoesGlobais.PreencheValorProgressBar(pgbBateria, Variaveis.OperacaoEmAndamento.Sensoriamento.PorcentagemBateria); + lblBateria.Text = "Bateria: " + (PZEMService.Iniciado && PZEMService.UltimaLeitura != null ? PZEMService.UltimaLeitura.Tensao.ToString("0.00") + "v " + PZEMService.UltimaLeitura.Corrente.ToString("0.00") + "A " : "") + (Variaveis.OperacaoEmAndamento.Sensoriamento.PorcentagemBateria < 0 ? 0 : Variaveis.OperacaoEmAndamento.Sensoriamento.PorcentagemBateria).ToString("00.00") + "%"; + + FuncoesGlobais.PreencheValorProgressBar(pgbOperacao, Variaveis.OperacaoEmAndamento.OpMapaGPS.Sensoriamento.ProgressoTrajeto); + lblOperacao.Text = "Operação: " + (Variaveis.OperacaoEmAndamento.OpMapaGPS.Sensoriamento.ProgressoTrajeto < 0 ? 0 : Variaveis.OperacaoEmAndamento.OpMapaGPS.Sensoriamento.ProgressoTrajeto).ToString("00.00") + "%"; + FuncoesGlobais.PreencheValorProgressBar(pgbRuaAtual, Variaveis.OperacaoEmAndamento.OpMapaGPS.Sensoriamento.ProgressoRua); + lblRuaAtual.Text = "Rua Atual: " + (Variaveis.OperacaoEmAndamento.OpMapaGPS.Sensoriamento.ProgressoRua < 0 ? 0 : Variaveis.OperacaoEmAndamento.OpMapaGPS.Sensoriamento.ProgressoRua).ToString("00.00") + "%"; + } + + private void pnlOrientacao_Paint(object sender, PaintEventArgs e) + { + try + { + double angulo = Variaveis.OperacaoEmAndamento.Sensoriamento.AnguloCarro; + FuncoesGlobais.DesenharInclinacao((Panel)sender, e, (float)angulo, -90); + } + catch { } + } + + private void pnlInclinacao_Paint(object sender, PaintEventArgs e) + { + try + { + FuncoesGlobais.DesenharInclinacao((Panel)sender, e, (float)(Variaveis.OperacaoEmAndamento.Controle.Angulo), 90); + } + catch { } + } + + } +} diff --git a/AgroBase/AgroBase/Forms/IHM/frmDialogoMapa.resx b/AgroBase/AgroBase/Forms/IHM/frmDialogoMapa.resx new file mode 100644 index 000000000..1af7de150 --- /dev/null +++ b/AgroBase/AgroBase/Forms/IHM/frmDialogoMapa.resx @@ -0,0 +1,120 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + text/microsoft-resx + + + 2.0 + + + System.Resources.ResXResourceReader, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + + System.Resources.ResXResourceWriter, System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089 + + \ No newline at end of file diff --git a/AgroBase/AgroBase/Forms/IHM/frmIHM.Designer.cs b/AgroBase/AgroBase/Forms/IHM/frmIHM.Designer.cs index 4ca7ba4c8..009affd42 100644 --- a/AgroBase/AgroBase/Forms/IHM/frmIHM.Designer.cs +++ b/AgroBase/AgroBase/Forms/IHM/frmIHM.Designer.cs @@ -28,186 +28,393 @@ /// private void InitializeComponent() { - this.lblD_Mov = new System.Windows.Forms.Label(); - this.lblD_Dir = new System.Windows.Forms.Label(); + this.lblD_Mvd_DF = new System.Windows.Forms.Label(); this.lblD_Atu = new System.Windows.Forms.Label(); this.lblD_Sen = new System.Windows.Forms.Label(); this.lblD_Gps = new System.Windows.Forms.Label(); - this.btnConfigurar = new System.Windows.Forms.Button(); - this.btnIniciar = new System.Windows.Forms.Button(); - this.cmbOperacao = new System.Windows.Forms.ComboBox(); - this.lblOperacao = new System.Windows.Forms.Label(); - this.lblOperacaoStatus = new System.Windows.Forms.Label(); this.lblMqtt = new System.Windows.Forms.Label(); - this.lblD_PZM = new System.Windows.Forms.Label(); - this.picRobo = new System.Windows.Forms.PictureBox(); + this.lblD_Pzm = new System.Windows.Forms.Label(); this.lblD_Lra = new System.Windows.Forms.Label(); + this.lblD_Wit = new System.Windows.Forms.Label(); + this.lblD_Mvd_DT = new System.Windows.Forms.Label(); + this.lblD_Mks_DF = new System.Windows.Forms.Label(); + this.lblD_Mks_EF = new System.Windows.Forms.Label(); + this.lblD_Mvd_EF = new System.Windows.Forms.Label(); + this.lblD_Mks_DT = new System.Windows.Forms.Label(); + this.lblD_Mks_ET = new System.Windows.Forms.Label(); + this.lblD_Mvd_ET = new System.Windows.Forms.Label(); + this.lblD_Cam_S0 = new System.Windows.Forms.Label(); + this.lblD_Cam_S1 = new System.Windows.Forms.Label(); + this.lblD_Cam_C = new System.Windows.Forms.Label(); + this.picDiagnosticos = new System.Windows.Forms.PictureBox(); + this.picOperacao = new System.Windows.Forms.PictureBox(); + this.picAjustes = new System.Windows.Forms.PictureBox(); + this.picDesligar = new System.Windows.Forms.PictureBox(); + this.picRobo = new System.Windows.Forms.PictureBox(); + this.lblDiagnosticos = new System.Windows.Forms.Label(); + this.lblOperacao = new System.Windows.Forms.Label(); + this.lblAjustes = new System.Windows.Forms.Label(); + this.lblDesligar = new System.Windows.Forms.Label(); + ((System.ComponentModel.ISupportInitialize)(this.picDiagnosticos)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picOperacao)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picAjustes)).BeginInit(); + ((System.ComponentModel.ISupportInitialize)(this.picDesligar)).BeginInit(); ((System.ComponentModel.ISupportInitialize)(this.picRobo)).BeginInit(); this.SuspendLayout(); // - // lblD_Mov + // lblD_Mvd_DF // - this.lblD_Mov.AutoSize = true; - this.lblD_Mov.BackColor = System.Drawing.Color.Transparent; - this.lblD_Mov.Location = new System.Drawing.Point(414, 33); - this.lblD_Mov.Name = "lblD_Mov"; - this.lblD_Mov.Size = new System.Drawing.Size(169, 29); - this.lblD_Mov.TabIndex = 2; - this.lblD_Mov.Text = "Movimentação"; - // - // lblD_Dir - // - this.lblD_Dir.AutoSize = true; - this.lblD_Dir.Location = new System.Drawing.Point(72, 121); - this.lblD_Dir.Name = "lblD_Dir"; - this.lblD_Dir.Size = new System.Drawing.Size(122, 29); - this.lblD_Dir.TabIndex = 3; - this.lblD_Dir.Text = "Direcional"; + this.lblD_Mvd_DF.AutoSize = true; + this.lblD_Mvd_DF.BackColor = System.Drawing.Color.Transparent; + this.lblD_Mvd_DF.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Mvd_DF.Location = new System.Drawing.Point(264, 66); + this.lblD_Mvd_DF.Name = "lblD_Mvd_DF"; + this.lblD_Mvd_DF.Size = new System.Drawing.Size(52, 24); + this.lblD_Mvd_DF.TabIndex = 2; + this.lblD_Mvd_DF.Text = "MVD"; + this.lblD_Mvd_DF.Click += new System.EventHandler(this.lblModulo_Click); // // lblD_Atu // this.lblD_Atu.AutoSize = true; - this.lblD_Atu.Location = new System.Drawing.Point(442, 633); + this.lblD_Atu.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Atu.Location = new System.Drawing.Point(250, 397); this.lblD_Atu.Name = "lblD_Atu"; - this.lblD_Atu.Size = new System.Drawing.Size(96, 29); + this.lblD_Atu.Size = new System.Drawing.Size(48, 24); this.lblD_Atu.TabIndex = 4; - this.lblD_Atu.Text = "Atuador"; + this.lblD_Atu.Text = "ATU"; + this.lblD_Atu.Click += new System.EventHandler(this.lblModulo_Click); // // lblD_Sen // this.lblD_Sen.AutoSize = true; this.lblD_Sen.BackColor = System.Drawing.Color.Lavender; - this.lblD_Sen.Location = new System.Drawing.Point(430, 324); + this.lblD_Sen.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Sen.Location = new System.Drawing.Point(53, 206); this.lblD_Sen.Name = "lblD_Sen"; - this.lblD_Sen.Size = new System.Drawing.Size(176, 29); + this.lblD_Sen.Size = new System.Drawing.Size(49, 24); this.lblD_Sen.TabIndex = 5; - this.lblD_Sen.Text = "Sensoriamento"; + this.lblD_Sen.Text = "SEN"; + this.lblD_Sen.Click += new System.EventHandler(this.lblModulo_Click); // // lblD_Gps // this.lblD_Gps.AutoSize = true; - this.lblD_Gps.Location = new System.Drawing.Point(430, 208); + this.lblD_Gps.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Gps.Location = new System.Drawing.Point(153, 23); this.lblD_Gps.Name = "lblD_Gps"; - this.lblD_Gps.Size = new System.Drawing.Size(63, 29); + this.lblD_Gps.Size = new System.Drawing.Size(48, 24); this.lblD_Gps.TabIndex = 6; this.lblD_Gps.Text = "GPS"; - // - // btnConfigurar - // - this.btnConfigurar.Location = new System.Drawing.Point(775, 173); - this.btnConfigurar.Name = "btnConfigurar"; - this.btnConfigurar.Size = new System.Drawing.Size(202, 64); - this.btnConfigurar.TabIndex = 8; - this.btnConfigurar.Text = "Configurar"; - this.btnConfigurar.UseVisualStyleBackColor = true; - this.btnConfigurar.Click += new System.EventHandler(this.btnConfigurar_Click); - // - // btnIniciar - // - this.btnIniciar.Location = new System.Drawing.Point(775, 258); - this.btnIniciar.Name = "btnIniciar"; - this.btnIniciar.Size = new System.Drawing.Size(202, 64); - this.btnIniciar.TabIndex = 9; - this.btnIniciar.Text = "Iniciar"; - this.btnIniciar.UseVisualStyleBackColor = true; - this.btnIniciar.Click += new System.EventHandler(this.btnIniciar_Click); - // - // cmbOperacao - // - this.cmbOperacao.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - this.cmbOperacao.FormattingEnabled = true; - this.cmbOperacao.Location = new System.Drawing.Point(775, 81); - this.cmbOperacao.Name = "cmbOperacao"; - this.cmbOperacao.Size = new System.Drawing.Size(202, 37); - this.cmbOperacao.TabIndex = 10; - this.cmbOperacao.SelectedIndexChanged += new System.EventHandler(this.cmbOperacao_SelectedIndexChanged); - // - // lblOperacao - // - this.lblOperacao.AutoSize = true; - this.lblOperacao.Location = new System.Drawing.Point(771, 45); - this.lblOperacao.Name = "lblOperacao"; - this.lblOperacao.Size = new System.Drawing.Size(222, 29); - this.lblOperacao.TabIndex = 11; - this.lblOperacao.Text = "Modo de Operação"; - // - // lblOperacaoStatus - // - this.lblOperacaoStatus.AutoSize = true; - this.lblOperacaoStatus.Location = new System.Drawing.Point(651, 602); - this.lblOperacaoStatus.Name = "lblOperacaoStatus"; - this.lblOperacaoStatus.Size = new System.Drawing.Size(365, 29); - this.lblOperacaoStatus.TabIndex = 12; - this.lblOperacaoStatus.Text = "Operação: Manual - Não iniciado"; + this.lblD_Gps.Click += new System.EventHandler(this.lblModulo_Click); // // lblMqtt // this.lblMqtt.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Bottom | System.Windows.Forms.AnchorStyles.Right))); this.lblMqtt.AutoSize = true; this.lblMqtt.Font = new System.Drawing.Font("Microsoft Sans Serif", 8.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); - this.lblMqtt.Location = new System.Drawing.Point(894, 675); + this.lblMqtt.Location = new System.Drawing.Point(12, 458); this.lblMqtt.Name = "lblMqtt"; - this.lblMqtt.Size = new System.Drawing.Size(147, 17); + this.lblMqtt.Size = new System.Drawing.Size(114, 13); this.lblMqtt.TabIndex = 13; this.lblMqtt.Text = "MQTT: Desconectado"; // - // lblD_PZM + // lblD_Pzm // - this.lblD_PZM.AutoSize = true; - this.lblD_PZM.BackColor = System.Drawing.Color.Lavender; - this.lblD_PZM.Location = new System.Drawing.Point(137, 309); - this.lblD_PZM.Name = "lblD_PZM"; - this.lblD_PZM.Size = new System.Drawing.Size(79, 29); - this.lblD_PZM.TabIndex = 14; - this.lblD_PZM.Text = "PZEM"; - // - // picRobo - // - this.picRobo.Image = global::AgroBase.Properties.Resources.robo_superior; - this.picRobo.Location = new System.Drawing.Point(66, 12); - this.picRobo.Name = "picRobo"; - this.picRobo.Size = new System.Drawing.Size(534, 673); - this.picRobo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.picRobo.TabIndex = 1; - this.picRobo.TabStop = false; + this.lblD_Pzm.AutoSize = true; + this.lblD_Pzm.BackColor = System.Drawing.Color.Lavender; + this.lblD_Pzm.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Pzm.Location = new System.Drawing.Point(250, 206); + this.lblD_Pzm.Name = "lblD_Pzm"; + this.lblD_Pzm.Size = new System.Drawing.Size(50, 24); + this.lblD_Pzm.TabIndex = 14; + this.lblD_Pzm.Text = "PZM"; + this.lblD_Pzm.Click += new System.EventHandler(this.lblModulo_Click); // // lblD_Lra // this.lblD_Lra.AutoSize = true; this.lblD_Lra.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(64)))), ((int)(((byte)(64)))), ((int)(((byte)(64))))); - this.lblD_Lra.Location = new System.Drawing.Point(296, 495); + this.lblD_Lra.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Lra.Location = new System.Drawing.Point(153, 311); this.lblD_Lra.Name = "lblD_Lra"; - this.lblD_Lra.Size = new System.Drawing.Size(70, 29); + this.lblD_Lra.Size = new System.Drawing.Size(46, 24); this.lblD_Lra.TabIndex = 15; - this.lblD_Lra.Text = "LoRa"; + this.lblD_Lra.Text = "LRA"; + this.lblD_Lra.Click += new System.EventHandler(this.lblModulo_Click); + // + // lblD_Wit + // + this.lblD_Wit.AutoSize = true; + this.lblD_Wit.BackColor = System.Drawing.Color.Lavender; + this.lblD_Wit.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Wit.Location = new System.Drawing.Point(53, 397); + this.lblD_Wit.Name = "lblD_Wit"; + this.lblD_Wit.Size = new System.Drawing.Size(44, 24); + this.lblD_Wit.TabIndex = 16; + this.lblD_Wit.Text = "WIT"; + this.lblD_Wit.Click += new System.EventHandler(this.lblModulo_Click); + // + // lblD_Mvd_DT + // + this.lblD_Mvd_DT.AutoSize = true; + this.lblD_Mvd_DT.BackColor = System.Drawing.Color.Lavender; + this.lblD_Mvd_DT.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Mvd_DT.Location = new System.Drawing.Point(264, 255); + this.lblD_Mvd_DT.Name = "lblD_Mvd_DT"; + this.lblD_Mvd_DT.Size = new System.Drawing.Size(52, 24); + this.lblD_Mvd_DT.TabIndex = 18; + this.lblD_Mvd_DT.Text = "MVD"; + this.lblD_Mvd_DT.Click += new System.EventHandler(this.lblModulo_Click); + // + // lblD_Mks_DF + // + this.lblD_Mks_DF.AutoSize = true; + this.lblD_Mks_DF.BackColor = System.Drawing.Color.Transparent; + this.lblD_Mks_DF.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Mks_DF.Location = new System.Drawing.Point(264, 90); + this.lblD_Mks_DF.Name = "lblD_Mks_DF"; + this.lblD_Mks_DF.Size = new System.Drawing.Size(50, 24); + this.lblD_Mks_DF.TabIndex = 19; + this.lblD_Mks_DF.Text = "MKS"; + this.lblD_Mks_DF.Click += new System.EventHandler(this.lblModulo_Click); + // + // lblD_Mks_EF + // + this.lblD_Mks_EF.AutoSize = true; + this.lblD_Mks_EF.BackColor = System.Drawing.Color.Transparent; + this.lblD_Mks_EF.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Mks_EF.Location = new System.Drawing.Point(35, 90); + this.lblD_Mks_EF.Name = "lblD_Mks_EF"; + this.lblD_Mks_EF.Size = new System.Drawing.Size(50, 24); + this.lblD_Mks_EF.TabIndex = 21; + this.lblD_Mks_EF.Text = "MKS"; + this.lblD_Mks_EF.Click += new System.EventHandler(this.lblModulo_Click); + // + // lblD_Mvd_EF + // + this.lblD_Mvd_EF.AutoSize = true; + this.lblD_Mvd_EF.BackColor = System.Drawing.Color.Transparent; + this.lblD_Mvd_EF.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Mvd_EF.Location = new System.Drawing.Point(35, 66); + this.lblD_Mvd_EF.Name = "lblD_Mvd_EF"; + this.lblD_Mvd_EF.Size = new System.Drawing.Size(52, 24); + this.lblD_Mvd_EF.TabIndex = 20; + this.lblD_Mvd_EF.Text = "MVD"; + this.lblD_Mvd_EF.Click += new System.EventHandler(this.lblModulo_Click); + // + // lblD_Mks_DT + // + this.lblD_Mks_DT.AutoSize = true; + this.lblD_Mks_DT.BackColor = System.Drawing.Color.Lavender; + this.lblD_Mks_DT.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Mks_DT.Location = new System.Drawing.Point(264, 279); + this.lblD_Mks_DT.Name = "lblD_Mks_DT"; + this.lblD_Mks_DT.Size = new System.Drawing.Size(50, 24); + this.lblD_Mks_DT.TabIndex = 22; + this.lblD_Mks_DT.Text = "MKS"; + this.lblD_Mks_DT.Click += new System.EventHandler(this.lblModulo_Click); + // + // lblD_Mks_ET + // + this.lblD_Mks_ET.AutoSize = true; + this.lblD_Mks_ET.BackColor = System.Drawing.Color.Lavender; + this.lblD_Mks_ET.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Mks_ET.Location = new System.Drawing.Point(35, 279); + this.lblD_Mks_ET.Name = "lblD_Mks_ET"; + this.lblD_Mks_ET.Size = new System.Drawing.Size(50, 24); + this.lblD_Mks_ET.TabIndex = 24; + this.lblD_Mks_ET.Text = "MKS"; + this.lblD_Mks_ET.Click += new System.EventHandler(this.lblModulo_Click); + // + // lblD_Mvd_ET + // + this.lblD_Mvd_ET.AutoSize = true; + this.lblD_Mvd_ET.BackColor = System.Drawing.Color.Lavender; + this.lblD_Mvd_ET.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Mvd_ET.Location = new System.Drawing.Point(35, 255); + this.lblD_Mvd_ET.Name = "lblD_Mvd_ET"; + this.lblD_Mvd_ET.Size = new System.Drawing.Size(52, 24); + this.lblD_Mvd_ET.TabIndex = 23; + this.lblD_Mvd_ET.Text = "MVD"; + this.lblD_Mvd_ET.Click += new System.EventHandler(this.lblModulo_Click); + // + // lblD_Cam_S0 + // + this.lblD_Cam_S0.AutoSize = true; + this.lblD_Cam_S0.BackColor = System.Drawing.Color.Lavender; + this.lblD_Cam_S0.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Cam_S0.Location = new System.Drawing.Point(72, 346); + this.lblD_Cam_S0.Name = "lblD_Cam_S0"; + this.lblD_Cam_S0.Size = new System.Drawing.Size(52, 24); + this.lblD_Cam_S0.TabIndex = 29; + this.lblD_Cam_S0.Text = "CAM"; + this.lblD_Cam_S0.Click += new System.EventHandler(this.lblModulo_Click); + // + // lblD_Cam_S1 + // + this.lblD_Cam_S1.AutoSize = true; + this.lblD_Cam_S1.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Cam_S1.Location = new System.Drawing.Point(234, 346); + this.lblD_Cam_S1.Name = "lblD_Cam_S1"; + this.lblD_Cam_S1.Size = new System.Drawing.Size(52, 24); + this.lblD_Cam_S1.TabIndex = 30; + this.lblD_Cam_S1.Text = "CAM"; + this.lblD_Cam_S1.Click += new System.EventHandler(this.lblModulo_Click); + // + // lblD_Cam_C + // + this.lblD_Cam_C.AutoSize = true; + this.lblD_Cam_C.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblD_Cam_C.Location = new System.Drawing.Point(153, 90); + this.lblD_Cam_C.Name = "lblD_Cam_C"; + this.lblD_Cam_C.Size = new System.Drawing.Size(52, 24); + this.lblD_Cam_C.TabIndex = 31; + this.lblD_Cam_C.Text = "CAM"; + this.lblD_Cam_C.Click += new System.EventHandler(this.lblModulo_Click); + // + // picDiagnosticos + // + this.picDiagnosticos.Cursor = System.Windows.Forms.Cursors.Default; + this.picDiagnosticos.Image = global::AgroBase.Properties.Resources.diagnostico; + this.picDiagnosticos.Location = new System.Drawing.Point(362, 12); + this.picDiagnosticos.Name = "picDiagnosticos"; + this.picDiagnosticos.Size = new System.Drawing.Size(130, 130); + this.picDiagnosticos.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picDiagnosticos.TabIndex = 25; + this.picDiagnosticos.TabStop = false; + // + // picOperacao + // + this.picOperacao.Cursor = System.Windows.Forms.Cursors.Default; + this.picOperacao.Image = global::AgroBase.Properties.Resources.cana; + this.picOperacao.Location = new System.Drawing.Point(509, 12); + this.picOperacao.Name = "picOperacao"; + this.picOperacao.Size = new System.Drawing.Size(130, 130); + this.picOperacao.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picOperacao.TabIndex = 26; + this.picOperacao.TabStop = false; + // + // picAjustes + // + this.picAjustes.Cursor = System.Windows.Forms.Cursors.Default; + this.picAjustes.Image = global::AgroBase.Properties.Resources.ajustes; + this.picAjustes.Location = new System.Drawing.Point(658, 12); + this.picAjustes.Name = "picAjustes"; + this.picAjustes.Size = new System.Drawing.Size(130, 130); + this.picAjustes.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picAjustes.TabIndex = 29; + this.picAjustes.TabStop = false; + // + // picDesligar + // + this.picDesligar.Cursor = System.Windows.Forms.Cursors.Default; + this.picDesligar.Image = global::AgroBase.Properties.Resources.desligar; + this.picDesligar.Location = new System.Drawing.Point(658, 302); + this.picDesligar.Name = "picDesligar"; + this.picDesligar.Size = new System.Drawing.Size(130, 130); + this.picDesligar.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picDesligar.TabIndex = 27; + this.picDesligar.TabStop = false; + // + // picRobo + // + this.picRobo.Image = global::AgroBase.Properties.Resources.robo_superior; + this.picRobo.Location = new System.Drawing.Point(12, 12); + this.picRobo.Name = "picRobo"; + this.picRobo.Size = new System.Drawing.Size(335, 420); + this.picRobo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picRobo.TabIndex = 1; + this.picRobo.TabStop = false; + // + // lblDiagnosticos + // + this.lblDiagnosticos.AutoSize = true; + this.lblDiagnosticos.BackColor = System.Drawing.Color.Transparent; + this.lblDiagnosticos.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblDiagnosticos.Location = new System.Drawing.Point(369, 162); + this.lblDiagnosticos.Name = "lblDiagnosticos"; + this.lblDiagnosticos.Size = new System.Drawing.Size(117, 24); + this.lblDiagnosticos.TabIndex = 32; + this.lblDiagnosticos.Text = "Diagnósticos"; + // + // lblOperacao + // + this.lblOperacao.AutoSize = true; + this.lblOperacao.BackColor = System.Drawing.Color.Transparent; + this.lblOperacao.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblOperacao.Location = new System.Drawing.Point(527, 162); + this.lblOperacao.Name = "lblOperacao"; + this.lblOperacao.Size = new System.Drawing.Size(94, 24); + this.lblOperacao.TabIndex = 33; + this.lblOperacao.Text = "Operação"; + // + // lblAjustes + // + this.lblAjustes.AutoSize = true; + this.lblAjustes.BackColor = System.Drawing.Color.Transparent; + this.lblAjustes.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblAjustes.Location = new System.Drawing.Point(689, 162); + this.lblAjustes.Name = "lblAjustes"; + this.lblAjustes.Size = new System.Drawing.Size(71, 24); + this.lblAjustes.TabIndex = 35; + this.lblAjustes.Text = "Ajustes"; + // + // lblDesligar + // + this.lblDesligar.AutoSize = true; + this.lblDesligar.BackColor = System.Drawing.Color.Transparent; + this.lblDesligar.Cursor = System.Windows.Forms.Cursors.Hand; + this.lblDesligar.Location = new System.Drawing.Point(685, 450); + this.lblDesligar.Name = "lblDesligar"; + this.lblDesligar.Size = new System.Drawing.Size(78, 24); + this.lblDesligar.TabIndex = 36; + this.lblDesligar.Text = "Desligar"; // // frmIHM // - this.AutoScaleDimensions = new System.Drawing.SizeF(14F, 29F); + this.AutoScaleDimensions = new System.Drawing.SizeF(11F, 24F); this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.Font; this.BackColor = System.Drawing.Color.White; - this.ClientSize = new System.Drawing.Size(1020, 697); - this.Controls.Add(this.lblD_Lra); - this.Controls.Add(this.lblD_PZM); - this.Controls.Add(this.lblMqtt); - this.Controls.Add(this.lblOperacaoStatus); + this.ClientSize = new System.Drawing.Size(800, 480); + this.Controls.Add(this.lblDesligar); + this.Controls.Add(this.lblAjustes); this.Controls.Add(this.lblOperacao); - this.Controls.Add(this.cmbOperacao); - this.Controls.Add(this.btnIniciar); - this.Controls.Add(this.btnConfigurar); + this.Controls.Add(this.lblDiagnosticos); + this.Controls.Add(this.picDiagnosticos); + this.Controls.Add(this.picOperacao); + this.Controls.Add(this.lblD_Cam_C); + this.Controls.Add(this.picAjustes); + this.Controls.Add(this.lblD_Cam_S1); + this.Controls.Add(this.lblD_Cam_S0); + this.Controls.Add(this.picDesligar); + this.Controls.Add(this.lblD_Mks_ET); + this.Controls.Add(this.lblD_Mvd_ET); + this.Controls.Add(this.lblD_Mks_DT); + this.Controls.Add(this.lblD_Mks_EF); + this.Controls.Add(this.lblD_Mvd_EF); + this.Controls.Add(this.lblD_Mks_DF); + this.Controls.Add(this.lblD_Mvd_DT); + this.Controls.Add(this.lblD_Wit); + this.Controls.Add(this.lblD_Lra); + this.Controls.Add(this.lblD_Pzm); + this.Controls.Add(this.lblMqtt); this.Controls.Add(this.lblD_Gps); this.Controls.Add(this.lblD_Sen); this.Controls.Add(this.lblD_Atu); - this.Controls.Add(this.lblD_Dir); - this.Controls.Add(this.lblD_Mov); + this.Controls.Add(this.lblD_Mvd_DF); this.Controls.Add(this.picRobo); this.Font = new System.Drawing.Font("Microsoft Sans Serif", 14.25F, System.Drawing.FontStyle.Regular, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.FormBorderStyle = System.Windows.Forms.FormBorderStyle.None; this.Margin = new System.Windows.Forms.Padding(6); this.Name = "frmIHM"; this.StartPosition = System.Windows.Forms.FormStartPosition.CenterScreen; this.Text = "Agrobotics Persistence"; - this.WindowState = System.Windows.Forms.FormWindowState.Maximized; this.Load += new System.EventHandler(this.frmIHM_Load); + ((System.ComponentModel.ISupportInitialize)(this.picDiagnosticos)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picOperacao)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picAjustes)).EndInit(); + ((System.ComponentModel.ISupportInitialize)(this.picDesligar)).EndInit(); ((System.ComponentModel.ISupportInitialize)(this.picRobo)).EndInit(); this.ResumeLayout(false); this.PerformLayout(); @@ -217,18 +424,31 @@ #endregion private System.Windows.Forms.PictureBox picRobo; - private System.Windows.Forms.Label lblD_Mov; - private System.Windows.Forms.Label lblD_Dir; + private System.Windows.Forms.Label lblD_Mvd_DF; private System.Windows.Forms.Label lblD_Atu; private System.Windows.Forms.Label lblD_Sen; private System.Windows.Forms.Label lblD_Gps; - private System.Windows.Forms.Button btnConfigurar; - private System.Windows.Forms.Button btnIniciar; - private System.Windows.Forms.ComboBox cmbOperacao; - private System.Windows.Forms.Label lblOperacao; - private System.Windows.Forms.Label lblOperacaoStatus; private System.Windows.Forms.Label lblMqtt; - private System.Windows.Forms.Label lblD_PZM; + private System.Windows.Forms.Label lblD_Pzm; private System.Windows.Forms.Label lblD_Lra; + private System.Windows.Forms.Label lblD_Wit; + private System.Windows.Forms.Label lblD_Mvd_DT; + private System.Windows.Forms.Label lblD_Mks_DF; + private System.Windows.Forms.Label lblD_Mks_EF; + private System.Windows.Forms.Label lblD_Mvd_EF; + private System.Windows.Forms.Label lblD_Mks_DT; + private System.Windows.Forms.Label lblD_Mks_ET; + private System.Windows.Forms.Label lblD_Mvd_ET; + private System.Windows.Forms.PictureBox picDiagnosticos; + private System.Windows.Forms.PictureBox picOperacao; + private System.Windows.Forms.PictureBox picDesligar; + private System.Windows.Forms.Label lblD_Cam_S0; + private System.Windows.Forms.Label lblD_Cam_S1; + private System.Windows.Forms.Label lblD_Cam_C; + private System.Windows.Forms.PictureBox picAjustes; + private System.Windows.Forms.Label lblDiagnosticos; + private System.Windows.Forms.Label lblOperacao; + private System.Windows.Forms.Label lblAjustes; + private System.Windows.Forms.Label lblDesligar; } } \ No newline at end of file diff --git a/AgroBase/AgroBase/Forms/IHM/frmIHM.cs b/AgroBase/AgroBase/Forms/IHM/frmIHM.cs index f72264c69..4bd5e3ba9 100644 --- a/AgroBase/AgroBase/Forms/IHM/frmIHM.cs +++ b/AgroBase/AgroBase/Forms/IHM/frmIHM.cs @@ -6,6 +6,7 @@ using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; +using System.Diagnostics; using System.Drawing; using System.IO.Ports; using System.Linq; @@ -25,17 +26,44 @@ namespace AgroBase.Forms.IHM InitializeComponent(); } - private void frmIHM_Load(object sender, EventArgs e) { tmrDispositivos.Tick += TmrDispositivos_Tick; tmrDispositivos.Start(); - cmbOperacao.Items.Clear(); - cmbOperacao.Items.AddRange(Enum.GetNames(typeof(ModoOperacao))); - cmbOperacao.SelectedIndex = (int)Variaveis.OperacaoEmAndamento.Modo; - - Variaveis.OperacaoEmAndamento = OperacaoModel.CarregarOperacaoPersonalizada(Application.StartupPath + "\\operacao" + Enum.GetName(typeof(ModoOperacao), Variaveis.OperacaoEmAndamento.Modo) + ".opr"); + FuncoesGlobais.DefinirEventosPicBtn(picOperacao, async () => + { + frmInicioOperacao frm = new frmInicioOperacao(); + frm.ShowDialog(); + }); + FuncoesGlobais.DefinirEventosPicBtn(picDiagnosticos, async () => + { + + }); + /*FuncoesGlobais.DefinirEventosPicBtn(picComunicacao, async () => + { + if (LoRaService.Iniciado) + { + frmLoraConfig frm = new frmLoraConfig(Variaveis.ConexaoLoRa); + frm.Show(); + } + else + { + MessageBox.Show("Módulo LoRa de comunicação não está conectado ou não está no modo de parametrização!", "Aviso", MessageBoxButtons.OK, MessageBoxIcon.Information); + } + });*/ + FuncoesGlobais.DefinirEventosPicBtn(picAjustes, async () => + { + frmAjustes frm = new frmAjustes(Variaveis.ConexaoLoRa); + frm.ShowDialog(); + }); + FuncoesGlobais.DefinirEventosPicBtn(picDesligar, async () => + { + if (MessageBox.Show("Deseja desligar o equipamento?", "Desligar", MessageBoxButtons.YesNo, MessageBoxIcon.Question) == DialogResult.Yes) + { + Process.Start("shutdown", "/s /t 0"); + } + }); } private void TmrDispositivos_Tick(object sender, EventArgs e) @@ -45,57 +73,38 @@ namespace AgroBase.Forms.IHM var Labels = this.Controls.OfType