diff --git a/AgroBase/AgroBase/AgroBase.csproj b/AgroBase/AgroBase/AgroBase.csproj index b780ca09a..187194159 100644 --- a/AgroBase/AgroBase/AgroBase.csproj +++ b/AgroBase/AgroBase/AgroBase.csproj @@ -396,6 +396,9 @@ UserControl + + Component + UserControl @@ -441,12 +444,6 @@ Component - - UserControl - - - UserControl - Component @@ -463,7 +460,7 @@ Component - UserControl + Component UserControl @@ -481,6 +478,9 @@ UserControl + + Component + UserControl @@ -514,10 +514,10 @@ frmOperacao.cs - + UserControl - + HmiCompactMetricCard.cs @@ -971,6 +971,21 @@ frmOperacao.cs Designer + + ucParametrosAtuador.cs + + + ucOperacaoMovimentacao.cs + + + ucOperacaoNavegacao.cs + + + ucOperacaoParametros.cs + + + ucOperacaoPulverizador.cs + frmSimulacaoMapaGPS.cs diff --git a/AgroBase/AgroBase/Forms/IHM/Controls/HmiBufferedListView.cs b/AgroBase/AgroBase/Forms/IHM/Controls/HmiBufferedListView.cs new file mode 100644 index 000000000..6ae325a48 --- /dev/null +++ b/AgroBase/AgroBase/Forms/IHM/Controls/HmiBufferedListView.cs @@ -0,0 +1,88 @@ +using System.Collections.Generic; +using System; +using System.Windows.Forms; + +namespace AgroBase.Forms.IHM.Controls +{ + public class HmiBufferedListView : ListView + { + public HmiBufferedListView() + { + DoubleBuffered = true; + SetStyle( + ControlStyles.OptimizedDoubleBuffer | + ControlStyles.AllPaintingInWmPaint, + true); + + UpdateStyles(); + } + + public void SincronizarLista(IList novosItens) + { + var lista = this; + + if (lista == null) + return; + + novosItens = novosItens ?? new List(); + + lista.BeginUpdate(); + + try + { + int quantidadeComum = Math.Min(lista.Items.Count, novosItens.Count); + + /* + * Atualiza somente os itens cujo texto mudou. + */ + for (int i = 0; i < quantidadeComum; i++) + { + string novoTexto = novosItens[i] ?? string.Empty; + + if (lista.Items[i].Text != novoTexto) + lista.Items[i].Text = novoTexto; + } + + /* + * Adiciona somente os itens novos. + */ + for (int i = lista.Items.Count; i < novosItens.Count; i++) + { + lista.Items.Add(new ListViewItem(novosItens[i] ?? string.Empty)); + } + + /* + * Remove somente os itens excedentes. + * Remove de trás para frente. + */ + for (int i = lista.Items.Count - 1; i >= novosItens.Count; i--) + { + lista.Items.RemoveAt(i); + } + } + finally + { + lista.EndUpdate(); + } + } + + public bool EstaNoFinalDaLista() + { + var lista = this; + + if (lista == null || lista.Items.Count == 0) + { + return true; + } + + ListViewItem ultimoVisivel = lista.GetItemAt(2, Math.Max(0, lista.ClientSize.Height - 2)); + + if (ultimoVisivel == null) + return true; + + return ultimoVisivel.Index >= lista.Items.Count - 2; + } + + } + +} \ No newline at end of file diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/HmiCompactMetricCard.Designer.cs b/AgroBase/AgroBase/Forms/IHM/Controls/HmiCompactMetricCard.Designer.cs similarity index 100% rename from AgroBase/AgroBase/Forms/IHM/Operacao/HmiCompactMetricCard.Designer.cs rename to AgroBase/AgroBase/Forms/IHM/Controls/HmiCompactMetricCard.Designer.cs diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/HmiCompactMetricCard.cs b/AgroBase/AgroBase/Forms/IHM/Controls/HmiCompactMetricCard.cs similarity index 100% rename from AgroBase/AgroBase/Forms/IHM/Operacao/HmiCompactMetricCard.cs rename to AgroBase/AgroBase/Forms/IHM/Controls/HmiCompactMetricCard.cs diff --git a/AgroBase/AgroBase/Forms/IHM/Controls/HmiModuleBadge.cs b/AgroBase/AgroBase/Forms/IHM/Controls/HmiModuleBadge.cs index 9df3daa28..cfb4b94b1 100644 --- a/AgroBase/AgroBase/Forms/IHM/Controls/HmiModuleBadge.cs +++ b/AgroBase/AgroBase/Forms/IHM/Controls/HmiModuleBadge.cs @@ -1,173 +1,232 @@ using System; +using System.Collections.ObjectModel; using System.ComponentModel; using System.Drawing; using System.Drawing.Drawing2D; using System.Windows.Forms; - +using static AgroBase.Models.Enums; namespace AgroBase.Forms.IHM.Controls { - public enum HmiModuleState - { - Operante = 0, - Alerta = 1, - Falha = 2, - Desconectado = 3, - Selecionado = 4 - } - [DefaultEvent("Click")] public class HmiModuleBadge : Control { - private HmiModuleState _state = HmiModuleState.Operante; - private string _moduleCode = "MOD"; + private StatusModulo _state = StatusModulo.Desconectado; + private bool _selecionado; + private T_Code _moduleCode = T_Code.Vzo; + private S_Code _moduleSubCode = S_Code.sVZO; + private string _moduleId = string.Empty; + private bool _mandatorio; + private bool _emUso; + + public ObservableCollection CondicoesOperacionais { get; } = new ObservableCollection(); + public ObservableCollection Logs { get; } = new ObservableCollection(); public HmiModuleBadge() { - SetStyle( - ControlStyles.SupportsTransparentBackColor | - ControlStyles.UserPaint | - ControlStyles.AllPaintingInWmPaint | - ControlStyles.OptimizedDoubleBuffer | - ControlStyles.ResizeRedraw, - true); - + SetStyle(ControlStyles.SupportsTransparentBackColor | ControlStyles.UserPaint | ControlStyles.AllPaintingInWmPaint | ControlStyles.OptimizedDoubleBuffer | ControlStyles.ResizeRedraw, true); DoubleBuffered = true; BackColor = Color.Transparent; ForeColor = HmiTheme.Text; Cursor = Cursors.Hand; - Font = new Font("Segoe UI", 8F, FontStyle.Bold); - Size = new Size(45, 27); - MinimumSize = new Size(42, 26); + Font = new Font("Verdana", 6F, FontStyle.Bold); + Size = new Size(42, 20); + MinimumSize = new Size(53, 20); UpdateStyles(); } - [Category("Conteúdo")] - public string ModuleCode + public T_Code ModuleCode { - get { return _moduleCode; } + get + { + return _moduleCode; + } set { - _moduleCode = value ?? string.Empty; + _moduleCode = value; Invalidate(); } } - - [Category("Estado")] - public HmiModuleState State + [Category("Conteúdo")] + public S_Code ModuleSubCode { - get { return _state; } + get + { + return _moduleSubCode; + } + set + { + _moduleSubCode = value; + Invalidate(); + } + } + [Category("Conteúdo")] + public string ModuleID + { + get + { + return _moduleId; + } + set + { + _moduleId = value ?? string.Empty; + Invalidate(); + } + } + [Category("Estado")] + public StatusModulo State + { + get + { + return _state; + } set { _state = value; Invalidate(); } } - - private Color Accent + [Category("Estado")] + [DefaultValue(false)] + public bool Selecionado { get { - switch (_state) - { - case HmiModuleState.Alerta: - return HmiTheme.Warning; + return _selecionado; + } + set + { + if (_selecionado == value) + return; - case HmiModuleState.Falha: - return HmiTheme.Danger; - - case HmiModuleState.Desconectado: - return HmiTheme.TextMuted; - - case HmiModuleState.Selecionado: - return HmiTheme.Info; - - case HmiModuleState.Operante: - default: - return HmiTheme.Success; - } + _selecionado = value; + Invalidate(); + } + } + [Category("Estado")] + [DefaultValue(false)] + public bool Mandatorio + { + get + { + return _mandatorio; + } + set + { + _mandatorio = value; + Invalidate(); + } + } + [Category("Estado")] + [DefaultValue(true)] + public bool EmUso + { + get + { + return _emUso; + } + set + { + _emUso = value; + Invalidate(); } } - protected override void OnPaint(PaintEventArgs e) { base.OnPaint(e); - e.Graphics.SmoothingMode = SmoothingMode.AntiAlias; - - Rectangle rect = new Rectangle(0, 0, Width - 1, Height - 1); - - using (GraphicsPath path = CriarCaminhoArredondado(rect, 7)) + e.Graphics.PixelOffsetMode = PixelOffsetMode.HighQuality; + Rectangle rect = new Rectangle(0, 0, Math.Max(1, Width - 1), Math.Max(1, Height - 1)); + Color accent = FuncoesIHM.CorPorStatusModulo(State); + /* + * Fora de uso continua mostrando o estado conhecido, + * mas visualmente fica bastante reduzido. + */ + int alphaFundo = _emUso ? 34 : 14; + int alphaBorda = _emUso ? 255 : 95; + Color corFundo = Color.FromArgb(alphaFundo, accent.R, accent.G, accent.B); + Color corBorda = Color.FromArgb(alphaBorda, accent.R, accent.G, accent.B); + using (GraphicsPath path = CriarCaminhoArredondado(rect, 6)) + using (SolidBrush fill = new SolidBrush(corFundo)) + using (Pen border = new Pen(corBorda, 1.1F)) { - Color accent = Accent; + e.Graphics.FillPath(fill, path); + e.Graphics.DrawPath(border, path); + } - using (SolidBrush fill = new SolidBrush( - Color.FromArgb(34, accent.R, accent.G, accent.B))) - { - e.Graphics.FillPath(fill, path); - } + if (_selecionado) + { + Rectangle rectSelecao = new Rectangle(1, 1, Math.Max(1, Width - 3), Math.Max(1, Height - 3)); - using (Pen border = new Pen( - accent, - _state == HmiModuleState.Selecionado ? 2F : 1.2F)) + using (GraphicsPath pathSelecao = CriarCaminhoArredondado(rectSelecao, 6)) + using (Pen brilho = new Pen(Color.FromArgb(90, HmiTheme.Info.R, HmiTheme.Info.G, HmiTheme.Info.B), 3.5F)) + using (Pen bordaSelecao = new Pen(HmiTheme.Info, 1.7F)) { - e.Graphics.DrawPath(border, path); + e.Graphics.DrawPath(brilho, pathSelecao); + e.Graphics.DrawPath(bordaSelecao, pathSelecao); } } - TextRenderer.DrawText( - e.Graphics, - _moduleCode, - Font, - rect, - _state == HmiModuleState.Desconectado - ? HmiTheme.TextMuted - : HmiTheme.Text, - TextFormatFlags.HorizontalCenter | - TextFormatFlags.VerticalCenter | - TextFormatFlags.EndEllipsis); + Rectangle lockRect = new Rectangle(5, (Height - 12) / 2, 9, 12); + DesenharCadeado(e.Graphics, lockRect, _mandatorio, _emUso ? accent : HmiTheme.TextMuted); + Rectangle textRect = new Rectangle(15, 1, Math.Max(1, Width - 18), Math.Max(1, Height - 2)); + Color corTexto; + if (!_emUso) + { + corTexto = HmiTheme.TextMuted; + } + else if (_state == StatusModulo.Desconectado) + { + corTexto = HmiTheme.TextMuted; + } + else + { + corTexto = HmiTheme.Text; + } + TextRenderer.DrawText(e.Graphics, Text, Font, textRect, corTexto, TextFormatFlags.HorizontalCenter | TextFormatFlags.VerticalCenter | TextFormatFlags.EndEllipsis | TextFormatFlags.NoPadding); } - - private static GraphicsPath CriarCaminhoArredondado( - Rectangle bounds, - int radius) + private static void DesenharCadeado(Graphics graphics, Rectangle bounds, bool fechado, Color cor) + { + using (Pen pen = new Pen(cor, 1.3F)) + using (SolidBrush brush = new SolidBrush(Color.FromArgb(55, cor.R, cor.G, cor.B))) + { + pen.StartCap = LineCap.Round; + pen.EndCap = LineCap.Round; + Rectangle corpo = new Rectangle(bounds.X, bounds.Y + 5, bounds.Width, bounds.Height - 5); + graphics.FillRectangle(brush, corpo); + graphics.DrawRectangle(pen, corpo); + if (fechado) + { + Rectangle arco = new Rectangle(bounds.X + 2, bounds.Y, bounds.Width - 4, 9); + graphics.DrawArc(pen, arco, 180, 180); + } + else + { + Rectangle arco = new Rectangle(bounds.X - 3, bounds.Y, bounds.Width - 4, 9); + graphics.DrawArc(pen, arco, 180, 180); + } + Point centro = new Point(corpo.Left + corpo.Width / 2, corpo.Top + corpo.Height / 2); + using (SolidBrush keyBrush = new SolidBrush(cor)) + { + graphics.FillEllipse(keyBrush, centro.X - 1, centro.Y - 1, 2, 2); + } + } + } + private static GraphicsPath CriarCaminhoArredondado(Rectangle bounds, int radius) { GraphicsPath path = new GraphicsPath(); - int diameter = radius * 2; - - path.AddArc( - bounds.Left, - bounds.Top, - diameter, - diameter, - 180, - 90); - - path.AddArc( - bounds.Right - diameter, - bounds.Top, - diameter, - diameter, - 270, - 90); - - path.AddArc( - bounds.Right - diameter, - bounds.Bottom - diameter, - diameter, - diameter, - 0, - 90); - - path.AddArc( - bounds.Left, - bounds.Bottom - diameter, - diameter, - diameter, - 90, - 90); - + int diameter = Math.Min(radius * 2, Math.Min(bounds.Width, bounds.Height)); + if (diameter <= 0) + { + path.AddRectangle(bounds); + path.CloseFigure(); + return path; + } + path.AddArc(bounds.Left, bounds.Top, diameter, diameter, 180, 90); + path.AddArc(bounds.Right - diameter, bounds.Top, diameter, diameter, 270, 90); + path.AddArc(bounds.Right - diameter, bounds.Bottom - diameter, diameter, diameter, 0, 90); + path.AddArc(bounds.Left, bounds.Bottom - diameter, diameter, diameter, 90, 90); path.CloseFigure(); return path; } } -} +} \ No newline at end of file diff --git a/AgroBase/AgroBase/Forms/IHM/Controls/HmiNumericField.cs b/AgroBase/AgroBase/Forms/IHM/Controls/HmiNumericField.cs deleted file mode 100644 index ea1d88a43..000000000 --- a/AgroBase/AgroBase/Forms/IHM/Controls/HmiNumericField.cs +++ /dev/null @@ -1,159 +0,0 @@ -using System; -using System.ComponentModel; -using System.Drawing; -using System.Windows.Forms; - -namespace AgroBase.Forms.IHM.Controls -{ - /// - /// Campo numérico compacto, padronizado e amigável para touchscreen. - /// - [DefaultEvent("ValueChanged")] - public class HmiNumericField : UserControl - { - private readonly TableLayoutPanel _layout; - private readonly Label _lblTitulo; - private readonly NumericUpDown _numeric; - private readonly Label _lblUnidade; - - public event EventHandler ValueChanged; - - public HmiNumericField() - { - DoubleBuffered = true; - BackColor = Color.Transparent; - Height = 53; - MinimumSize = Size.Empty; - Dock = DockStyle.Fill; - Margin = new Padding(2); - - _layout = new TableLayoutPanel - { - Dock = DockStyle.Fill, - BackColor = Color.Transparent, - ColumnCount = 2, - RowCount = 2, - Margin = Padding.Empty, - Padding = Padding.Empty - }; - - _layout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); - _layout.ColumnStyles.Add(new ColumnStyle(SizeType.AutoSize)); - _layout.RowStyles.Add(new RowStyle(SizeType.Absolute, 21F)); - _layout.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); - - _lblTitulo = new Label - { - Dock = DockStyle.Fill, - AutoSize = false, - AutoEllipsis = true, - BackColor = Color.Transparent, - ForeColor = HmiTheme.TextMuted, - Font = new Font("Segoe UI", 7.6F, FontStyle.Regular), - Text = "Parâmetro", - TextAlign = ContentAlignment.BottomLeft, - Margin = Padding.Empty - }; - - _numeric = new NumericUpDown - { - Dock = DockStyle.Fill, - BackColor = HmiTheme.SurfaceRaised, - ForeColor = HmiTheme.Text, - BorderStyle = BorderStyle.FixedSingle, - Font = new Font("Segoe UI", 10.5F, FontStyle.Bold), - TextAlign = HorizontalAlignment.Center, - DecimalPlaces = 1, - Minimum = -100000, - Maximum = 100000, - Increment = 1, - Margin = new Padding(0, 2, 4, 0), - ThousandsSeparator = false - }; - - _lblUnidade = new Label - { - AutoSize = true, - Anchor = AnchorStyles.Right, - BackColor = Color.Transparent, - ForeColor = HmiTheme.TextMuted, - Font = new Font("Segoe UI", 8F, FontStyle.Bold), - Text = string.Empty, - TextAlign = ContentAlignment.MiddleRight, - Margin = new Padding(3, 0, 2, 0) - }; - - _layout.Controls.Add(_lblTitulo, 0, 0); - _layout.SetColumnSpan(_lblTitulo, 2); - _layout.Controls.Add(_numeric, 0, 1); - _layout.Controls.Add(_lblUnidade, 1, 1); - - Controls.Add(_layout); - - _numeric.ValueChanged += delegate - { - if (ValueChanged != null) - ValueChanged(this, EventArgs.Empty); - }; - } - - [Category("Conteúdo")] - public string Titulo - { - get { return _lblTitulo.Text; } - set { _lblTitulo.Text = value ?? string.Empty; } - } - - [Category("Conteúdo")] - public string Unidade - { - get { return _lblUnidade.Text; } - set { _lblUnidade.Text = value ?? string.Empty; } - } - - [Category("Dados")] - public decimal Value - { - get { return _numeric.Value; } - set - { - decimal ajustado = Math.Max(_numeric.Minimum, Math.Min(_numeric.Maximum, value)); - _numeric.Value = ajustado; - } - } - - [Category("Dados")] - public decimal Minimum - { - get { return _numeric.Minimum; } - set { _numeric.Minimum = value; } - } - - [Category("Dados")] - public decimal Maximum - { - get { return _numeric.Maximum; } - set { _numeric.Maximum = value; } - } - - [Category("Dados")] - public decimal Increment - { - get { return _numeric.Increment; } - set { _numeric.Increment = value; } - } - - [Category("Dados")] - public int DecimalPlaces - { - get { return _numeric.DecimalPlaces; } - set { _numeric.DecimalPlaces = Math.Max(0, Math.Min(4, value)); } - } - - [Browsable(false)] - public NumericUpDown NumericControl - { - get { return _numeric; } - } - } -} diff --git a/AgroBase/AgroBase/Forms/IHM/Controls/HmiNumericParameterCard.cs b/AgroBase/AgroBase/Forms/IHM/Controls/HmiNumericParameterCard.cs deleted file mode 100644 index c8ae592cf..000000000 --- a/AgroBase/AgroBase/Forms/IHM/Controls/HmiNumericParameterCard.cs +++ /dev/null @@ -1,185 +0,0 @@ -using AgroBase.Forms.IHM.Controls; -using System; -using System.ComponentModel; -using System.Drawing; -using System.Windows.Forms; - -namespace AgroBase.Forms.IHM.Operacao.Parametros.Controls -{ - [DefaultEvent("ValueChanged")] - public class HmiNumericParameterCard : UserControl - { - private readonly Label _lblTitulo; - private readonly Label _lblDescricao; - private readonly NumericUpDown _numeric; - private readonly Label _lblUnidade; - private readonly ToolTip _toolTip; - - public event EventHandler ValueChanged; - - public HmiNumericParameterCard() - { - DoubleBuffered = true; - BackColor = HmiTheme.SurfaceRaised; - Margin = new Padding(3); - Padding = new Padding(10, 7, 10, 7); - MinimumSize = new Size(180, 88); - - TableLayoutPanel root = new TableLayoutPanel - { - Dock = DockStyle.Fill, - BackColor = Color.Transparent, - ColumnCount = 2, - RowCount = 3, - Margin = Padding.Empty, - Padding = Padding.Empty - }; - - root.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); - root.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 42F)); - - root.RowStyles.Add(new RowStyle(SizeType.Absolute, 28F)); - root.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); - - _lblTitulo = new Label - { - Dock = DockStyle.Fill, - AutoSize = false, - BackColor = Color.Transparent, - ForeColor = HmiTheme.Text, - Font = new Font("Segoe UI", 8.2F, FontStyle.Bold), - Text = "Parâmetro", - TextAlign = ContentAlignment.MiddleLeft, - AutoEllipsis = true, - Margin = Padding.Empty - }; - - _lblDescricao = new Label - { - Dock = DockStyle.Fill, - AutoSize = false, - BackColor = Color.Transparent, - ForeColor = HmiTheme.TextMuted, - Font = new Font("Segoe UI", 6.5F), - Text = "Descrição", - TextAlign = ContentAlignment.TopLeft, - AutoEllipsis = true, - Margin = Padding.Empty - }; - - _toolTip = new ToolTip(); - - _numeric = new NumericUpDown - { - Dock = DockStyle.Fill, - BackColor = HmiTheme.Surface, - ForeColor = HmiTheme.Text, - BorderStyle = BorderStyle.FixedSingle, - Font = new Font("Segoe UI", 9.5F, FontStyle.Bold), - TextAlign = HorizontalAlignment.Center, - Minimum = 0, - Maximum = 100, - DecimalPlaces = 1, - Increment = 0.5M, - Margin = new Padding(0, 3, 5, 3) - }; - - _lblUnidade = new Label - { - Dock = DockStyle.Fill, - AutoSize = false, - BackColor = Color.Transparent, - ForeColor = HmiTheme.TextMuted, - Font = new Font("Segoe UI", 8F, FontStyle.Bold), - Text = "m", - TextAlign = ContentAlignment.MiddleCenter, - Margin = new Padding(0, 3, 0, 3) - }; - - root.Controls.Add(_lblTitulo, 0, 0); - root.SetColumnSpan(_lblTitulo, 2); - root.Controls.Add(_numeric, 0, 1); - root.Controls.Add(_lblUnidade, 1, 1); - - Controls.Add(root); - - _numeric.ValueChanged += delegate - { - if (ValueChanged != null) - ValueChanged(this, EventArgs.Empty); - }; - } - - [Category("Conteúdo")] - public string Titulo - { - get { return _lblTitulo.Text; } - set { _lblTitulo.Text = value ?? string.Empty; } - } - - [Category("Conteúdo")] - public string Descricao - { - get { return _lblDescricao.Text; } - set - { - _lblDescricao.Text = value ?? string.Empty; - _toolTip.SetToolTip(this, _lblDescricao.Text); - _toolTip.SetToolTip(_lblTitulo, _lblDescricao.Text); - _toolTip.SetToolTip(_numeric, _lblDescricao.Text); - } - } - - [Category("Conteúdo")] - public string Unidade - { - get { return _lblUnidade.Text; } - set { _lblUnidade.Text = value ?? string.Empty; } - } - - [Category("Dados")] - public decimal Value - { - get { return _numeric.Value; } - set - { - decimal novo = Math.Max(_numeric.Minimum, Math.Min(_numeric.Maximum, value)); - _numeric.Value = novo; - } - } - - [Category("Dados")] - public decimal Minimum - { - get { return _numeric.Minimum; } - set { _numeric.Minimum = value; } - } - - [Category("Dados")] - public decimal Maximum - { - get { return _numeric.Maximum; } - set { _numeric.Maximum = value; } - } - - [Category("Dados")] - public decimal Increment - { - get { return _numeric.Increment; } - set { _numeric.Increment = value; } - } - - [Category("Dados")] - public int DecimalPlaces - { - get { return _numeric.DecimalPlaces; } - set { _numeric.DecimalPlaces = Math.Max(0, value); } - } - - [Browsable(false)] - public NumericUpDown Numeric - { - get { return _numeric; } - } - } -} diff --git a/AgroBase/AgroBase/Forms/IHM/Controls/HmiRoundedPanel.cs b/AgroBase/AgroBase/Forms/IHM/Controls/HmiRoundedPanel.cs index c235dbad5..39e8f0423 100644 --- a/AgroBase/AgroBase/Forms/IHM/Controls/HmiRoundedPanel.cs +++ b/AgroBase/AgroBase/Forms/IHM/Controls/HmiRoundedPanel.cs @@ -6,7 +6,7 @@ using System.Windows.Forms; namespace AgroBase.Forms.IHM.Controls { - public class HmiRoundedPanel : UserControl + public class HmiRoundedPanel : Panel { private Color _fillColor = HmiTheme.Surface; private Color _borderColor = HmiTheme.Border; diff --git a/AgroBase/AgroBase/Forms/IHM/Controls/HmiSprayerModuleHealthRow.cs b/AgroBase/AgroBase/Forms/IHM/Controls/HmiSprayerModuleHealthRow.cs index 3471391ea..8ea5d213f 100644 --- a/AgroBase/AgroBase/Forms/IHM/Controls/HmiSprayerModuleHealthRow.cs +++ b/AgroBase/AgroBase/Forms/IHM/Controls/HmiSprayerModuleHealthRow.cs @@ -1,6 +1,8 @@ -using System.ComponentModel; +using System; +using System.ComponentModel; using System.Drawing; using System.Windows.Forms; +using static AgroBase.Models.Enums; namespace AgroBase.Forms.IHM.Controls.Operacao { @@ -93,28 +95,31 @@ namespace AgroBase.Forms.IHM.Controls.Operacao } [Category("Conteúdo")] - public string Saude + public double Saude { - get { return _lblSaude.Text; } - set { _lblSaude.Text = value ?? string.Empty; } + get + { + double.TryParse(_lblSaude.Text.Replace("%", ""), out double _saude); + return _saude; + } + set { _lblSaude.Text = $"{value:F0}%"; } } [Category("Conteúdo")] - public string Status + public StatusModulo Status { - get { return _lblStatus.Text; } - set { _lblStatus.Text = value ?? string.Empty; } - } - - [Category("Aparência")] - public Color StatusColor - { - get { return _lblStatus.ForeColor; } - set + get { - _lblStatus.ForeColor = value; - _lblSaude.ForeColor = value; + Enum.TryParse(_lblStatus.Text, out StatusModulo _status); + return _status; + } + set + { + _lblStatus.Text = value.ToString(); + _lblStatus.ForeColor = FuncoesIHM.CorPorStatusModulo(value); + _lblSaude.ForeColor = FuncoesIHM.CorPorStatusModulo(value); } } + } } diff --git a/AgroBase/AgroBase/Forms/IHM/Controls/HmiStatusLegend.cs b/AgroBase/AgroBase/Forms/IHM/Controls/HmiStatusLegend.cs new file mode 100644 index 000000000..78a8f300f --- /dev/null +++ b/AgroBase/AgroBase/Forms/IHM/Controls/HmiStatusLegend.cs @@ -0,0 +1,84 @@ +using System; +using System.Drawing; +using System.Windows.Forms; + +namespace AgroBase.Forms.IHM.Controls +{ + public class HmiStatusLegend : Control + { + public HmiStatusLegend() + { + SetStyle( + ControlStyles.UserPaint | + ControlStyles.AllPaintingInWmPaint | + ControlStyles.OptimizedDoubleBuffer | + ControlStyles.ResizeRedraw | + ControlStyles.SupportsTransparentBackColor, + true); + + BackColor = Color.Transparent; + Font = new Font("Segoe UI", 7.5F); + Height = 24; + } + + protected override void OnPaint(PaintEventArgs e) + { + base.OnPaint(e); + + string[] textos = + { + "Operante", + "Alerta", + "Falha", + "Desconectado" + }; + + Color[] cores = + { + HmiTheme.Success, + HmiTheme.Warning, + HmiTheme.Danger, + HmiTheme.TextMuted + }; + + const int espacamento = 10; + const int diametro = 7; + const int distanciaTexto = 4; + + int larguraTotal = 0; + + for (int i = 0; i < textos.Length; i++) + { + Size tamanhoTexto = TextRenderer.MeasureText(textos[i], Font, Size.Empty, TextFormatFlags.NoPadding); + + larguraTotal += diametro + distanciaTexto + tamanhoTexto.Width; + + if (i < textos.Length - 1) + larguraTotal += espacamento; + } + + int x = Math.Max(0, (Width - larguraTotal) / 2); + int centroY = Height / 2; + + for (int i = 0; i < textos.Length; i++) + { + Rectangle circulo = new Rectangle(x, centroY - diametro / 2, diametro, diametro); + + using (SolidBrush brush = new SolidBrush(cores[i])) + { + e.Graphics.FillEllipse(brush, circulo); + } + + x += diametro + distanciaTexto; + + Size tamanhoTexto = TextRenderer.MeasureText(textos[i], Font, Size.Empty, TextFormatFlags.NoPadding); + + Rectangle textoRect = new Rectangle(x, 0, tamanhoTexto.Width, Height); + + TextRenderer.DrawText(e.Graphics, textos[i], Font, textoRect, HmiTheme.TextMuted, TextFormatFlags.VerticalCenter | TextFormatFlags.NoPadding); + + x += tamanhoTexto.Width + espacamento; + } + } + } +} \ No newline at end of file diff --git a/AgroBase/AgroBase/Forms/IHM/Controls/HmiWheelStatusCard.cs b/AgroBase/AgroBase/Forms/IHM/Controls/HmiWheelStatusCard.cs index 580e88fe5..2be8c6174 100644 --- a/AgroBase/AgroBase/Forms/IHM/Controls/HmiWheelStatusCard.cs +++ b/AgroBase/AgroBase/Forms/IHM/Controls/HmiWheelStatusCard.cs @@ -343,14 +343,14 @@ namespace AgroBase.Forms.IHM.Controls.Operacao public string DirecionalSp { get { return _lblDirSp.Text; } - set { _lblDirSp.Text = "SP " + (value ?? string.Empty); } + set { _lblDirSp.Text = "SP " + (value ?? string.Empty).Replace("SP ", ""); } } [Category("Conteúdo")] public string DirecionalAtual { get { return _lblDirAtual.Text; } - set { _lblDirAtual.Text = "AT " + (value ?? string.Empty); } + set { _lblDirAtual.Text = "AT " + (value ?? string.Empty).Replace("AT ", ""); } } [Category("Conteúdo")] @@ -364,14 +364,14 @@ namespace AgroBase.Forms.IHM.Controls.Operacao public string MovimentoSp { get { return _lblMovSp.Text; } - set { _lblMovSp.Text = "SP " + (value ?? string.Empty); } + set { _lblMovSp.Text = "SP " + (value ?? string.Empty).Replace("SP ", ""); } } [Category("Conteúdo")] public string MovimentoAtual { get { return _lblMovAtual.Text; } - set { _lblMovAtual.Text = "AT " + (value ?? string.Empty); } + set { _lblMovAtual.Text = "AT " + (value ?? string.Empty).Replace("AT ", ""); } } [Category("Conteúdo")] diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosAtuador.Designer.cs b/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosAtuador.Designer.cs index 39b929032..fbbf6cc97 100644 --- a/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosAtuador.Designer.cs +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosAtuador.Designer.cs @@ -1,4 +1,9 @@ using AgroBase.Models; +using MathNet.Numerics.Distributions; +using Newtonsoft.Json.Linq; +using System.Windows.Forms; +using System.Windows.Forms.DataVisualization.Charting; +using static System.Net.Mime.MediaTypeNames; namespace AgroBase.Forms.IHM.Operacao.Parametros { @@ -28,8 +33,8 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.paramKd = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); this.pnlPulverizacao = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.pulverizacaoLayout = new System.Windows.Forms.TableLayoutPanel(); - this.lblPulverizacaoTitulo = new System.Windows.Forms.Label(); this.pulverizacaoHeaderLayout = new System.Windows.Forms.TableLayoutPanel(); + this.lblPulverizacaoTitulo = new System.Windows.Forms.Label(); this.chkPulverizadorAutomatico = new System.Windows.Forms.CheckBox(); this.lblPulverizacaoDescricao = new System.Windows.Forms.Label(); this.parametrosLayout = new System.Windows.Forms.TableLayoutPanel(); @@ -51,7 +56,7 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros // // rootLayout // - this.rootLayout.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.Background; + this.rootLayout.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(17)))), ((int)(((byte)(20))))); this.rootLayout.ColumnCount = 2; this.rootLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 40F)); this.rootLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 60F)); @@ -59,9 +64,8 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.rootLayout.Controls.Add(this.pnlPulverizacao, 1, 0); this.rootLayout.Dock = System.Windows.Forms.DockStyle.Fill; this.rootLayout.Location = new System.Drawing.Point(0, 0); - this.rootLayout.Margin = System.Windows.Forms.Padding.Empty; + this.rootLayout.Margin = new System.Windows.Forms.Padding(0); this.rootLayout.Name = "rootLayout"; - this.rootLayout.Padding = System.Windows.Forms.Padding.Empty; this.rootLayout.RowCount = 1; this.rootLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.rootLayout.Size = new System.Drawing.Size(760, 286); @@ -69,9 +73,20 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros // // pnlAgitador // - ConfigurePanel(this.pnlAgitador, this.agitadorLayout); + this.pnlAgitador.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlAgitador.BackColor = System.Drawing.Color.Transparent; + this.pnlAgitador.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlAgitador.Controls.Add(this.agitadorLayout); + this.pnlAgitador.CornerRadius = 9; + this.pnlAgitador.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlAgitador.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlAgitador.Location = new System.Drawing.Point(0, 0); this.pnlAgitador.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); + this.pnlAgitador.MinimumSize = new System.Drawing.Size(30, 25); this.pnlAgitador.Name = "pnlAgitador"; + this.pnlAgitador.Padding = new System.Windows.Forms.Padding(8); + this.pnlAgitador.Size = new System.Drawing.Size(301, 286); + this.pnlAgitador.TabIndex = 0; // // agitadorLayout // @@ -85,34 +100,53 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.agitadorLayout.Location = new System.Drawing.Point(8, 8); this.agitadorLayout.Margin = new System.Windows.Forms.Padding(0); this.agitadorLayout.Name = "agitadorLayout"; - this.agitadorLayout.Padding = System.Windows.Forms.Padding.Empty; this.agitadorLayout.RowCount = 4; this.agitadorLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F)); this.agitadorLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 34F)); this.agitadorLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 50F)); this.agitadorLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.agitadorLayout.Size = new System.Drawing.Size(282, 270); + this.agitadorLayout.Size = new System.Drawing.Size(285, 270); this.agitadorLayout.TabIndex = 0; // // lblAgitadorTitulo // - SetupSectionTitle(this.lblAgitadorTitulo, "AGITADOR DE CALDA"); + this.lblAgitadorTitulo.AutoEllipsis = true; + this.lblAgitadorTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblAgitadorTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblAgitadorTitulo.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); + this.lblAgitadorTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblAgitadorTitulo.Location = new System.Drawing.Point(0, 0); + this.lblAgitadorTitulo.Margin = new System.Windows.Forms.Padding(0); this.lblAgitadorTitulo.Name = "lblAgitadorTitulo"; + this.lblAgitadorTitulo.Size = new System.Drawing.Size(285, 26); + this.lblAgitadorTitulo.TabIndex = 0; + this.lblAgitadorTitulo.Text = "AGITADOR DE CALDA"; + this.lblAgitadorTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblAgitadorDescricao // - SetupSectionDescription(this.lblAgitadorDescricao, "Selecione o modo e ajuste os ganhos PID usados no controle do agitador."); + this.lblAgitadorDescricao.AutoEllipsis = true; + this.lblAgitadorDescricao.BackColor = System.Drawing.Color.Transparent; + this.lblAgitadorDescricao.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblAgitadorDescricao.Font = new System.Drawing.Font("Segoe UI", 7F); + this.lblAgitadorDescricao.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblAgitadorDescricao.Location = new System.Drawing.Point(0, 26); + this.lblAgitadorDescricao.Margin = new System.Windows.Forms.Padding(0); this.lblAgitadorDescricao.Name = "lblAgitadorDescricao"; + this.lblAgitadorDescricao.Size = new System.Drawing.Size(285, 34); + this.lblAgitadorDescricao.TabIndex = 1; + this.lblAgitadorDescricao.Text = "Selecione o modo e ajuste os ganhos PID usados no controle do agitador."; // // seletorModoAgitador // + this.seletorModoAgitador.BackColor = System.Drawing.Color.Transparent; this.seletorModoAgitador.Dock = System.Windows.Forms.DockStyle.Fill; this.seletorModoAgitador.Location = new System.Drawing.Point(0, 63); this.seletorModoAgitador.Margin = new System.Windows.Forms.Padding(0, 3, 0, 5); this.seletorModoAgitador.MinimumSize = new System.Drawing.Size(0, 40); this.seletorModoAgitador.Name = "seletorModoAgitador"; - this.seletorModoAgitador.SelectedMode = Enums.ModoAgitadorCalda.SemAgitacao; - this.seletorModoAgitador.Size = new System.Drawing.Size(282, 42); + this.seletorModoAgitador.SelectedMode = AgroBase.Models.Enums.ModoAgitadorCalda.SemAgitacao; + this.seletorModoAgitador.Size = new System.Drawing.Size(285, 42); this.seletorModoAgitador.TabIndex = 2; // // pidLayout @@ -132,32 +166,115 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.pidLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); this.pidLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); this.pidLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.34F)); - this.pidLayout.Size = new System.Drawing.Size(282, 160); + this.pidLayout.Size = new System.Drawing.Size(285, 160); this.pidLayout.TabIndex = 3; // // paramKp // - SetupNumeric(this.paramKp, "Kp", "", 1.10M, 0M, 20M, 0.05M, 2); + this.paramKp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.paramKp.DecimalPlaces = 2; + this.paramKp.Dock = System.Windows.Forms.DockStyle.Fill; + this.paramKp.Increment = new decimal(new int[] { + 5, + 0, + 0, + 131072}); + this.paramKp.Location = new System.Drawing.Point(0, 2); this.paramKp.Margin = new System.Windows.Forms.Padding(0, 2, 0, 4); + this.paramKp.Maximum = new decimal(new int[] { + 20, + 0, + 0, + 0}); + this.paramKp.MinimumSize = new System.Drawing.Size(0, 60); this.paramKp.Name = "paramKp"; + this.paramKp.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.paramKp.Size = new System.Drawing.Size(285, 60); + this.paramKp.TabIndex = 0; + this.paramKp.Titulo = "Kp"; + this.paramKp.Unidade = ""; + this.paramKp.Value = new decimal(new int[] { + 110, + 0, + 0, + 131072}); // // paramKi // - SetupNumeric(this.paramKi, "Ki", "", 0.12M, 0M, 20M, 0.01M, 2); + this.paramKi.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.paramKi.DecimalPlaces = 2; + this.paramKi.Dock = System.Windows.Forms.DockStyle.Fill; + this.paramKi.Increment = new decimal(new int[] { + 1, + 0, + 0, + 131072}); + this.paramKi.Location = new System.Drawing.Point(0, 52); this.paramKi.Margin = new System.Windows.Forms.Padding(0, 2, 0, 4); + this.paramKi.Maximum = new decimal(new int[] { + 20, + 0, + 0, + 0}); + this.paramKi.MinimumSize = new System.Drawing.Size(0, 60); this.paramKi.Name = "paramKi"; + this.paramKi.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.paramKi.Size = new System.Drawing.Size(285, 60); + this.paramKi.TabIndex = 1; + this.paramKi.Titulo = "Ki"; + this.paramKi.Unidade = ""; + this.paramKi.Value = new decimal(new int[] { + 12, + 0, + 0, + 131072}); // // paramKd // - SetupNumeric(this.paramKd, "Kd", "", 0.03M, 0M, 20M, 0.01M, 2); + this.paramKd.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.paramKd.DecimalPlaces = 2; + this.paramKd.Dock = System.Windows.Forms.DockStyle.Fill; + this.paramKd.Increment = new decimal(new int[] { + 1, + 0, + 0, + 131072}); + this.paramKd.Location = new System.Drawing.Point(0, 102); this.paramKd.Margin = new System.Windows.Forms.Padding(0, 2, 0, 3); + this.paramKd.Maximum = new decimal(new int[] { + 20, + 0, + 0, + 0}); + this.paramKd.MinimumSize = new System.Drawing.Size(0, 60); this.paramKd.Name = "paramKd"; + this.paramKd.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.paramKd.Size = new System.Drawing.Size(285, 60); + this.paramKd.TabIndex = 2; + this.paramKd.Titulo = "Kd"; + this.paramKd.Unidade = ""; + this.paramKd.Value = new decimal(new int[] { + 3, + 0, + 0, + 131072}); // // pnlPulverizacao // - ConfigurePanel(this.pnlPulverizacao, this.pulverizacaoLayout); + this.pnlPulverizacao.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlPulverizacao.BackColor = System.Drawing.Color.Transparent; + this.pnlPulverizacao.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlPulverizacao.Controls.Add(this.pulverizacaoLayout); + this.pnlPulverizacao.CornerRadius = 9; + this.pnlPulverizacao.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlPulverizacao.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlPulverizacao.Location = new System.Drawing.Point(307, 0); this.pnlPulverizacao.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); + this.pnlPulverizacao.MinimumSize = new System.Drawing.Size(30, 25); this.pnlPulverizacao.Name = "pnlPulverizacao"; + this.pnlPulverizacao.Padding = new System.Windows.Forms.Padding(8); + this.pnlPulverizacao.Size = new System.Drawing.Size(453, 286); + this.pnlPulverizacao.TabIndex = 1; // // pulverizacaoLayout // @@ -170,12 +287,11 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.pulverizacaoLayout.Location = new System.Drawing.Point(8, 8); this.pulverizacaoLayout.Margin = new System.Windows.Forms.Padding(0); this.pulverizacaoLayout.Name = "pulverizacaoLayout"; - this.pulverizacaoLayout.Padding = System.Windows.Forms.Padding.Empty; this.pulverizacaoLayout.RowCount = 3; this.pulverizacaoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 26F)); this.pulverizacaoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 34F)); this.pulverizacaoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.pulverizacaoLayout.Size = new System.Drawing.Size(434, 270); + this.pulverizacaoLayout.Size = new System.Drawing.Size(437, 270); this.pulverizacaoLayout.TabIndex = 0; // // pulverizacaoHeaderLayout @@ -187,36 +303,60 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.pulverizacaoHeaderLayout.Controls.Add(this.lblPulverizacaoTitulo, 0, 0); this.pulverizacaoHeaderLayout.Controls.Add(this.chkPulverizadorAutomatico, 1, 0); this.pulverizacaoHeaderLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.pulverizacaoHeaderLayout.Margin = System.Windows.Forms.Padding.Empty; - this.pulverizacaoHeaderLayout.Padding = System.Windows.Forms.Padding.Empty; + this.pulverizacaoHeaderLayout.Location = new System.Drawing.Point(0, 0); + this.pulverizacaoHeaderLayout.Margin = new System.Windows.Forms.Padding(0); + this.pulverizacaoHeaderLayout.Name = "pulverizacaoHeaderLayout"; this.pulverizacaoHeaderLayout.RowCount = 1; this.pulverizacaoHeaderLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - // - // chkPulverizadorAutomatico - // - this.chkPulverizadorAutomatico.AutoSize = false; - this.chkPulverizadorAutomatico.Dock = System.Windows.Forms.DockStyle.Fill; - this.chkPulverizadorAutomatico.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkPulverizadorAutomatico.FlatAppearance.BorderSize = 0; - this.chkPulverizadorAutomatico.BackColor = System.Drawing.Color.Transparent; - this.chkPulverizadorAutomatico.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Success; - this.chkPulverizadorAutomatico.Font = new System.Drawing.Font("Segoe UI", 7F, System.Drawing.FontStyle.Bold); - this.chkPulverizadorAutomatico.Text = "Pulverizador automático"; - this.chkPulverizadorAutomatico.TextAlign = System.Drawing.ContentAlignment.MiddleRight; - this.chkPulverizadorAutomatico.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; - this.chkPulverizadorAutomatico.Margin = new System.Windows.Forms.Padding(0, 0, 2, 0); - this.chkPulverizadorAutomatico.Name = "chkPulverizadorAutomatico"; - this.chkPulverizadorAutomatico.TabIndex = 0; + this.pulverizacaoHeaderLayout.Size = new System.Drawing.Size(437, 26); + this.pulverizacaoHeaderLayout.TabIndex = 0; // // lblPulverizacaoTitulo // - SetupSectionTitle(this.lblPulverizacaoTitulo, "PULVERIZAÇÃO E WEED WORKER"); + this.lblPulverizacaoTitulo.AutoEllipsis = true; + this.lblPulverizacaoTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblPulverizacaoTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblPulverizacaoTitulo.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); + this.lblPulverizacaoTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblPulverizacaoTitulo.Location = new System.Drawing.Point(0, 0); + this.lblPulverizacaoTitulo.Margin = new System.Windows.Forms.Padding(0); this.lblPulverizacaoTitulo.Name = "lblPulverizacaoTitulo"; + this.lblPulverizacaoTitulo.Size = new System.Drawing.Size(267, 26); + this.lblPulverizacaoTitulo.TabIndex = 0; + this.lblPulverizacaoTitulo.Text = "PULVERIZAÇÃO E WEED WORKER"; + this.lblPulverizacaoTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // chkPulverizadorAutomatico + // + this.chkPulverizadorAutomatico.BackColor = System.Drawing.Color.Transparent; + this.chkPulverizadorAutomatico.CheckAlign = System.Drawing.ContentAlignment.MiddleRight; + this.chkPulverizadorAutomatico.Dock = System.Windows.Forms.DockStyle.Fill; + this.chkPulverizadorAutomatico.FlatAppearance.BorderSize = 0; + this.chkPulverizadorAutomatico.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.chkPulverizadorAutomatico.Font = new System.Drawing.Font("Segoe UI", 7F, System.Drawing.FontStyle.Bold); + this.chkPulverizadorAutomatico.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.chkPulverizadorAutomatico.Location = new System.Drawing.Point(267, 0); + this.chkPulverizadorAutomatico.Margin = new System.Windows.Forms.Padding(0, 0, 2, 0); + this.chkPulverizadorAutomatico.Name = "chkPulverizadorAutomatico"; + this.chkPulverizadorAutomatico.Size = new System.Drawing.Size(168, 26); + this.chkPulverizadorAutomatico.TabIndex = 0; + this.chkPulverizadorAutomatico.Text = "Pulverizador automático"; + this.chkPulverizadorAutomatico.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + this.chkPulverizadorAutomatico.UseVisualStyleBackColor = false; // // lblPulverizacaoDescricao // - SetupSectionDescription(this.lblPulverizacaoDescricao, "Defina os recursos da operação e os limites da região de atuação de cada bico."); + this.lblPulverizacaoDescricao.AutoEllipsis = true; + this.lblPulverizacaoDescricao.BackColor = System.Drawing.Color.Transparent; + this.lblPulverizacaoDescricao.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblPulverizacaoDescricao.Font = new System.Drawing.Font("Segoe UI", 7F); + this.lblPulverizacaoDescricao.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblPulverizacaoDescricao.Location = new System.Drawing.Point(0, 26); + this.lblPulverizacaoDescricao.Margin = new System.Windows.Forms.Padding(0); this.lblPulverizacaoDescricao.Name = "lblPulverizacaoDescricao"; + this.lblPulverizacaoDescricao.Size = new System.Drawing.Size(437, 34); + this.lblPulverizacaoDescricao.TabIndex = 1; + this.lblPulverizacaoDescricao.Text = "Defina os recursos da operação e os limites da região de atuação de cada bico."; // // parametrosLayout // @@ -234,54 +374,163 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.parametrosLayout.Location = new System.Drawing.Point(0, 60); this.parametrosLayout.Margin = new System.Windows.Forms.Padding(0); this.parametrosLayout.Name = "parametrosLayout"; - this.parametrosLayout.Padding = System.Windows.Forms.Padding.Empty; this.parametrosLayout.RowCount = 3; this.parametrosLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); this.parametrosLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); this.parametrosLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.34F)); - this.parametrosLayout.Size = new System.Drawing.Size(434, 210); + this.parametrosLayout.Size = new System.Drawing.Size(437, 210); this.parametrosLayout.TabIndex = 2; // // paramBicosEmUso // - SetupNumeric(this.paramBicosEmUso, "Bicos em uso", "", 7M, 1M, 12M, 1M, 0); + this.paramBicosEmUso.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.paramBicosEmUso.Dock = System.Windows.Forms.DockStyle.Fill; + this.paramBicosEmUso.Location = new System.Drawing.Point(2, 2); this.paramBicosEmUso.Margin = new System.Windows.Forms.Padding(2, 2, 4, 4); + this.paramBicosEmUso.Maximum = new decimal(new int[] { + 12, + 0, + 0, + 0}); + this.paramBicosEmUso.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.paramBicosEmUso.MinimumSize = new System.Drawing.Size(0, 60); this.paramBicosEmUso.Name = "paramBicosEmUso"; + this.paramBicosEmUso.Padding = new System.Windows.Forms.Padding(7, 5, 7, 5); + this.paramBicosEmUso.Size = new System.Drawing.Size(212, 63); + this.paramBicosEmUso.TabIndex = 0; + this.paramBicosEmUso.Titulo = "Bicos em uso"; + this.paramBicosEmUso.Unidade = ""; + this.paramBicosEmUso.Value = new decimal(new int[] { + 7, + 0, + 0, + 0}); // // paramPressaoLinha // - SetupNumeric(this.paramPressaoLinha, "Pressão da linha", "psi", 18M, 0M, 120M, 1M, 0); + this.paramPressaoLinha.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.paramPressaoLinha.Dock = System.Windows.Forms.DockStyle.Fill; + this.paramPressaoLinha.Location = new System.Drawing.Point(222, 2); this.paramPressaoLinha.Margin = new System.Windows.Forms.Padding(4, 2, 2, 4); + this.paramPressaoLinha.Maximum = new decimal(new int[] { + 120, + 0, + 0, + 0}); + this.paramPressaoLinha.MinimumSize = new System.Drawing.Size(0, 60); this.paramPressaoLinha.Name = "paramPressaoLinha"; + this.paramPressaoLinha.Padding = new System.Windows.Forms.Padding(7, 5, 7, 5); + this.paramPressaoLinha.Size = new System.Drawing.Size(213, 63); + this.paramPressaoLinha.TabIndex = 1; + this.paramPressaoLinha.Titulo = "Pressão da linha"; + this.paramPressaoLinha.Unidade = "psi"; + this.paramPressaoLinha.Value = new decimal(new int[] { + 18, + 0, + 0, + 0}); // // paramInicioTela // - SetupNumeric(this.paramInicioTela, "Início da atuação", "%", 85M, 0M, 100M, 1M, 0); + this.paramInicioTela.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.paramInicioTela.Dock = System.Windows.Forms.DockStyle.Fill; + this.paramInicioTela.Location = new System.Drawing.Point(2, 71); this.paramInicioTela.Margin = new System.Windows.Forms.Padding(2, 2, 4, 4); + this.paramInicioTela.MinimumSize = new System.Drawing.Size(0, 60); this.paramInicioTela.Name = "paramInicioTela"; + this.paramInicioTela.Padding = new System.Windows.Forms.Padding(7, 5, 7, 5); + this.paramInicioTela.Size = new System.Drawing.Size(212, 63); + this.paramInicioTela.TabIndex = 2; + this.paramInicioTela.Titulo = "Início da atuação"; + this.paramInicioTela.Unidade = "%"; + this.paramInicioTela.Value = new decimal(new int[] { + 85, + 0, + 0, + 0}); // // paramAlturaArea // - SetupNumeric(this.paramAlturaArea, "Altura da área", "%", 15M, 1M, 100M, 1M, 0); + this.paramAlturaArea.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.paramAlturaArea.Dock = System.Windows.Forms.DockStyle.Fill; + this.paramAlturaArea.Location = new System.Drawing.Point(222, 71); this.paramAlturaArea.Margin = new System.Windows.Forms.Padding(4, 2, 2, 4); + this.paramAlturaArea.Minimum = new decimal(new int[] { + 1, + 0, + 0, + 0}); + this.paramAlturaArea.MinimumSize = new System.Drawing.Size(0, 60); this.paramAlturaArea.Name = "paramAlturaArea"; + this.paramAlturaArea.Padding = new System.Windows.Forms.Padding(7, 5, 7, 5); + this.paramAlturaArea.Size = new System.Drawing.Size(213, 63); + this.paramAlturaArea.TabIndex = 3; + this.paramAlturaArea.Titulo = "Altura da área"; + this.paramAlturaArea.Unidade = "%"; + this.paramAlturaArea.Value = new decimal(new int[] { + 15, + 0, + 0, + 0}); // // paramErvasOn // - SetupNumeric(this.paramErvasOn, "Ervas para ligar", "%", 25.0M, 0M, 100M, 0.5M, 1); + this.paramErvasOn.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.paramErvasOn.DecimalPlaces = 1; + this.paramErvasOn.Dock = System.Windows.Forms.DockStyle.Fill; + this.paramErvasOn.Increment = new decimal(new int[] { + 5, + 0, + 0, + 65536}); + this.paramErvasOn.Location = new System.Drawing.Point(2, 140); this.paramErvasOn.Margin = new System.Windows.Forms.Padding(2, 2, 4, 0); + this.paramErvasOn.MinimumSize = new System.Drawing.Size(0, 60); this.paramErvasOn.Name = "paramErvasOn"; + this.paramErvasOn.Padding = new System.Windows.Forms.Padding(7, 5, 7, 5); + this.paramErvasOn.Size = new System.Drawing.Size(212, 70); + this.paramErvasOn.TabIndex = 4; + this.paramErvasOn.Titulo = "Ervas para ligar"; + this.paramErvasOn.Unidade = "%"; + this.paramErvasOn.Value = new decimal(new int[] { + 250, + 0, + 0, + 65536}); // // paramErvasOff // - SetupNumeric(this.paramErvasOff, "Ervas para desligar", "%", 15.0M, 0M, 100M, 0.5M, 1); + this.paramErvasOff.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.paramErvasOff.DecimalPlaces = 1; + this.paramErvasOff.Dock = System.Windows.Forms.DockStyle.Fill; + this.paramErvasOff.Increment = new decimal(new int[] { + 5, + 0, + 0, + 65536}); + this.paramErvasOff.Location = new System.Drawing.Point(222, 140); this.paramErvasOff.Margin = new System.Windows.Forms.Padding(4, 2, 2, 0); + this.paramErvasOff.MinimumSize = new System.Drawing.Size(0, 60); this.paramErvasOff.Name = "paramErvasOff"; + this.paramErvasOff.Padding = new System.Windows.Forms.Padding(7, 5, 7, 5); + this.paramErvasOff.Size = new System.Drawing.Size(213, 70); + this.paramErvasOff.TabIndex = 5; + this.paramErvasOff.Titulo = "Ervas para desligar"; + this.paramErvasOff.Unidade = "%"; + this.paramErvasOff.Value = new decimal(new int[] { + 150, + 0, + 0, + 65536}); // // ucParametrosAtuador // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.Background; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(17)))), ((int)(((byte)(20))))); this.Controls.Add(this.rootLayout); this.DoubleBuffered = true; this.Margin = new System.Windows.Forms.Padding(0); @@ -296,53 +545,7 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.pulverizacaoHeaderLayout.ResumeLayout(false); this.parametrosLayout.ResumeLayout(false); this.ResumeLayout(false); - } - private static void ConfigurePanel(AgroBase.Forms.IHM.Controls.HmiRoundedPanel panel, System.Windows.Forms.Control child) - { - panel.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; - panel.Controls.Add(child); - panel.CornerRadius = 9; - panel.Dock = System.Windows.Forms.DockStyle.Fill; - panel.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; - panel.Padding = new System.Windows.Forms.Padding(8); - } - - private static void SetupSectionTitle(System.Windows.Forms.Label label, string text) - { - label.AutoEllipsis = true; - label.BackColor = System.Drawing.Color.Transparent; - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); - label.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; - label.Margin = System.Windows.Forms.Padding.Empty; - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - } - - private static void SetupSectionDescription(System.Windows.Forms.Label label, string text) - { - label.AutoEllipsis = true; - label.BackColor = System.Drawing.Color.Transparent; - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.Font = new System.Drawing.Font("Segoe UI", 7F); - label.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; - label.Margin = System.Windows.Forms.Padding.Empty; - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.TopLeft; - } - - private static void SetupNumeric(AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField field, string title, string unit, decimal value, decimal minimum, decimal maximum, decimal increment, int decimalPlaces) - { - field.Dock = System.Windows.Forms.DockStyle.Fill; - field.MinimumSize = new System.Drawing.Size(0, 60); - field.Titulo = title; - field.Unidade = unit; - field.Minimum = minimum; - field.Maximum = maximum; - field.Increment = increment; - field.DecimalPlaces = decimalPlaces; - field.Value = value; } #endregion diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosAtuador.resx b/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosAtuador.resx new file mode 100644 index 000000000..1af7de150 --- /dev/null +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosAtuador.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/Operacao/Parametros/ucParametrosDirecional.Designer.cs b/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosDirecional.Designer.cs index 6c9527844..cb7af146f 100644 --- a/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosDirecional.Designer.cs +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosDirecional.Designer.cs @@ -1,4 +1,10 @@ using AgroBase.Models; +using MathNet.Numerics.Distributions; +using Newtonsoft.Json.Linq; +using System.Windows.Forms; +using System.Windows.Forms.DataVisualization.Charting; +using static System.Net.Mime.MediaTypeNames; +using static System.Windows.Forms.VisualStyles.VisualStyleElement.ProgressBar; namespace AgroBase.Forms.IHM.Operacao.Parametros { @@ -71,7 +77,12 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.rootLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 42F)); // Assistências - ConfigurePanel(this.pnlAssistencias, this.assistenciasLayout); + this.pnlAssistencias.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; + this.pnlAssistencias.Controls.Add(this.assistenciasLayout); + this.pnlAssistencias.CornerRadius = 9; + this.pnlAssistencias.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlAssistencias.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; + this.pnlAssistencias.Padding = new System.Windows.Forms.Padding(8); this.pnlAssistencias.Margin = new System.Windows.Forms.Padding(0, 0, 3, 3); this.pnlAssistencias.Padding = new System.Windows.Forms.Padding(8); @@ -88,8 +99,14 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.assistenciasLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); this.assistenciasLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - SetupSectionTitle(this.lblAssistenciasTitulo, "AUTOMAÇÃO E ASSISTÊNCIAS"); - SetupSectionDescription(this.lblAssistenciasDescricao, "Defina quais recursos podem interferir no controle direcional."); + this.lblAssistenciasTitulo.AutoEllipsis = true; + this.lblAssistenciasTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblAssistenciasTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblAssistenciasTitulo.Font = new System.Drawing.Font("Segoe UI", 6.7F); + this.lblAssistenciasTitulo.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; + this.lblAssistenciasTitulo.Margin = System.Windows.Forms.Padding.Empty; + this.lblAssistenciasTitulo.Text = "Defina quais recursos podem interferir no controle direcional."; + this.lblAssistenciasTitulo.TextAlign = System.Drawing.ContentAlignment.TopLeft; this.checksLayout.BackColor = System.Drawing.Color.Transparent; this.checksLayout.ColumnCount = 2; @@ -106,13 +123,37 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.checksLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.checksLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - SetupCheck(this.checkDirecionalAutomatico, "Direcional automático"); - SetupCheck(this.checkAssistidoSonar, "Assistido por sonar"); - SetupCheck(this.checkAssistidoImu, "Assistido por IMU"); - SetupCheck(this.checkImuPrefereArco, "IMU prefere arco"); + this.checkDirecionalAutomatico.Dock = System.Windows.Forms.DockStyle.Fill; + this.checkDirecionalAutomatico.Titulo = "Direcional automático"; + this.checkDirecionalAutomatico.Checked = true; + this.checkDirecionalAutomatico.Margin = new System.Windows.Forms.Padding(3); + this.checkDirecionalAutomatico.MinimumSize = System.Drawing.Size.Empty; + + this.checkAssistidoSonar.Dock = System.Windows.Forms.DockStyle.Fill; + this.checkAssistidoSonar.Titulo = "Assistido por sonar"; + this.checkAssistidoSonar.Checked = true; + this.checkAssistidoSonar.Margin = new System.Windows.Forms.Padding(3); + this.checkAssistidoSonar.MinimumSize = System.Drawing.Size.Empty; + + this.checkAssistidoImu.Dock = System.Windows.Forms.DockStyle.Fill; + this.checkAssistidoImu.Titulo = "Assistido por IMU"; + this.checkAssistidoImu.Checked = true; + this.checkAssistidoImu.Margin = new System.Windows.Forms.Padding(3); + this.checkAssistidoImu.MinimumSize = System.Drawing.Size.Empty; + + this.checkImuPrefereArco.Dock = System.Windows.Forms.DockStyle.Fill; + this.checkImuPrefereArco.Titulo = "IMU prefere arco"; + this.checkImuPrefereArco.Checked = true; + this.checkImuPrefereArco.Margin = new System.Windows.Forms.Padding(3); + this.checkImuPrefereArco.MinimumSize = System.Drawing.Size.Empty; // Controle direcional - ConfigurePanel(this.pnlControle, this.controleLayout); + this.pnlControle.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; + this.pnlControle.Controls.Add(this.controleLayout); + this.pnlControle.CornerRadius = 9; + this.pnlControle.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlControle.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; + this.pnlControle.Padding = new System.Windows.Forms.Padding(8); this.pnlControle.Margin = new System.Windows.Forms.Padding(3, 0, 0, 3); this.pnlControle.Padding = new System.Windows.Forms.Padding(8); @@ -133,8 +174,23 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.controleLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 25F)); this.controleLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - SetupSectionTitle(this.lblControleTitulo, "LIMITES DO DIRECIONAL"); - SetupSectionDescription(this.lblControleDescricao, "Ajuste o ângulo máximo e a velocidade usada pelos motores de passo."); + this.lblControleTitulo.AutoEllipsis = true; + this.lblControleTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblControleTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblControleTitulo.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); + this.lblControleTitulo.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; + this.lblControleTitulo.Margin = System.Windows.Forms.Padding.Empty; + this.lblControleTitulo.Text = "LIMITES DO DIRECIONAL"; + this.lblControleTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + + this.lblControleDescricao.AutoEllipsis = true; + this.lblControleDescricao.BackColor = System.Drawing.Color.Transparent; + this.lblControleDescricao.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblControleDescricao.Font = new System.Drawing.Font("Segoe UI", 6.7F); + this.lblControleDescricao.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; + this.lblControleDescricao.Margin = System.Windows.Forms.Padding.Empty; + this.lblControleDescricao.Text = "Ajuste o ângulo máximo e a velocidade usada pelos motores de passo."; + this.lblControleDescricao.TextAlign = System.Drawing.ContentAlignment.TopLeft; this.sliderAnguloMaximo.Dock = System.Windows.Forms.DockStyle.Fill; this.sliderAnguloMaximo.Margin = new System.Windows.Forms.Padding(0, 2, 3, 0); @@ -157,7 +213,12 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.sliderVelocidadeDirecional.AccentColor = AgroBase.Forms.IHM.Controls.HmiTheme.Info; // Controle e navegação - ConfigurePanel(this.pnlNavegacao, this.navegacaoLayout); + this.pnlNavegacao.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; + this.pnlNavegacao.Controls.Add(this.navegacaoLayout); + this.pnlNavegacao.CornerRadius = 9; + this.pnlNavegacao.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlNavegacao.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; + this.pnlNavegacao.Padding = new System.Windows.Forms.Padding(8); this.pnlNavegacao.Margin = new System.Windows.Forms.Padding(0, 3, 0, 0); this.pnlNavegacao.Padding = new System.Windows.Forms.Padding(8); @@ -177,18 +238,41 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.navegacaoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.navegacaoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - SetupSectionTitle(this.lblNavegacaoTitulo, "CONTROLE E NAVEGAÇÃO"); + this.lblNavegacaoTitulo.AutoEllipsis = true; + this.lblNavegacaoTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblNavegacaoTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblNavegacaoTitulo.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); + this.lblNavegacaoTitulo.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; + this.lblNavegacaoTitulo.Margin = System.Windows.Forms.Padding.Empty; + this.lblNavegacaoTitulo.Text = "CONTROLE E NAVEGAÇÃO"; + this.lblNavegacaoTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; this.seletorModoControle.Dock = System.Windows.Forms.DockStyle.Fill; this.seletorModoControle.Margin = new System.Windows.Forms.Padding(0, 1, 3, 0); this.seletorModoControle.MinimumSize = System.Drawing.Size.Empty; this.seletorModoControle.SelectedMode = Enums.TiposControladorDirecional.MPC; - SetupNumeric(this.parametroHorizonte, "Horizonte de predição", "m", 4M, 1M, 30M, 0.5M, 1); + this.parametroHorizonte.Dock = System.Windows.Forms.DockStyle.Fill; + this.parametroHorizonte.MinimumSize = new System.Drawing.Size(0, 60); + this.parametroHorizonte.Titulo = "Horizonte de predição"; + this.parametroHorizonte.Unidade = "m"; + this.parametroHorizonte.Minimum = 1M; + this.parametroHorizonte.Maximum = 30M; + this.parametroHorizonte.Increment = 0.5M; + this.parametroHorizonte.DecimalPlaces = 1; + this.parametroHorizonte.Value = 4M; this.parametroHorizonte.Margin = new System.Windows.Forms.Padding(3, 1, 3, 3); this.parametroHorizonte.Name = "parametroHorizonte"; - SetupNumeric(this.parametroDistanciaSaida, "Distância para manobra", "m", 5M, 0M, 20M, 0.5M, 1); + this.parametroDistanciaSaida.Dock = System.Windows.Forms.DockStyle.Fill; + this.parametroDistanciaSaida.MinimumSize = new System.Drawing.Size(0, 60); + this.parametroDistanciaSaida.Titulo = "Distância para manobra"; + this.parametroDistanciaSaida.Unidade = "m"; + this.parametroDistanciaSaida.Minimum = 0M; + this.parametroDistanciaSaida.Maximum = 20M; + this.parametroDistanciaSaida.Increment = 0.5M; + this.parametroDistanciaSaida.DecimalPlaces = 1; + this.parametroDistanciaSaida.Value = 5M; this.parametroDistanciaSaida.Margin = new System.Windows.Forms.Padding(3, 1, 0, 3); this.parametroDistanciaSaida.Name = "parametroDistanciaSaida"; @@ -211,62 +295,6 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.ResumeLayout(false); } - private static void ConfigurePanel(AgroBase.Forms.IHM.Controls.HmiRoundedPanel panel, System.Windows.Forms.Control child) - { - panel.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; - panel.Controls.Add(child); - panel.CornerRadius = 9; - panel.Dock = System.Windows.Forms.DockStyle.Fill; - panel.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; - panel.Padding = new System.Windows.Forms.Padding(8); - } - - private static void SetupSectionTitle(System.Windows.Forms.Label label, string text) - { - label.AutoEllipsis = true; - label.BackColor = System.Drawing.Color.Transparent; - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); - label.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; - label.Margin = System.Windows.Forms.Padding.Empty; - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - } - - private static void SetupSectionDescription(System.Windows.Forms.Label label, string text) - { - label.AutoEllipsis = true; - label.BackColor = System.Drawing.Color.Transparent; - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.Font = new System.Drawing.Font("Segoe UI", 6.7F); - label.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; - label.Margin = System.Windows.Forms.Padding.Empty; - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.TopLeft; - } - - private static void SetupCheck(AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactCheckRow check, string title) - { - check.Dock = System.Windows.Forms.DockStyle.Fill; - check.Titulo = title; - check.Checked = true; - check.Margin = new System.Windows.Forms.Padding(3); - check.MinimumSize = System.Drawing.Size.Empty; - } - - private static void SetupNumeric(AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField field, string title, string unit, decimal value, decimal minimum, decimal maximum, decimal increment, int decimalPlaces) - { - field.Dock = System.Windows.Forms.DockStyle.Fill; - field.MinimumSize = new System.Drawing.Size(0, 60); - field.Titulo = title; - field.Unidade = unit; - field.Minimum = minimum; - field.Maximum = maximum; - field.Increment = increment; - field.DecimalPlaces = decimalPlaces; - field.Value = value; - } - #endregion private System.Windows.Forms.TableLayoutPanel rootLayout; diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosMapa.Designer.cs b/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosMapa.Designer.cs index 85c4f2509..5de525e74 100644 --- a/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosMapa.Designer.cs +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosMapa.Designer.cs @@ -2,6 +2,7 @@ using AgroBase.Forms.IHM.Controls.Operacao; using System.Drawing; using System.Windows.Forms; +using System.Windows.Forms.DataVisualization.Charting; namespace AgroBase.Forms.IHM.Operacao.Parametros { @@ -127,10 +128,33 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.lblArquivoValor.Padding = new Padding(6, 0, 6, 0); this.lblArquivoValor.Margin = new Padding(0, 0, 0, 4); - ConfigurarMetrica(this.metricRuas, "Ruas", "0 / 0", 82); - ConfigurarMetrica(this.metricDistancia, "Distância", "0,0 m", 88); - ConfigurarMetrica(this.metricTempo, "Tempo estimado", "00:00:00", 88); - ConfigurarMetrica(this.metricMapaTotal, "Mapa total", "0,0 m", 88); + this.metricRuas.Dock = DockStyle.Fill; + this.metricRuas.Margin = Padding.Empty; + this.metricRuas.Titulo = "Ruas"; + this.metricRuas.Valor = "0 / 0"; + this.metricRuas.LarguraValor = 82; + this.metricRuas.CorValor = HmiTheme.Success; + + this.metricDistancia.Dock = DockStyle.Fill; + this.metricDistancia.Margin = Padding.Empty; + this.metricDistancia.Titulo = "Distância"; + this.metricDistancia.Valor = "0,0 m"; + this.metricDistancia.LarguraValor = 88; + this.metricDistancia.CorValor = HmiTheme.Success; + + this.metricTempo.Dock = DockStyle.Fill; + this.metricTempo.Margin = Padding.Empty; + this.metricTempo.Titulo = "Tempo estimado"; + this.metricTempo.Valor = "00:00:00"; + this.metricTempo.LarguraValor = 88; + this.metricTempo.CorValor = HmiTheme.Success; + + this.metricMapaTotal.Dock = DockStyle.Fill; + this.metricMapaTotal.Margin = Padding.Empty; + this.metricMapaTotal.Titulo = "Mapa total"; + this.metricMapaTotal.Valor = "0,0 m"; + this.metricMapaTotal.LarguraValor = 88; + this.metricMapaTotal.CorValor = HmiTheme.Success; this.lblInstrucao.Dock = DockStyle.Fill; this.lblInstrucao.BackColor = HmiTheme.SurfaceRaised; @@ -190,15 +214,6 @@ namespace AgroBase.Forms.IHM.Operacao.Parametros this.ResumeLayout(false); } - private static void ConfigurarMetrica(HmiNavigationMetric metric, string titulo, string valor, int larguraValor) - { - metric.Dock = DockStyle.Fill; - metric.Margin = Padding.Empty; - metric.Titulo = titulo; - metric.Valor = valor; - metric.LarguraValor = larguraValor; - metric.CorValor = HmiTheme.Success; - } private TableLayoutPanel rootLayout; diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosMovimento.Designer.cs b/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosMovimento.Designer.cs index ab42f797e..8f4950e74 100644 --- a/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosMovimento.Designer.cs +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/Parametros/ucParametrosMovimento.Designer.cs @@ -1,4 +1,10 @@ -namespace AgroBase.Forms.IHM.Operacao.Parametros +using MathNet.Numerics.Distributions; +using System.Windows.Forms; +using System.Windows.Forms.DataVisualization.Charting; +using static System.Net.Mime.MediaTypeNames; +using static System.Windows.Forms.VisualStyles.VisualStyleElement.ProgressBar; + +namespace AgroBase.Forms.IHM.Operacao.Parametros { partial class ucParametrosMovimento { @@ -55,7 +61,12 @@ this.rootLayout.RowCount = 1; this.rootLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - ConfigurePanel(this.pnlAutomacao, this.automacaoLayout); + this.pnlAutomacao.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; + this.pnlAutomacao.Controls.Add(this.automacaoLayout); + this.pnlAutomacao.CornerRadius = 9; + this.pnlAutomacao.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlAutomacao.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; + this.pnlAutomacao.Padding = new System.Windows.Forms.Padding(10); this.pnlAutomacao.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); this.automacaoLayout.ColumnCount = 1; @@ -71,8 +82,23 @@ this.automacaoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 32F)); this.automacaoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - SetupSectionTitle(this.lblAutomacaoTitulo, "AUTOMAÇÃO E ASSISTÊNCIAS"); - SetupSectionDescription(this.lblAutomacaoDescricao, "Ative somente os recursos que devem participar do controle de movimento."); + this.lblAutomacaoTitulo.AutoEllipsis = true; + this.lblAutomacaoTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblAutomacaoTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblAutomacaoTitulo.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); + this.lblAutomacaoTitulo.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; + this.lblAutomacaoTitulo.Margin = System.Windows.Forms.Padding.Empty; + this.lblAutomacaoTitulo.Text = "AUTOMAÇÃO E ASSISTÊNCIAS"; + this.lblAutomacaoTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + + this.lblAutomacaoDescricao.AutoEllipsis = true; + this.lblAutomacaoDescricao.BackColor = System.Drawing.Color.Transparent; + this.lblAutomacaoDescricao.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblAutomacaoDescricao.Font = new System.Drawing.Font("Segoe UI", 7F); + this.lblAutomacaoDescricao.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; + this.lblAutomacaoDescricao.Margin = System.Windows.Forms.Padding.Empty; + this.lblAutomacaoDescricao.Text = "Ative somente os recursos que devem participar do controle de movimento."; + this.lblAutomacaoDescricao.TextAlign = System.Drawing.ContentAlignment.TopLeft; this.checksLayout.BackColor = System.Drawing.Color.Transparent; this.checksLayout.ColumnCount = 2; @@ -92,14 +118,48 @@ this.checksLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); this.checksLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.34F)); - SetupCheck(this.checkMovimentoAutomatico, "Movimento automático"); - SetupCheck(this.checkAssistidoSonar, "Assistido por sonar"); - SetupCheck(this.checkParadaObstaculo, "Parada por obstáculo"); - SetupCheck(this.checkAssistidoImu, "Assistido por IMU"); - SetupCheck(this.checkParadaInclinacao, "Parada por inclinação"); - SetupCheck(this.checkFrenagemParar, "Frenagem ao parar"); + this.checkMovimentoAutomatico.Dock = System.Windows.Forms.DockStyle.Fill; + this.checkMovimentoAutomatico.Titulo = "Movimento automático"; + this.checkMovimentoAutomatico.Checked = true; + this.checkMovimentoAutomatico.Margin = new System.Windows.Forms.Padding(3); + this.checkMovimentoAutomatico.MinimumSize = System.Drawing.Size.Empty; - ConfigurePanel(this.pnlVelocidades, this.velocidadesLayout); + this.checkAssistidoSonar.Dock = System.Windows.Forms.DockStyle.Fill; + this.checkAssistidoSonar.Titulo = "Assistido por sonar"; + this.checkAssistidoSonar.Checked = true; + this.checkAssistidoSonar.Margin = new System.Windows.Forms.Padding(3); + this.checkAssistidoSonar.MinimumSize = System.Drawing.Size.Empty; + + this.checkParadaObstaculo.Dock = System.Windows.Forms.DockStyle.Fill; + this.checkParadaObstaculo.Titulo = "Parada por obstáculo"; + this.checkParadaObstaculo.Checked = true; + this.checkParadaObstaculo.Margin = new System.Windows.Forms.Padding(3); + this.checkParadaObstaculo.MinimumSize = System.Drawing.Size.Empty; + + this.checkAssistidoImu.Dock = System.Windows.Forms.DockStyle.Fill; + this.checkAssistidoImu.Titulo = "Assistido por IMU"; + this.checkAssistidoImu.Checked = true; + this.checkAssistidoImu.Margin = new System.Windows.Forms.Padding(3); + this.checkAssistidoImu.MinimumSize = System.Drawing.Size.Empty; + + this.checkParadaInclinacao.Dock = System.Windows.Forms.DockStyle.Fill; + this.checkParadaInclinacao.Titulo = "Parada por inclinação"; + this.checkParadaInclinacao.Checked = true; + this.checkParadaInclinacao.Margin = new System.Windows.Forms.Padding(3); + this.checkParadaInclinacao.MinimumSize = System.Drawing.Size.Empty; + + this.checkFrenagemParar.Dock = System.Windows.Forms.DockStyle.Fill; + this.checkFrenagemParar.Titulo = "Frenagem ao parar"; + this.checkFrenagemParar.Checked = true; + this.checkFrenagemParar.Margin = new System.Windows.Forms.Padding(3); + this.checkFrenagemParar.MinimumSize = System.Drawing.Size.Empty; + + this.pnlVelocidades.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; + this.pnlVelocidades.Controls.Add(this.velocidadesLayout); + this.pnlVelocidades.CornerRadius = 9; + this.pnlVelocidades.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlVelocidades.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; + this.pnlVelocidades.Padding = new System.Windows.Forms.Padding(10); this.pnlVelocidades.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); this.velocidadesLayout.ColumnCount = 1; @@ -117,8 +177,23 @@ this.velocidadesLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.velocidadesLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - SetupSectionTitle(this.lblVelocidadesTitulo, "LIMITES DE VELOCIDADE"); - SetupSectionDescription(this.lblVelocidadesDescricao, "A velocidade em km/h é calculada pelo percentual da velocidade máxima do equipamento."); + this.lblVelocidadesTitulo.AutoEllipsis = true; + this.lblVelocidadesTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblVelocidadesTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblVelocidadesTitulo.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); + this.lblVelocidadesTitulo.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; + this.lblVelocidadesTitulo.Margin = System.Windows.Forms.Padding.Empty; + this.lblVelocidadesTitulo.Text = "LIMITES DE VELOCIDADE"; + this.lblVelocidadesTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + + this.lblVelocidadesDescricao.AutoEllipsis = true; + this.lblVelocidadesDescricao.BackColor = System.Drawing.Color.Transparent; + this.lblVelocidadesDescricao.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblVelocidadesDescricao.Font = new System.Drawing.Font("Segoe UI", 7F); + this.lblVelocidadesDescricao.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; + this.lblVelocidadesDescricao.Margin = System.Windows.Forms.Padding.Empty; + this.lblVelocidadesDescricao.Text = "A velocidade em km/h é calculada pelo percentual da velocidade máxima do equipamento."; + this.lblVelocidadesDescricao.TextAlign = System.Drawing.ContentAlignment.TopLeft; this.sliderSemErvas.Dock = System.Windows.Forms.DockStyle.Fill; this.sliderSemErvas.Margin = new System.Windows.Forms.Padding(0, 2, 0, 3); @@ -150,49 +225,6 @@ this.ResumeLayout(false); } - private static void ConfigurePanel(AgroBase.Forms.IHM.Controls.HmiRoundedPanel panel, System.Windows.Forms.Control child) - { - panel.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; - panel.Controls.Add(child); - panel.CornerRadius = 9; - panel.Dock = System.Windows.Forms.DockStyle.Fill; - panel.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; - panel.Padding = new System.Windows.Forms.Padding(10); - } - - private static void SetupSectionTitle(System.Windows.Forms.Label label, string text) - { - label.AutoEllipsis = true; - label.BackColor = System.Drawing.Color.Transparent; - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); - label.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; - label.Margin = System.Windows.Forms.Padding.Empty; - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - } - - private static void SetupSectionDescription(System.Windows.Forms.Label label, string text) - { - label.AutoEllipsis = true; - label.BackColor = System.Drawing.Color.Transparent; - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.Font = new System.Drawing.Font("Segoe UI", 7F); - label.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; - label.Margin = System.Windows.Forms.Padding.Empty; - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.TopLeft; - } - - private static void SetupCheck(AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactCheckRow check, string title) - { - check.Dock = System.Windows.Forms.DockStyle.Fill; - check.Titulo = title; - check.Checked = true; - check.Margin = new System.Windows.Forms.Padding(3); - check.MinimumSize = System.Drawing.Size.Empty; - } - #endregion private System.Windows.Forms.TableLayoutPanel rootLayout; diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoMovimentacao.Designer.cs b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoMovimentacao.Designer.cs index 2b6c713c8..75c8881b8 100644 --- a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoMovimentacao.Designer.cs +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoMovimentacao.Designer.cs @@ -3,10 +3,14 @@ using AgroBase.Forms.IHM.Controls.Operacao; using AgroBase.Forms.IHM.Operacao.Parametros.Controls; using AgroBase.Models; using AgroBase.Models.Modules; +using MathNet.Numerics.Distributions; +using Newtonsoft.Json.Linq; using System; using System.Drawing; using System.Windows.Forms; +using System.Windows.Forms.DataVisualization.Charting; using static AgroBase.Models.Enums; +using static System.Net.Mime.MediaTypeNames; namespace AgroBase.Forms.IHM.Operacao { @@ -36,30 +40,27 @@ namespace AgroBase.Forms.IHM.Operacao private void InitializeComponent() { this.rootLayout = new System.Windows.Forms.TableLayoutPanel(); - this.leftLayout = new System.Windows.Forms.TableLayoutPanel(); this.pnlControle = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.controleLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblControleTitulo = new System.Windows.Forms.Label(); - this.lblJoystick = new System.Windows.Forms.Label(); this.cmbJoystick = new System.Windows.Forms.ComboBox(); this.sliderVelocidadeMax = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiParameterSliderRow(); this.sliderAngulo = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiParameterSliderRow(); this.sliderVelocidadeDir = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiParameterSliderRow(); + this.lblJoystick = new System.Windows.Forms.Label(); this.lblTipoMovimento = new System.Windows.Forms.Label(); this.cmbTipoMovimento = new System.Windows.Forms.ComboBox(); this.acoesLayout = new System.Windows.Forms.TableLayoutPanel(); this.btnControleManual = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); this.btnReferenciar = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); this.btnFreio = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); - this.pnlRodas = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.rodasLayout = new System.Windows.Forms.TableLayoutPanel(); this.cardEF = new AgroBase.Forms.IHM.Controls.Operacao.HmiWheelStatusCard(); this.cardDF = new AgroBase.Forms.IHM.Controls.Operacao.HmiWheelStatusCard(); this.cardET = new AgroBase.Forms.IHM.Controls.Operacao.HmiWheelStatusCard(); this.cardDT = new AgroBase.Forms.IHM.Controls.Operacao.HmiWheelStatusCard(); - this.centerLayout = new System.Windows.Forms.TableLayoutPanel(); this.pnlCamera = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.cameraLayout = new System.Windows.Forms.TableLayoutPanel(); @@ -68,7 +69,6 @@ namespace AgroBase.Forms.IHM.Operacao this.lblCameraStatus = new System.Windows.Forms.Label(); this.picCamera = new System.Windows.Forms.PictureBox(); this.cmbTipoFrame = new System.Windows.Forms.ComboBox(); - this.pnlRadar = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.radarLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblRadarTitulo = new System.Windows.Forms.Label(); @@ -80,7 +80,6 @@ namespace AgroBase.Forms.IHM.Operacao this.cardSonarLivreEsq = new AgroBase.Forms.IHM.Controls.Operacao.HmiCompactMetricCard(); this.cardSonarLivreDir = new AgroBase.Forms.IHM.Controls.Operacao.HmiCompactMetricCard(); this.cardSonarCorredor = new AgroBase.Forms.IHM.Controls.Operacao.HmiCompactMetricCard(); - this.rightLayout = new System.Windows.Forms.TableLayoutPanel(); this.pnlTelemetria = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.telemetryLayout = new System.Windows.Forms.TableLayoutPanel(); @@ -95,7 +94,6 @@ namespace AgroBase.Forms.IHM.Operacao this.telemetryVelMedia = new AgroBase.Forms.IHM.Controls.Operacao.HmiTelemetryRow(); this.telemetryAutonomiaM = new AgroBase.Forms.IHM.Controls.Operacao.HmiTelemetryRow(); this.telemetryAutonomiaTempo = new AgroBase.Forms.IHM.Controls.Operacao.HmiTelemetryRow(); - this.pnlImu = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.imuLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblImuTitulo = new System.Windows.Forms.Label(); @@ -104,13 +102,32 @@ namespace AgroBase.Forms.IHM.Operacao this.cardImuModo = new AgroBase.Forms.IHM.Controls.Operacao.HmiCompactMetricCard(); this.cardImuFator = new AgroBase.Forms.IHM.Controls.Operacao.HmiCompactMetricCard(); this.cardImuMotivo = new AgroBase.Forms.IHM.Controls.Operacao.HmiCompactMetricCard(); - + this.rootLayout.SuspendLayout(); + this.leftLayout.SuspendLayout(); + this.pnlControle.SuspendLayout(); + this.controleLayout.SuspendLayout(); + this.acoesLayout.SuspendLayout(); + this.pnlRodas.SuspendLayout(); + this.rodasLayout.SuspendLayout(); + this.centerLayout.SuspendLayout(); + this.pnlCamera.SuspendLayout(); + this.cameraLayout.SuspendLayout(); + this.cameraHeaderLayout.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picCamera)).BeginInit(); - + this.pnlRadar.SuspendLayout(); + this.radarLayout.SuspendLayout(); + this.radarInfoLayout.SuspendLayout(); + this.rightLayout.SuspendLayout(); + this.pnlTelemetria.SuspendLayout(); + this.telemetryLayout.SuspendLayout(); + this.pnlImu.SuspendLayout(); + this.imuLayout.SuspendLayout(); + this.imuInfoLayout.SuspendLayout(); this.SuspendLayout(); - - // root - this.rootLayout.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.Background; + // + // rootLayout + // + this.rootLayout.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(17)))), ((int)(((byte)(20))))); this.rootLayout.ColumnCount = 3; this.rootLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 37F)); this.rootLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 37F)); @@ -119,80 +136,229 @@ namespace AgroBase.Forms.IHM.Operacao this.rootLayout.Controls.Add(this.centerLayout, 1, 0); this.rootLayout.Controls.Add(this.rightLayout, 2, 0); this.rootLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.rootLayout.Margin = System.Windows.Forms.Padding.Empty; - this.rootLayout.Padding = System.Windows.Forms.Padding.Empty; + this.rootLayout.Location = new System.Drawing.Point(0, 0); + this.rootLayout.Margin = new System.Windows.Forms.Padding(0); + this.rootLayout.Name = "rootLayout"; this.rootLayout.RowCount = 1; this.rootLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - - // LEFT + this.rootLayout.Size = new System.Drawing.Size(784, 435); + this.rootLayout.TabIndex = 0; + // + // leftLayout + // this.leftLayout.ColumnCount = 1; this.leftLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.leftLayout.Controls.Add(this.pnlControle, 0, 0); this.leftLayout.Controls.Add(this.pnlRodas, 0, 1); this.leftLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.leftLayout.Location = new System.Drawing.Point(0, 0); this.leftLayout.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); + this.leftLayout.Name = "leftLayout"; this.leftLayout.RowCount = 2; this.leftLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 66F)); this.leftLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 34F)); - - ConfigurePanel(this.pnlControle, this.controleLayout); - ConfigurePanel(this.pnlRodas, this.rodasLayout); - + this.leftLayout.Size = new System.Drawing.Size(287, 435); + this.leftLayout.TabIndex = 0; + // + // pnlControle + // + this.pnlControle.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlControle.BackColor = System.Drawing.Color.Transparent; + this.pnlControle.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlControle.Controls.Add(this.controleLayout); + this.pnlControle.CornerRadius = 9; + this.pnlControle.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlControle.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlControle.Location = new System.Drawing.Point(0, 0); + this.pnlControle.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlControle.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlControle.Name = "pnlControle"; + this.pnlControle.Padding = new System.Windows.Forms.Padding(7); + this.pnlControle.Size = new System.Drawing.Size(287, 284); + this.pnlControle.TabIndex = 0; + // + // controleLayout + // this.controleLayout.ColumnCount = 3; this.controleLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 30F)); this.controleLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 36F)); this.controleLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 34F)); - this.controleLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.controleLayout.RowCount = 8; - this.controleLayout.RowStyles.Clear(); - this.controleLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 22F)); // título - this.controleLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 27F)); // joystick - this.controleLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33F)); // vel máxima - this.controleLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 33.33F)); // ângulo - this.controleLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 33.34F)); // vel dir - this.controleLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 17F)); // tipo - this.controleLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 28F)); // combo - this.controleLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 40F)); // ações - - SetupTitle(this.lblControleTitulo, "CONTROLE DE MOVIMENTO"); this.controleLayout.Controls.Add(this.lblControleTitulo, 0, 0); - this.controleLayout.SetColumnSpan(this.lblControleTitulo, 3); - - SetupCaption(this.lblJoystick, "Joystick"); - this.controleLayout.Controls.Add(this.lblJoystick, 0, 1); - - SetupCombo(this.cmbJoystick); - this.cmbJoystick.Items.AddRange(new object[] { "DualShock 4", "Joystick USB", "Nenhum" }); - this.cmbJoystick.SelectedIndex = 0; this.controleLayout.Controls.Add(this.cmbJoystick, 1, 1); - this.controleLayout.SetColumnSpan(this.cmbJoystick, 2); - - SetupParameterSlider(this.sliderVelocidadeMax, "Velocidade máxima", HmiTheme.Success, 0, 100, 30, HmiSliderValueFormat.PercentAndSpeed); - this.sliderVelocidadeMax.VelocidadeMaximaKmh = FuncoesMatematicas.CalculaVelocidadeRPM(VariaveisEquipamento.RPM_Max_Roda); this.controleLayout.Controls.Add(this.sliderVelocidadeMax, 0, 2); - this.controleLayout.SetColumnSpan(this.sliderVelocidadeMax, 3); - - SetupParameterSlider(this.sliderAngulo, "Ângulo direcional", HmiTheme.Manual, 0, 90, 12, HmiSliderValueFormat.Degrees); this.controleLayout.Controls.Add(this.sliderAngulo, 0, 3); - this.controleLayout.SetColumnSpan(this.sliderAngulo, 3); - - SetupParameterSlider(this.sliderVelocidadeDir, "Velocidade direcional", HmiTheme.Info, 0, 100, 55, HmiSliderValueFormat.PercentOnly); this.controleLayout.Controls.Add(this.sliderVelocidadeDir, 0, 4); - this.controleLayout.SetColumnSpan(this.sliderVelocidadeDir, 3); - - SetupCaption(this.lblTipoMovimento, "Tipo de movimento"); + this.controleLayout.Controls.Add(this.lblJoystick, 0, 1); this.controleLayout.Controls.Add(this.lblTipoMovimento, 0, 5); - this.controleLayout.SetColumnSpan(this.lblTipoMovimento, 3); - - SetupCombo(this.cmbTipoMovimento); - this.cmbTipoMovimento.Items.AddRange(Enum.GetNames(typeof(TipoMovimentoDirecional))); this.controleLayout.Controls.Add(this.cmbTipoMovimento, 0, 6); - this.controleLayout.SetColumnSpan(this.cmbTipoMovimento, 3); - this.controleLayout.Controls.Add(this.acoesLayout, 0, 7); - this.controleLayout.SetColumnSpan(this.acoesLayout, 3); - + this.controleLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.controleLayout.Location = new System.Drawing.Point(7, 7); + this.controleLayout.Name = "controleLayout"; + this.controleLayout.RowCount = 8; + this.controleLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); + this.controleLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 27F)); + this.controleLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); + this.controleLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); + this.controleLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.34F)); + this.controleLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); + this.controleLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); + this.controleLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F)); + this.controleLayout.Size = new System.Drawing.Size(273, 270); + this.controleLayout.TabIndex = 0; + // + // lblControleTitulo + // + this.lblControleTitulo.AutoEllipsis = true; + this.lblControleTitulo.BackColor = System.Drawing.Color.Transparent; + this.controleLayout.SetColumnSpan(this.lblControleTitulo, 3); + this.lblControleTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblControleTitulo.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); + this.lblControleTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblControleTitulo.Location = new System.Drawing.Point(3, 0); + this.lblControleTitulo.Name = "lblControleTitulo"; + this.lblControleTitulo.Size = new System.Drawing.Size(267, 22); + this.lblControleTitulo.TabIndex = 0; + this.lblControleTitulo.Text = "CONTROLE DE MOVIMENTO"; + this.lblControleTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // cmbJoystick + // + this.cmbJoystick.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.controleLayout.SetColumnSpan(this.cmbJoystick, 2); + this.cmbJoystick.Dock = System.Windows.Forms.DockStyle.Fill; + this.cmbJoystick.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbJoystick.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.cmbJoystick.Font = new System.Drawing.Font("Segoe UI", 7.4F); + this.cmbJoystick.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.cmbJoystick.Items.AddRange(new object[] { + "DualShock 4", + "Joystick USB", + "Nenhum"}); + this.cmbJoystick.Location = new System.Drawing.Point(81, 23); + this.cmbJoystick.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); + this.cmbJoystick.Name = "cmbJoystick"; + this.cmbJoystick.Size = new System.Drawing.Size(192, 20); + this.cmbJoystick.TabIndex = 2; + // + // sliderVelocidadeMax + // + this.sliderVelocidadeMax.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.sliderVelocidadeMax.BackColor = System.Drawing.Color.Transparent; + this.controleLayout.SetColumnSpan(this.sliderVelocidadeMax, 3); + this.sliderVelocidadeMax.CompactMode = true; + this.sliderVelocidadeMax.Dock = System.Windows.Forms.DockStyle.Fill; + this.sliderVelocidadeMax.Location = new System.Drawing.Point(0, 49); + this.sliderVelocidadeMax.Margin = new System.Windows.Forms.Padding(0); + this.sliderVelocidadeMax.Maximum = 100; + this.sliderVelocidadeMax.Minimum = 0; + this.sliderVelocidadeMax.MinimumSize = new System.Drawing.Size(80, 44); + this.sliderVelocidadeMax.Name = "sliderVelocidadeMax"; + this.sliderVelocidadeMax.Padding = new System.Windows.Forms.Padding(8, 3, 8, 3); + this.sliderVelocidadeMax.Size = new System.Drawing.Size(273, 45); + this.sliderVelocidadeMax.TabIndex = 3; + this.sliderVelocidadeMax.Titulo = "Velocidade máxima"; + this.sliderVelocidadeMax.Value = 30; + this.sliderVelocidadeMax.VelocidadeMaximaKmh = 1D; + // + // sliderAngulo + // + this.sliderAngulo.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(106)))), ((int)(((byte)(222))))); + this.sliderAngulo.BackColor = System.Drawing.Color.Transparent; + this.controleLayout.SetColumnSpan(this.sliderAngulo, 3); + this.sliderAngulo.CompactMode = true; + this.sliderAngulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.sliderAngulo.Location = new System.Drawing.Point(0, 94); + this.sliderAngulo.Margin = new System.Windows.Forms.Padding(0); + this.sliderAngulo.Maximum = 90; + this.sliderAngulo.Minimum = 0; + this.sliderAngulo.MinimumSize = new System.Drawing.Size(80, 44); + this.sliderAngulo.Name = "sliderAngulo"; + this.sliderAngulo.Padding = new System.Windows.Forms.Padding(8, 3, 8, 3); + this.sliderAngulo.Size = new System.Drawing.Size(273, 45); + this.sliderAngulo.TabIndex = 4; + this.sliderAngulo.Titulo = "Ângulo direcional"; + this.sliderAngulo.Value = 0; + this.sliderAngulo.ValueFormat = AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiSliderValueFormat.Degrees; + this.sliderAngulo.VelocidadeMaximaKmh = 1D; + // + // sliderVelocidadeDir + // + this.sliderVelocidadeDir.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.sliderVelocidadeDir.BackColor = System.Drawing.Color.Transparent; + this.controleLayout.SetColumnSpan(this.sliderVelocidadeDir, 3); + this.sliderVelocidadeDir.CompactMode = true; + this.sliderVelocidadeDir.Dock = System.Windows.Forms.DockStyle.Fill; + this.sliderVelocidadeDir.Location = new System.Drawing.Point(0, 139); + this.sliderVelocidadeDir.Margin = new System.Windows.Forms.Padding(0); + this.sliderVelocidadeDir.Maximum = 100; + this.sliderVelocidadeDir.Minimum = 0; + this.sliderVelocidadeDir.MinimumSize = new System.Drawing.Size(80, 44); + this.sliderVelocidadeDir.Name = "sliderVelocidadeDir"; + this.sliderVelocidadeDir.Padding = new System.Windows.Forms.Padding(8, 3, 8, 3); + this.sliderVelocidadeDir.Size = new System.Drawing.Size(273, 45); + this.sliderVelocidadeDir.TabIndex = 5; + this.sliderVelocidadeDir.Titulo = "Velocidade direcional"; + this.sliderVelocidadeDir.Value = 0; + this.sliderVelocidadeDir.ValueFormat = AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiSliderValueFormat.PercentOnly; + this.sliderVelocidadeDir.VelocidadeMaximaKmh = 1D; + // + // lblJoystick + // + this.lblJoystick.AutoEllipsis = true; + this.lblJoystick.BackColor = System.Drawing.Color.Transparent; + this.lblJoystick.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblJoystick.Font = new System.Drawing.Font("Segoe UI", 6.8F); + this.lblJoystick.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblJoystick.Location = new System.Drawing.Point(3, 22); + this.lblJoystick.Name = "lblJoystick"; + this.lblJoystick.Size = new System.Drawing.Size(75, 27); + this.lblJoystick.TabIndex = 1; + this.lblJoystick.Text = "Joystick"; + this.lblJoystick.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // lblTipoMovimento + // + this.lblTipoMovimento.AutoEllipsis = true; + this.lblTipoMovimento.BackColor = System.Drawing.Color.Transparent; + this.controleLayout.SetColumnSpan(this.lblTipoMovimento, 3); + this.lblTipoMovimento.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblTipoMovimento.Font = new System.Drawing.Font("Segoe UI", 6.8F); + this.lblTipoMovimento.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblTipoMovimento.Location = new System.Drawing.Point(3, 184); + this.lblTipoMovimento.Name = "lblTipoMovimento"; + this.lblTipoMovimento.Size = new System.Drawing.Size(267, 17); + this.lblTipoMovimento.TabIndex = 6; + this.lblTipoMovimento.Text = "Tipo de movimento"; + this.lblTipoMovimento.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // cmbTipoMovimento + // + this.cmbTipoMovimento.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.controleLayout.SetColumnSpan(this.cmbTipoMovimento, 3); + this.cmbTipoMovimento.Dock = System.Windows.Forms.DockStyle.Fill; + this.cmbTipoMovimento.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbTipoMovimento.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.cmbTipoMovimento.Font = new System.Drawing.Font("Segoe UI", 7.4F); + this.cmbTipoMovimento.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.cmbTipoMovimento.Items.AddRange(new object[] { + "RodasDianteiras", + "RodasTraseiras", + "RotacionarNoEixo", + "MovimentoArco", + "MovimentoLateral", + "MovimentoDiagonal", + "Diagnostico"}); + this.cmbTipoMovimento.Location = new System.Drawing.Point(0, 202); + this.cmbTipoMovimento.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); + this.cmbTipoMovimento.Name = "cmbTipoMovimento"; + this.cmbTipoMovimento.Size = new System.Drawing.Size(273, 20); + this.cmbTipoMovimento.TabIndex = 7; + // + // acoesLayout + // this.acoesLayout.ColumnCount = 3; + this.controleLayout.SetColumnSpan(this.acoesLayout, 3); this.acoesLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 34F)); this.acoesLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F)); this.acoesLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F)); @@ -200,143 +366,522 @@ namespace AgroBase.Forms.IHM.Operacao this.acoesLayout.Controls.Add(this.btnReferenciar, 1, 0); this.acoesLayout.Controls.Add(this.btnFreio, 2, 0); this.acoesLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.acoesLayout.Location = new System.Drawing.Point(3, 232); + this.acoesLayout.Name = "acoesLayout"; this.acoesLayout.RowCount = 2; this.acoesLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.acoesLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 1F)); - - SetupAction(this.btnControleManual, "MANUAL", AgroBase.Forms.IHM.Controls.HmiTheme.Info); - SetupAction(this.btnReferenciar, "ZERAR", AgroBase.Forms.IHM.Controls.HmiTheme.Disabled); - SetupAction(this.btnFreio, "FREIO", AgroBase.Forms.IHM.Controls.HmiTheme.Disabled); - - // wheels - this.rodasLayout.Dock = DockStyle.Fill; - this.rodasLayout.Margin = Padding.Empty; - this.rodasLayout.Padding = Padding.Empty; + this.acoesLayout.Size = new System.Drawing.Size(267, 35); + this.acoesLayout.TabIndex = 8; + // + // btnControleManual + // + this.btnControleManual.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.btnControleManual.BackColor = System.Drawing.Color.Transparent; + this.btnControleManual.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.btnControleManual.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnControleManual.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnControleManual.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnControleManual.IconText = ""; + this.btnControleManual.Location = new System.Drawing.Point(2, 3); + this.btnControleManual.Margin = new System.Windows.Forms.Padding(2, 3, 2, 2); + this.btnControleManual.MinimumSize = new System.Drawing.Size(60, 30); + this.btnControleManual.Name = "btnControleManual"; + this.btnControleManual.Size = new System.Drawing.Size(86, 30); + this.btnControleManual.TabIndex = 0; + this.btnControleManual.Text = "MANUAL"; + // + // btnReferenciar + // + this.btnReferenciar.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(92)))), ((int)(((byte)(101)))), ((int)(((byte)(107))))); + this.btnReferenciar.BackColor = System.Drawing.Color.Transparent; + this.btnReferenciar.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(92)))), ((int)(((byte)(101)))), ((int)(((byte)(107))))); + this.btnReferenciar.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnReferenciar.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnReferenciar.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnReferenciar.IconText = ""; + this.btnReferenciar.Location = new System.Drawing.Point(92, 3); + this.btnReferenciar.Margin = new System.Windows.Forms.Padding(2, 3, 2, 2); + this.btnReferenciar.MinimumSize = new System.Drawing.Size(60, 30); + this.btnReferenciar.Name = "btnReferenciar"; + this.btnReferenciar.Size = new System.Drawing.Size(84, 30); + this.btnReferenciar.TabIndex = 1; + this.btnReferenciar.Text = "ZERAR"; + // + // btnFreio + // + this.btnFreio.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(92)))), ((int)(((byte)(101)))), ((int)(((byte)(107))))); + this.btnFreio.BackColor = System.Drawing.Color.Transparent; + this.btnFreio.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(92)))), ((int)(((byte)(101)))), ((int)(((byte)(107))))); + this.btnFreio.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnFreio.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnFreio.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnFreio.IconText = ""; + this.btnFreio.Location = new System.Drawing.Point(180, 3); + this.btnFreio.Margin = new System.Windows.Forms.Padding(2, 3, 2, 2); + this.btnFreio.MinimumSize = new System.Drawing.Size(60, 30); + this.btnFreio.Name = "btnFreio"; + this.btnFreio.Size = new System.Drawing.Size(85, 30); + this.btnFreio.TabIndex = 2; + this.btnFreio.Text = "FREIO"; + // + // pnlRodas + // + this.pnlRodas.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlRodas.BackColor = System.Drawing.Color.Transparent; + this.pnlRodas.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlRodas.Controls.Add(this.rodasLayout); + this.pnlRodas.CornerRadius = 9; + this.pnlRodas.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlRodas.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlRodas.Location = new System.Drawing.Point(0, 287); + this.pnlRodas.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlRodas.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlRodas.Name = "pnlRodas"; + this.pnlRodas.Padding = new System.Windows.Forms.Padding(7); + this.pnlRodas.Size = new System.Drawing.Size(287, 145); + this.pnlRodas.TabIndex = 1; + // + // rodasLayout + // this.rodasLayout.ColumnCount = 4; - for (int i = 0; i < 4; i++) - this.rodasLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.rodasLayout.RowCount = 1; - this.rodasLayout.RowStyles.Clear(); - this.rodasLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); - - SetupWheel(this.cardEF, "EF"); - SetupWheel(this.cardDF, "DF"); - SetupWheel(this.cardET, "ET"); - SetupWheel(this.cardDT, "DT"); - + this.rodasLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.rodasLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.rodasLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); + this.rodasLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); this.rodasLayout.Controls.Add(this.cardEF, 0, 0); this.rodasLayout.Controls.Add(this.cardDF, 1, 0); this.rodasLayout.Controls.Add(this.cardET, 2, 0); this.rodasLayout.Controls.Add(this.cardDT, 3, 0); - - // CENTER + this.rodasLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.rodasLayout.Location = new System.Drawing.Point(7, 7); + this.rodasLayout.Margin = new System.Windows.Forms.Padding(0); + this.rodasLayout.Name = "rodasLayout"; + this.rodasLayout.RowCount = 1; + this.rodasLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.rodasLayout.Size = new System.Drawing.Size(273, 131); + this.rodasLayout.TabIndex = 0; + // + // cardEF + // + this.cardEF.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardEF.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.cardEF.CorStatusDirecional = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.cardEF.CorStatusMovimento = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.cardEF.DirecionalAtual = "AT +0,0°"; + this.cardEF.DirecionalSp = "SP +0,0°"; + this.cardEF.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardEF.Location = new System.Drawing.Point(2, 0); + this.cardEF.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.cardEF.MovimentoAtual = "AT 0 rpm"; + this.cardEF.MovimentoSp = "SP 0 rpm"; + this.cardEF.Name = "cardEF"; + this.cardEF.Padding = new System.Windows.Forms.Padding(3); + this.cardEF.Size = new System.Drawing.Size(64, 131); + this.cardEF.StatusDirecional = "Parado"; + this.cardEF.StatusMovimento = "Sem freio"; + this.cardEF.TabIndex = 0; + this.cardEF.Tag = "EF"; + this.cardEF.Titulo = "EF"; + // + // cardDF + // + this.cardDF.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardDF.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.cardDF.CorStatusDirecional = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.cardDF.CorStatusMovimento = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.cardDF.DirecionalAtual = "AT +0,0°"; + this.cardDF.DirecionalSp = "SP +0,0°"; + this.cardDF.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardDF.Location = new System.Drawing.Point(70, 0); + this.cardDF.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.cardDF.MovimentoAtual = "AT 0 rpm"; + this.cardDF.MovimentoSp = "SP 0 rpm"; + this.cardDF.Name = "cardDF"; + this.cardDF.Padding = new System.Windows.Forms.Padding(3); + this.cardDF.Size = new System.Drawing.Size(64, 131); + this.cardDF.StatusDirecional = "Parado"; + this.cardDF.StatusMovimento = "Sem freio"; + this.cardDF.TabIndex = 1; + this.cardDF.Tag = "DF"; + this.cardDF.Titulo = "DF"; + // + // cardET + // + this.cardET.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardET.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.cardET.CorStatusDirecional = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.cardET.CorStatusMovimento = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.cardET.DirecionalAtual = "AT +0,0°"; + this.cardET.DirecionalSp = "SP +0,0°"; + this.cardET.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardET.Location = new System.Drawing.Point(138, 0); + this.cardET.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.cardET.MovimentoAtual = "AT 0 rpm"; + this.cardET.MovimentoSp = "SP 0 rpm"; + this.cardET.Name = "cardET"; + this.cardET.Padding = new System.Windows.Forms.Padding(3); + this.cardET.Size = new System.Drawing.Size(64, 131); + this.cardET.StatusDirecional = "Parado"; + this.cardET.StatusMovimento = "Sem freio"; + this.cardET.TabIndex = 2; + this.cardET.Tag = "ET"; + this.cardET.Titulo = "ET"; + // + // cardDT + // + this.cardDT.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardDT.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.cardDT.CorStatusDirecional = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.cardDT.CorStatusMovimento = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.cardDT.DirecionalAtual = "AT +0,0°"; + this.cardDT.DirecionalSp = "SP +0,0°"; + this.cardDT.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardDT.Location = new System.Drawing.Point(206, 0); + this.cardDT.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.cardDT.MovimentoAtual = "AT 0 rpm"; + this.cardDT.MovimentoSp = "SP 0 rpm"; + this.cardDT.Name = "cardDT"; + this.cardDT.Padding = new System.Windows.Forms.Padding(3); + this.cardDT.Size = new System.Drawing.Size(65, 131); + this.cardDT.StatusDirecional = "Parado"; + this.cardDT.StatusMovimento = "Sem freio"; + this.cardDT.TabIndex = 3; + this.cardDT.Tag = "DT"; + this.cardDT.Titulo = "DT"; + // + // centerLayout + // this.centerLayout.ColumnCount = 1; this.centerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.centerLayout.Controls.Add(this.pnlCamera, 0, 0); this.centerLayout.Controls.Add(this.pnlRadar, 0, 1); this.centerLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.centerLayout.Location = new System.Drawing.Point(293, 0); this.centerLayout.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0); + this.centerLayout.Name = "centerLayout"; this.centerLayout.RowCount = 2; this.centerLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 53F)); this.centerLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 47F)); - - ConfigurePanel(this.pnlCamera, this.cameraLayout); - ConfigurePanel(this.pnlRadar, this.radarLayout); - + this.centerLayout.Size = new System.Drawing.Size(284, 435); + this.centerLayout.TabIndex = 1; + // + // pnlCamera + // + this.pnlCamera.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlCamera.BackColor = System.Drawing.Color.Transparent; + this.pnlCamera.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlCamera.Controls.Add(this.cameraLayout); + this.pnlCamera.CornerRadius = 9; + this.pnlCamera.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlCamera.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlCamera.Location = new System.Drawing.Point(0, 0); + this.pnlCamera.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlCamera.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlCamera.Name = "pnlCamera"; + this.pnlCamera.Padding = new System.Windows.Forms.Padding(7); + this.pnlCamera.Size = new System.Drawing.Size(284, 227); + this.pnlCamera.TabIndex = 0; + // + // cameraLayout + // this.cameraLayout.ColumnCount = 1; this.cameraLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.cameraLayout.Controls.Add(this.cameraHeaderLayout, 0, 0); this.cameraLayout.Controls.Add(this.picCamera, 0, 1); this.cameraLayout.Controls.Add(this.cmbTipoFrame, 0, 2); this.cameraLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.cameraLayout.Location = new System.Drawing.Point(7, 7); + this.cameraLayout.Name = "cameraLayout"; this.cameraLayout.RowCount = 3; this.cameraLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.cameraLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.cameraLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 31F)); - + this.cameraLayout.Size = new System.Drawing.Size(270, 213); + this.cameraLayout.TabIndex = 0; + // + // cameraHeaderLayout + // this.cameraHeaderLayout.ColumnCount = 2; this.cameraHeaderLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 35F)); this.cameraHeaderLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 65F)); - this.cameraHeaderLayout.Dock = System.Windows.Forms.DockStyle.Fill; - SetupTitle(this.lblCameraTitulo, "VÍDEO"); - this.lblCameraStatus.Dock = System.Windows.Forms.DockStyle.Fill; - this.lblCameraStatus.Text = "FPS 28 · 6,4 MB/s · Saúde 96%"; - this.lblCameraStatus.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Success; - this.lblCameraStatus.Font = new System.Drawing.Font("Segoe UI", 6.6F); - this.lblCameraStatus.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.cameraHeaderLayout.Controls.Add(this.lblCameraTitulo, 0, 0); this.cameraHeaderLayout.Controls.Add(this.lblCameraStatus, 1, 0); - - this.picCamera.Dock = System.Windows.Forms.DockStyle.Fill; + this.cameraHeaderLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.cameraHeaderLayout.Location = new System.Drawing.Point(3, 3); + this.cameraHeaderLayout.Name = "cameraHeaderLayout"; + this.cameraHeaderLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.cameraHeaderLayout.Size = new System.Drawing.Size(264, 16); + this.cameraHeaderLayout.TabIndex = 0; + // + // lblCameraTitulo + // + this.lblCameraTitulo.AutoEllipsis = true; + this.lblCameraTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblCameraTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblCameraTitulo.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); + this.lblCameraTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblCameraTitulo.Location = new System.Drawing.Point(3, 0); + this.lblCameraTitulo.Name = "lblCameraTitulo"; + this.lblCameraTitulo.Size = new System.Drawing.Size(86, 20); + this.lblCameraTitulo.TabIndex = 0; + this.lblCameraTitulo.Text = "VÍDEO"; + this.lblCameraTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // lblCameraStatus + // + this.lblCameraStatus.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblCameraStatus.Font = new System.Drawing.Font("Segoe UI", 6.6F); + this.lblCameraStatus.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.lblCameraStatus.Location = new System.Drawing.Point(95, 0); + this.lblCameraStatus.Name = "lblCameraStatus"; + this.lblCameraStatus.Size = new System.Drawing.Size(166, 20); + this.lblCameraStatus.TabIndex = 1; + this.lblCameraStatus.Text = "FPS 28 · 6,4 MB/s · Saúde 96%"; + this.lblCameraStatus.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // picCamera + // this.picCamera.BackColor = System.Drawing.Color.Black; this.picCamera.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.picCamera.Dock = System.Windows.Forms.DockStyle.Fill; + this.picCamera.Location = new System.Drawing.Point(3, 25); + this.picCamera.Name = "picCamera"; + this.picCamera.Size = new System.Drawing.Size(264, 154); this.picCamera.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - - SetupCombo(this.cmbTipoFrame); - this.cmbTipoFrame.Items.AddRange(new object[] { "RGB", "Segmentação", "Debug", "Overlay" }); - - // radar + this.picCamera.TabIndex = 1; + this.picCamera.TabStop = false; + // + // cmbTipoFrame + // + this.cmbTipoFrame.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cmbTipoFrame.Dock = System.Windows.Forms.DockStyle.Fill; + this.cmbTipoFrame.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbTipoFrame.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.cmbTipoFrame.Font = new System.Drawing.Font("Segoe UI", 7.4F); + this.cmbTipoFrame.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.cmbTipoFrame.Items.AddRange(new object[] { + "RGB", + "Segmentação", + "Debug", + "Overlay"}); + this.cmbTipoFrame.Location = new System.Drawing.Point(0, 183); + this.cmbTipoFrame.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); + this.cmbTipoFrame.Name = "cmbTipoFrame"; + this.cmbTipoFrame.Size = new System.Drawing.Size(270, 20); + this.cmbTipoFrame.TabIndex = 2; + // + // pnlRadar + // + this.pnlRadar.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlRadar.BackColor = System.Drawing.Color.Transparent; + this.pnlRadar.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlRadar.Controls.Add(this.radarLayout); + this.pnlRadar.CornerRadius = 9; + this.pnlRadar.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlRadar.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlRadar.Location = new System.Drawing.Point(0, 230); + this.pnlRadar.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlRadar.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlRadar.Name = "pnlRadar"; + this.pnlRadar.Padding = new System.Windows.Forms.Padding(7); + this.pnlRadar.Size = new System.Drawing.Size(284, 202); + this.pnlRadar.TabIndex = 1; + // + // radarLayout + // this.radarLayout.ColumnCount = 2; this.radarLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 45F)); this.radarLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 55F)); this.radarLayout.Controls.Add(this.lblRadarTitulo, 0, 0); this.radarLayout.Controls.Add(this.radarControl, 0, 1); this.radarLayout.Controls.Add(this.radarInfoLayout, 1, 1); - this.radarLayout.SetColumnSpan(this.lblRadarTitulo, 2); this.radarLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.radarLayout.Location = new System.Drawing.Point(7, 7); + this.radarLayout.Name = "radarLayout"; this.radarLayout.RowCount = 2; this.radarLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.radarLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - - SetupTitle(this.lblRadarTitulo, "SONAR"); - + this.radarLayout.Size = new System.Drawing.Size(270, 188); + this.radarLayout.TabIndex = 0; + // + // lblRadarTitulo + // + this.lblRadarTitulo.AutoEllipsis = true; + this.lblRadarTitulo.BackColor = System.Drawing.Color.Transparent; + this.radarLayout.SetColumnSpan(this.lblRadarTitulo, 2); + this.lblRadarTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblRadarTitulo.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); + this.lblRadarTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblRadarTitulo.Location = new System.Drawing.Point(3, 0); + this.lblRadarTitulo.Name = "lblRadarTitulo"; + this.lblRadarTitulo.Size = new System.Drawing.Size(264, 22); + this.lblRadarTitulo.TabIndex = 0; + this.lblRadarTitulo.Text = "SONAR"; + this.lblRadarTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // radarControl + // + this.radarControl.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.radarControl.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); this.radarControl.Dock = System.Windows.Forms.DockStyle.Fill; + this.radarControl.Location = new System.Drawing.Point(0, 22); this.radarControl.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); - this.radarControl.MaxDistanceM = 3F; - + this.radarControl.MinimumSize = new System.Drawing.Size(100, 100); + this.radarControl.Name = "radarControl"; + this.radarControl.Size = new System.Drawing.Size(118, 166); + this.radarControl.TabIndex = 1; + // + // radarInfoLayout + // this.radarInfoLayout.ColumnCount = 2; - this.radarInfoLayout.ColumnStyles.Clear(); - this.radarInfoLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); - this.radarInfoLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); - this.radarInfoLayout.RowCount = 4; - this.radarInfoLayout.RowStyles.Clear(); - this.radarInfoLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 28F)); - this.radarInfoLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 24F)); - this.radarInfoLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 24F)); - this.radarInfoLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 24F)); - this.radarInfoLayout.Dock = DockStyle.Fill; - this.radarInfoLayout.Margin = Padding.Empty; - - SetupCompactCard(this.cardSonarModo, "Modo auxiliar", "SLOWDOWN", HmiTheme.Warning); - SetupCompactCard(this.cardSonarFator, "Fator", "0,75x", HmiTheme.Warning); - SetupCompactCard(this.cardSonarProximo, "Mais próximo", "1,8 m", HmiTheme.Danger); - SetupCompactCard(this.cardSonarLivreEsq, "Dist esquerda", "2,6 m", HmiTheme.Info); - SetupCompactCard(this.cardSonarLivreDir, "Dist direita", "2,4 m", HmiTheme.Info); - SetupCompactCard(this.cardSonarCorredor, "Status no corredor", "Caminhando Rua", HmiTheme.Success); - + this.radarInfoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.radarInfoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.radarInfoLayout.Controls.Add(this.cardSonarModo, 0, 0); - this.radarInfoLayout.SetColumnSpan(this.cardSonarModo, 2); this.radarInfoLayout.Controls.Add(this.cardSonarFator, 0, 1); this.radarInfoLayout.Controls.Add(this.cardSonarProximo, 1, 1); this.radarInfoLayout.Controls.Add(this.cardSonarLivreEsq, 0, 2); this.radarInfoLayout.Controls.Add(this.cardSonarLivreDir, 1, 2); this.radarInfoLayout.Controls.Add(this.cardSonarCorredor, 0, 3); + this.radarInfoLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.radarInfoLayout.Location = new System.Drawing.Point(121, 22); + this.radarInfoLayout.Margin = new System.Windows.Forms.Padding(0); + this.radarInfoLayout.Name = "radarInfoLayout"; + this.radarInfoLayout.RowCount = 4; + this.radarInfoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 28F)); + this.radarInfoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 24F)); + this.radarInfoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 24F)); + this.radarInfoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 24F)); + this.radarInfoLayout.Size = new System.Drawing.Size(149, 166); + this.radarInfoLayout.TabIndex = 2; + // + // cardSonarModo + // + this.cardSonarModo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.radarInfoLayout.SetColumnSpan(this.cardSonarModo, 2); + this.cardSonarModo.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); + this.cardSonarModo.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardSonarModo.Location = new System.Drawing.Point(2, 2); + this.cardSonarModo.Margin = new System.Windows.Forms.Padding(2); + this.cardSonarModo.MinimumSize = new System.Drawing.Size(55, 32); + this.cardSonarModo.Name = "cardSonarModo"; + this.cardSonarModo.Padding = new System.Windows.Forms.Padding(5, 2, 5, 2); + this.cardSonarModo.Size = new System.Drawing.Size(145, 42); + this.cardSonarModo.TabIndex = 0; + this.cardSonarModo.Titulo = "Modo auxiliar"; + this.cardSonarModo.Valor = "SLOWDOWN"; + // + // cardSonarFator + // + this.cardSonarFator.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardSonarFator.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); + this.cardSonarFator.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardSonarFator.Location = new System.Drawing.Point(2, 48); + this.cardSonarFator.Margin = new System.Windows.Forms.Padding(2); + this.cardSonarFator.MinimumSize = new System.Drawing.Size(55, 32); + this.cardSonarFator.Name = "cardSonarFator"; + this.cardSonarFator.Padding = new System.Windows.Forms.Padding(5, 2, 5, 2); + this.cardSonarFator.Size = new System.Drawing.Size(70, 35); + this.cardSonarFator.TabIndex = 1; + this.cardSonarFator.Titulo = "Fator"; + this.cardSonarFator.Valor = "0,75x"; + // + // cardSonarProximo + // + this.cardSonarProximo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardSonarProximo.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(83)))), ((int)(((byte)(80))))); + this.cardSonarProximo.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardSonarProximo.Location = new System.Drawing.Point(76, 48); + this.cardSonarProximo.Margin = new System.Windows.Forms.Padding(2); + this.cardSonarProximo.MinimumSize = new System.Drawing.Size(55, 32); + this.cardSonarProximo.Name = "cardSonarProximo"; + this.cardSonarProximo.Padding = new System.Windows.Forms.Padding(5, 2, 5, 2); + this.cardSonarProximo.Size = new System.Drawing.Size(71, 35); + this.cardSonarProximo.TabIndex = 2; + this.cardSonarProximo.Titulo = "Mais próximo"; + this.cardSonarProximo.Valor = "1,8 m"; + // + // cardSonarLivreEsq + // + this.cardSonarLivreEsq.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardSonarLivreEsq.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.cardSonarLivreEsq.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardSonarLivreEsq.Location = new System.Drawing.Point(2, 87); + this.cardSonarLivreEsq.Margin = new System.Windows.Forms.Padding(2); + this.cardSonarLivreEsq.MinimumSize = new System.Drawing.Size(55, 32); + this.cardSonarLivreEsq.Name = "cardSonarLivreEsq"; + this.cardSonarLivreEsq.Padding = new System.Windows.Forms.Padding(5, 2, 5, 2); + this.cardSonarLivreEsq.Size = new System.Drawing.Size(70, 35); + this.cardSonarLivreEsq.TabIndex = 3; + this.cardSonarLivreEsq.Titulo = "Dist esquerda"; + this.cardSonarLivreEsq.Valor = "2,6 m"; + // + // cardSonarLivreDir + // + this.cardSonarLivreDir.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardSonarLivreDir.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.cardSonarLivreDir.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardSonarLivreDir.Location = new System.Drawing.Point(76, 87); + this.cardSonarLivreDir.Margin = new System.Windows.Forms.Padding(2); + this.cardSonarLivreDir.MinimumSize = new System.Drawing.Size(55, 32); + this.cardSonarLivreDir.Name = "cardSonarLivreDir"; + this.cardSonarLivreDir.Padding = new System.Windows.Forms.Padding(5, 2, 5, 2); + this.cardSonarLivreDir.Size = new System.Drawing.Size(71, 35); + this.cardSonarLivreDir.TabIndex = 4; + this.cardSonarLivreDir.Titulo = "Dist direita"; + this.cardSonarLivreDir.Valor = "2,4 m"; + // + // cardSonarCorredor + // + this.cardSonarCorredor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); this.radarInfoLayout.SetColumnSpan(this.cardSonarCorredor, 2); - - // RIGHT + this.cardSonarCorredor.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.cardSonarCorredor.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardSonarCorredor.Location = new System.Drawing.Point(2, 126); + this.cardSonarCorredor.Margin = new System.Windows.Forms.Padding(2); + this.cardSonarCorredor.MinimumSize = new System.Drawing.Size(55, 32); + this.cardSonarCorredor.Name = "cardSonarCorredor"; + this.cardSonarCorredor.Padding = new System.Windows.Forms.Padding(5, 2, 5, 2); + this.cardSonarCorredor.Size = new System.Drawing.Size(145, 38); + this.cardSonarCorredor.TabIndex = 5; + this.cardSonarCorredor.Titulo = "Status no corredor"; + this.cardSonarCorredor.Valor = "Caminhando Rua"; + // + // rightLayout + // this.rightLayout.ColumnCount = 1; this.rightLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.rightLayout.Controls.Add(this.pnlTelemetria, 0, 0); this.rightLayout.Controls.Add(this.pnlImu, 0, 1); this.rightLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.rightLayout.Location = new System.Drawing.Point(583, 0); this.rightLayout.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); + this.rightLayout.Name = "rightLayout"; this.rightLayout.RowCount = 2; this.rightLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 58F)); this.rightLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 42F)); - - ConfigurePanel(this.pnlTelemetria, this.telemetryLayout); - ConfigurePanel(this.pnlImu, this.imuLayout); - + this.rightLayout.Size = new System.Drawing.Size(201, 435); + this.rightLayout.TabIndex = 2; + // + // pnlTelemetria + // + this.pnlTelemetria.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlTelemetria.BackColor = System.Drawing.Color.Transparent; + this.pnlTelemetria.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlTelemetria.Controls.Add(this.telemetryLayout); + this.pnlTelemetria.CornerRadius = 9; + this.pnlTelemetria.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlTelemetria.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlTelemetria.Location = new System.Drawing.Point(0, 0); + this.pnlTelemetria.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlTelemetria.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlTelemetria.Name = "pnlTelemetria"; + this.pnlTelemetria.Padding = new System.Windows.Forms.Padding(7); + this.pnlTelemetria.Size = new System.Drawing.Size(201, 249); + this.pnlTelemetria.TabIndex = 0; + // + // telemetryLayout + // this.telemetryLayout.ColumnCount = 1; this.telemetryLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.telemetryLayout.Controls.Add(this.lblTelemetriaTitulo, 0, 0); @@ -351,219 +896,365 @@ namespace AgroBase.Forms.IHM.Operacao this.telemetryLayout.Controls.Add(this.telemetryAutonomiaM, 0, 9); this.telemetryLayout.Controls.Add(this.telemetryAutonomiaTempo, 0, 10); this.telemetryLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryLayout.Location = new System.Drawing.Point(7, 7); + this.telemetryLayout.Name = "telemetryLayout"; this.telemetryLayout.RowCount = 11; this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - for (int i = 1; i < 11; i++) - this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); - - SetupTitle(this.lblTelemetriaTitulo, "TELEMETRIA"); - - SetupTelemetry(this.telemetryVelocidade, "◉", "Velocidade atual", "1,6 km/h"); - SetupTelemetry(this.telemetryTensao, "▰", "Tensão bateria", "51,2 V"); - SetupTelemetry(this.telemetryCorrente, "∿", "Corrente", "18,4 A"); - SetupTelemetry(this.telemetryPotencia, "ϟ", "Potência", "941 W"); - SetupTelemetry(this.telemetryRpm, "◌", "RPM", "1240 rpm"); - SetupTelemetry(this.telemetryDistancia, "◎", "Dist percorrida", "94 m"); - SetupTelemetry(this.telemetryTempo, "◷", "Movimento", "00:07:24"); - SetupTelemetry(this.telemetryVelMedia, "◉", "Vel média", "1,2 km/h"); - SetupTelemetry(this.telemetryAutonomiaM, "⌖", "Aut restante", "1.240 m"); - SetupTelemetry(this.telemetryAutonomiaTempo, "◴", "Aut em tempo", "01:18:30"); - + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 10F)); + this.telemetryLayout.Size = new System.Drawing.Size(187, 235); + this.telemetryLayout.TabIndex = 0; + // + // lblTelemetriaTitulo + // + this.lblTelemetriaTitulo.AutoEllipsis = true; + this.lblTelemetriaTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblTelemetriaTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblTelemetriaTitulo.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); + this.lblTelemetriaTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblTelemetriaTitulo.Location = new System.Drawing.Point(3, 0); + this.lblTelemetriaTitulo.Name = "lblTelemetriaTitulo"; + this.lblTelemetriaTitulo.Size = new System.Drawing.Size(181, 22); + this.lblTelemetriaTitulo.TabIndex = 0; + this.lblTelemetriaTitulo.Text = "TELEMETRIA"; + this.lblTelemetriaTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // telemetryVelocidade + // + this.telemetryVelocidade.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryVelocidade.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryVelocidade.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.telemetryVelocidade.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryVelocidade.IconText = "◉"; + this.telemetryVelocidade.Location = new System.Drawing.Point(0, 22); + this.telemetryVelocidade.Margin = new System.Windows.Forms.Padding(0); + this.telemetryVelocidade.MinimumSize = new System.Drawing.Size(130, 23); + this.telemetryVelocidade.Name = "telemetryVelocidade"; + this.telemetryVelocidade.Padding = new System.Windows.Forms.Padding(3, 0, 3, 1); + this.telemetryVelocidade.Size = new System.Drawing.Size(187, 23); + this.telemetryVelocidade.TabIndex = 1; + this.telemetryVelocidade.Titulo = "Velocidade atual"; + this.telemetryVelocidade.Valor = "1,6 km/h"; + // + // telemetryTensao + // + this.telemetryTensao.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryTensao.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryTensao.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.telemetryTensao.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryTensao.IconText = "▰"; + this.telemetryTensao.Location = new System.Drawing.Point(0, 43); + this.telemetryTensao.Margin = new System.Windows.Forms.Padding(0); + this.telemetryTensao.MinimumSize = new System.Drawing.Size(130, 23); + this.telemetryTensao.Name = "telemetryTensao"; + this.telemetryTensao.Padding = new System.Windows.Forms.Padding(3, 0, 3, 1); + this.telemetryTensao.Size = new System.Drawing.Size(187, 23); + this.telemetryTensao.TabIndex = 2; + this.telemetryTensao.Titulo = "Tensão bateria"; + this.telemetryTensao.Valor = "51,2 V"; + // + // telemetryCorrente + // + this.telemetryCorrente.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryCorrente.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryCorrente.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.telemetryCorrente.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryCorrente.IconText = "∿"; + this.telemetryCorrente.Location = new System.Drawing.Point(0, 64); + this.telemetryCorrente.Margin = new System.Windows.Forms.Padding(0); + this.telemetryCorrente.MinimumSize = new System.Drawing.Size(130, 23); + this.telemetryCorrente.Name = "telemetryCorrente"; + this.telemetryCorrente.Padding = new System.Windows.Forms.Padding(3, 0, 3, 1); + this.telemetryCorrente.Size = new System.Drawing.Size(187, 23); + this.telemetryCorrente.TabIndex = 3; + this.telemetryCorrente.Titulo = "Corrente"; + this.telemetryCorrente.Valor = "18,4 A"; + // + // telemetryPotencia + // + this.telemetryPotencia.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryPotencia.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryPotencia.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.telemetryPotencia.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryPotencia.IconText = "ϟ"; + this.telemetryPotencia.Location = new System.Drawing.Point(0, 85); + this.telemetryPotencia.Margin = new System.Windows.Forms.Padding(0); + this.telemetryPotencia.MinimumSize = new System.Drawing.Size(130, 23); + this.telemetryPotencia.Name = "telemetryPotencia"; + this.telemetryPotencia.Padding = new System.Windows.Forms.Padding(3, 0, 3, 1); + this.telemetryPotencia.Size = new System.Drawing.Size(187, 23); + this.telemetryPotencia.TabIndex = 4; + this.telemetryPotencia.Titulo = "Potência"; + this.telemetryPotencia.Valor = "941 W"; + // + // telemetryRpm + // + this.telemetryRpm.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryRpm.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryRpm.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.telemetryRpm.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryRpm.IconText = "◌"; + this.telemetryRpm.Location = new System.Drawing.Point(0, 106); + this.telemetryRpm.Margin = new System.Windows.Forms.Padding(0); + this.telemetryRpm.MinimumSize = new System.Drawing.Size(130, 23); + this.telemetryRpm.Name = "telemetryRpm"; + this.telemetryRpm.Padding = new System.Windows.Forms.Padding(3, 0, 3, 1); + this.telemetryRpm.Size = new System.Drawing.Size(187, 23); + this.telemetryRpm.TabIndex = 5; + this.telemetryRpm.Titulo = "RPM"; + this.telemetryRpm.Valor = "1240 rpm"; + // + // telemetryDistancia + // + this.telemetryDistancia.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryDistancia.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryDistancia.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.telemetryDistancia.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryDistancia.IconText = "◎"; + this.telemetryDistancia.Location = new System.Drawing.Point(0, 127); + this.telemetryDistancia.Margin = new System.Windows.Forms.Padding(0); + this.telemetryDistancia.MinimumSize = new System.Drawing.Size(130, 23); + this.telemetryDistancia.Name = "telemetryDistancia"; + this.telemetryDistancia.Padding = new System.Windows.Forms.Padding(3, 0, 3, 1); + this.telemetryDistancia.Size = new System.Drawing.Size(187, 23); + this.telemetryDistancia.TabIndex = 6; + this.telemetryDistancia.Titulo = "Dist percorrida"; + this.telemetryDistancia.Valor = "94 m"; + // + // telemetryTempo + // + this.telemetryTempo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryTempo.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryTempo.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.telemetryTempo.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryTempo.IconText = "◷"; + this.telemetryTempo.Location = new System.Drawing.Point(0, 148); + this.telemetryTempo.Margin = new System.Windows.Forms.Padding(0); + this.telemetryTempo.MinimumSize = new System.Drawing.Size(130, 23); + this.telemetryTempo.Name = "telemetryTempo"; + this.telemetryTempo.Padding = new System.Windows.Forms.Padding(3, 0, 3, 1); + this.telemetryTempo.Size = new System.Drawing.Size(187, 23); + this.telemetryTempo.TabIndex = 7; + this.telemetryTempo.Titulo = "Movimento"; + this.telemetryTempo.Valor = "00:07:24"; + // + // telemetryVelMedia + // + this.telemetryVelMedia.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryVelMedia.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryVelMedia.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.telemetryVelMedia.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryVelMedia.IconText = "◉"; + this.telemetryVelMedia.Location = new System.Drawing.Point(0, 169); + this.telemetryVelMedia.Margin = new System.Windows.Forms.Padding(0); + this.telemetryVelMedia.MinimumSize = new System.Drawing.Size(130, 23); + this.telemetryVelMedia.Name = "telemetryVelMedia"; + this.telemetryVelMedia.Padding = new System.Windows.Forms.Padding(3, 0, 3, 1); + this.telemetryVelMedia.Size = new System.Drawing.Size(187, 23); + this.telemetryVelMedia.TabIndex = 8; + this.telemetryVelMedia.Titulo = "Vel média"; + this.telemetryVelMedia.Valor = "1,2 km/h"; + // + // telemetryAutonomiaM + // + this.telemetryAutonomiaM.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryAutonomiaM.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryAutonomiaM.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.telemetryAutonomiaM.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryAutonomiaM.IconText = "⌖"; + this.telemetryAutonomiaM.Location = new System.Drawing.Point(0, 190); + this.telemetryAutonomiaM.Margin = new System.Windows.Forms.Padding(0); + this.telemetryAutonomiaM.MinimumSize = new System.Drawing.Size(130, 23); + this.telemetryAutonomiaM.Name = "telemetryAutonomiaM"; + this.telemetryAutonomiaM.Padding = new System.Windows.Forms.Padding(3, 0, 3, 1); + this.telemetryAutonomiaM.Size = new System.Drawing.Size(187, 23); + this.telemetryAutonomiaM.TabIndex = 9; + this.telemetryAutonomiaM.Titulo = "Aut restante"; + this.telemetryAutonomiaM.Valor = "1.240 m"; + // + // telemetryAutonomiaTempo + // + this.telemetryAutonomiaTempo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryAutonomiaTempo.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryAutonomiaTempo.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.telemetryAutonomiaTempo.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryAutonomiaTempo.IconText = "◴"; + this.telemetryAutonomiaTempo.Location = new System.Drawing.Point(0, 211); + this.telemetryAutonomiaTempo.Margin = new System.Windows.Forms.Padding(0); + this.telemetryAutonomiaTempo.MinimumSize = new System.Drawing.Size(130, 23); + this.telemetryAutonomiaTempo.Name = "telemetryAutonomiaTempo"; + this.telemetryAutonomiaTempo.Padding = new System.Windows.Forms.Padding(3, 0, 3, 1); + this.telemetryAutonomiaTempo.Size = new System.Drawing.Size(187, 24); + this.telemetryAutonomiaTempo.TabIndex = 10; + this.telemetryAutonomiaTempo.Titulo = "Aut em tempo"; + this.telemetryAutonomiaTempo.Valor = "01:18:30"; + // + // pnlImu + // + this.pnlImu.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlImu.BackColor = System.Drawing.Color.Transparent; + this.pnlImu.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlImu.Controls.Add(this.imuLayout); + this.pnlImu.CornerRadius = 9; + this.pnlImu.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlImu.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlImu.Location = new System.Drawing.Point(0, 252); + this.pnlImu.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlImu.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlImu.Name = "pnlImu"; + this.pnlImu.Padding = new System.Windows.Forms.Padding(7); + this.pnlImu.Size = new System.Drawing.Size(201, 180); + this.pnlImu.TabIndex = 1; + // + // imuLayout + // this.imuLayout.ColumnCount = 2; this.imuLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 57F)); this.imuLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 43F)); this.imuLayout.Controls.Add(this.lblImuTitulo, 0, 0); this.imuLayout.Controls.Add(this.attitudeIndicator, 0, 1); this.imuLayout.Controls.Add(this.imuInfoLayout, 1, 1); - this.imuLayout.SetColumnSpan(this.lblImuTitulo, 2); this.imuLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.imuLayout.Location = new System.Drawing.Point(7, 7); + this.imuLayout.Name = "imuLayout"; this.imuLayout.RowCount = 2; this.imuLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.imuLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - - SetupTitle(this.lblImuTitulo, "ATITUDE / IMU"); - + this.imuLayout.Size = new System.Drawing.Size(187, 166); + this.imuLayout.TabIndex = 0; + // + // lblImuTitulo + // + this.lblImuTitulo.AutoEllipsis = true; + this.lblImuTitulo.BackColor = System.Drawing.Color.Transparent; + this.imuLayout.SetColumnSpan(this.lblImuTitulo, 2); + this.lblImuTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblImuTitulo.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); + this.lblImuTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblImuTitulo.Location = new System.Drawing.Point(3, 0); + this.lblImuTitulo.Name = "lblImuTitulo"; + this.lblImuTitulo.Size = new System.Drawing.Size(181, 22); + this.lblImuTitulo.TabIndex = 0; + this.lblImuTitulo.Text = "ATITUDE / IMU"; + this.lblImuTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // attitudeIndicator + // + this.attitudeIndicator.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); this.attitudeIndicator.Dock = System.Windows.Forms.DockStyle.Fill; + this.attitudeIndicator.LateralMaxDeg = 25D; + this.attitudeIndicator.Location = new System.Drawing.Point(0, 22); this.attitudeIndicator.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); - + this.attitudeIndicator.MinimumSize = new System.Drawing.Size(110, 110); + this.attitudeIndicator.Name = "attitudeIndicator"; + this.attitudeIndicator.PixelsPerDegree = 0.2D; + this.attitudeIndicator.Size = new System.Drawing.Size(110, 144); + this.attitudeIndicator.TabIndex = 1; + // + // imuInfoLayout + // this.imuInfoLayout.ColumnCount = 1; - this.imuInfoLayout.ColumnStyles.Clear(); this.imuInfoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.imuInfoLayout.RowCount = 3; - this.imuInfoLayout.RowStyles.Clear(); - this.imuInfoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 30F)); - this.imuInfoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 30F)); - this.imuInfoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 40F)); - this.imuInfoLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.imuInfoLayout.Margin = new System.Windows.Forms.Padding(2, 0, 0, 0); - this.cardImuModo.Dock = System.Windows.Forms.DockStyle.Fill; - this.cardImuModo.Titulo = "Modo auxiliar"; - this.cardImuModo.Valor = "SLOWDOWN"; - this.cardImuModo.CorValor = AgroBase.Forms.IHM.Controls.HmiTheme.Warning; - this.cardImuFator.Dock = System.Windows.Forms.DockStyle.Fill; - this.cardImuFator.Titulo = "Fator aplicado"; - this.cardImuFator.Valor = "0,80x"; - this.cardImuFator.CorValor = AgroBase.Forms.IHM.Controls.HmiTheme.Warning; - this.cardImuMotivo.Dock = System.Windows.Forms.DockStyle.Fill; - this.cardImuMotivo.Titulo = "Motivo"; - this.cardImuMotivo.Valor = "Inclinação frontal"; - this.cardImuMotivo.CorValor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; this.imuInfoLayout.Controls.Add(this.cardImuModo, 0, 0); this.imuInfoLayout.Controls.Add(this.cardImuFator, 0, 1); this.imuInfoLayout.Controls.Add(this.cardImuMotivo, 0, 2); - - // UC + this.imuInfoLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.imuInfoLayout.Location = new System.Drawing.Point(108, 22); + this.imuInfoLayout.Margin = new System.Windows.Forms.Padding(2, 0, 0, 0); + this.imuInfoLayout.Name = "imuInfoLayout"; + this.imuInfoLayout.RowCount = 3; + this.imuInfoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 30F)); + this.imuInfoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 30F)); + this.imuInfoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 40F)); + this.imuInfoLayout.Size = new System.Drawing.Size(79, 144); + this.imuInfoLayout.TabIndex = 2; + // + // cardImuModo + // + this.cardImuModo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardImuModo.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); + this.cardImuModo.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardImuModo.Location = new System.Drawing.Point(2, 2); + this.cardImuModo.Margin = new System.Windows.Forms.Padding(2); + this.cardImuModo.MinimumSize = new System.Drawing.Size(55, 32); + this.cardImuModo.Name = "cardImuModo"; + this.cardImuModo.Padding = new System.Windows.Forms.Padding(5, 2, 5, 2); + this.cardImuModo.Size = new System.Drawing.Size(75, 39); + this.cardImuModo.TabIndex = 0; + this.cardImuModo.Titulo = "Modo auxiliar"; + this.cardImuModo.Valor = "SLOWDOWN"; + // + // cardImuFator + // + this.cardImuFator.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardImuFator.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); + this.cardImuFator.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardImuFator.Location = new System.Drawing.Point(2, 45); + this.cardImuFator.Margin = new System.Windows.Forms.Padding(2); + this.cardImuFator.MinimumSize = new System.Drawing.Size(55, 32); + this.cardImuFator.Name = "cardImuFator"; + this.cardImuFator.Padding = new System.Windows.Forms.Padding(5, 2, 5, 2); + this.cardImuFator.Size = new System.Drawing.Size(75, 39); + this.cardImuFator.TabIndex = 1; + this.cardImuFator.Titulo = "Fator aplicado"; + this.cardImuFator.Valor = "0,80x"; + // + // cardImuMotivo + // + this.cardImuMotivo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardImuMotivo.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.cardImuMotivo.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardImuMotivo.Location = new System.Drawing.Point(2, 88); + this.cardImuMotivo.Margin = new System.Windows.Forms.Padding(2); + this.cardImuMotivo.MinimumSize = new System.Drawing.Size(55, 32); + this.cardImuMotivo.Name = "cardImuMotivo"; + this.cardImuMotivo.Padding = new System.Windows.Forms.Padding(5, 2, 5, 2); + this.cardImuMotivo.Size = new System.Drawing.Size(75, 54); + this.cardImuMotivo.TabIndex = 2; + this.cardImuMotivo.Titulo = "Motivo"; + this.cardImuMotivo.Valor = "Inclinação frontal"; + // + // ucOperacaoMovimentacao + // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.Background; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(17)))), ((int)(((byte)(20))))); this.Controls.Add(this.rootLayout); this.DoubleBuffered = true; this.Name = "ucOperacaoMovimentacao"; this.Size = new System.Drawing.Size(784, 435); - + this.rootLayout.ResumeLayout(false); + this.leftLayout.ResumeLayout(false); + this.pnlControle.ResumeLayout(false); + this.controleLayout.ResumeLayout(false); + this.acoesLayout.ResumeLayout(false); + this.pnlRodas.ResumeLayout(false); + this.rodasLayout.ResumeLayout(false); + this.centerLayout.ResumeLayout(false); + this.pnlCamera.ResumeLayout(false); + this.cameraLayout.ResumeLayout(false); + this.cameraHeaderLayout.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picCamera)).EndInit(); + this.pnlRadar.ResumeLayout(false); + this.radarLayout.ResumeLayout(false); + this.radarInfoLayout.ResumeLayout(false); + this.rightLayout.ResumeLayout(false); + this.pnlTelemetria.ResumeLayout(false); + this.telemetryLayout.ResumeLayout(false); + this.pnlImu.ResumeLayout(false); + this.imuLayout.ResumeLayout(false); + this.imuInfoLayout.ResumeLayout(false); this.ResumeLayout(false); + } - private static void ConfigurePanel(AgroBase.Forms.IHM.Controls.HmiRoundedPanel panel, System.Windows.Forms.Control child) - { - panel.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; - panel.Controls.Add(child); - panel.CornerRadius = 9; - panel.Dock = System.Windows.Forms.DockStyle.Fill; - panel.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; - panel.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); - panel.Padding = new System.Windows.Forms.Padding(7); - } - - private static void SetupTitle(System.Windows.Forms.Label label, string text) - { - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.BackColor = System.Drawing.Color.Transparent; - label.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; - label.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - label.AutoEllipsis = true; - } - - private static void SetupCaption(System.Windows.Forms.Label label, string text) - { - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.BackColor = System.Drawing.Color.Transparent; - label.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; - label.Font = new System.Drawing.Font("Segoe UI", 6.8F); - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - label.AutoEllipsis = true; - } - - private static void SetupValue(Label label, string text, Color color) - { - label.Dock = DockStyle.Fill; - label.BackColor = Color.Transparent; - label.ForeColor = color; - label.Font = new Font("Segoe UI", 6.8F, FontStyle.Bold); - label.Text = text; - label.TextAlign = ContentAlignment.MiddleRight; - label.AutoSize = false; - label.AutoEllipsis = false; - label.UseMnemonic = false; - label.Margin = Padding.Empty; - label.Padding = Padding.Empty; - } - - private static void SetupCombo(System.Windows.Forms.ComboBox combo) - { - combo.Dock = System.Windows.Forms.DockStyle.Fill; - combo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - combo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - combo.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.SurfaceRaised; - combo.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; - combo.Font = new System.Drawing.Font("Segoe UI", 7.4F); - combo.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); - } - - private static void SetupParameterSlider(HmiParameterSliderRow slider, string titulo, Color accent, int minimum, int maximum, int value, HmiSliderValueFormat format) - { - slider.CompactMode = true; - - slider.Dock = DockStyle.Fill; - slider.Margin = Padding.Empty; - slider.Padding = Padding.Empty; - slider.MinimumSize = Size.Empty; - slider.BackColor = Color.Transparent; - - slider.Titulo = titulo; - slider.Minimum = minimum; - slider.Maximum = maximum; - slider.ValueFormat = format; - slider.AccentColor = accent; - slider.Value = value; - } - - private static void SetupAction(HmiSidebarButton button, string text, Color accent) - { - button.Dock = DockStyle.Fill; - - button.Text = text; - button.IconText = string.Empty; - - button.AccentColor = accent; - button.BorderColor = accent; - button.FillColor = HmiTheme.SurfaceRaised; - - button.Margin = new Padding(2, 3, 2, 2); - button.MinimumSize = Size.Empty; - button.MaximumSize = Size.Empty; - } - - private static void SetupWheel(HmiWheelStatusCard card, string titulo) - { - card.Dock = DockStyle.Fill; - card.Margin = new Padding(2, 0, 2, 0); - card.MinimumSize = Size.Empty; - - card.Tag = titulo; - card.Titulo = titulo; - - card.DirecionalSp = "+0,0°"; - card.DirecionalAtual = "+0,0°"; - card.StatusDirecional = "Parado"; - - card.MovimentoSp = "0 rpm"; - card.MovimentoAtual = "0 rpm"; - card.StatusMovimento = "Sem freio"; - - card.CheckDir.Tag = titulo; - card.CheckDir.Checked = true; - card.CheckMov.Tag = titulo; - card.CheckMov.Checked = true; - - card.CorStatusDirecional = HmiTheme.Success; - card.CorStatusMovimento = HmiTheme.TextMuted; - - card.BringToFront(); - } - - private static void SetupCompactCard(HmiCompactMetricCard card, string titulo, string valor, Color cor) - { - card.Dock = DockStyle.Fill; - card.Titulo = titulo; - card.Valor = valor; - card.CorValor = cor; - card.Margin = new Padding(2); - card.MinimumSize = Size.Empty; - } - - private static void SetupTelemetry(AgroBase.Forms.IHM.Controls.Operacao.HmiTelemetryRow row, string icon, string title, string value) - { - row.Dock = System.Windows.Forms.DockStyle.Fill; - row.IconText = icon; - row.Titulo = title; - row.Valor = value; - } - - #endregion private System.Windows.Forms.TableLayoutPanel rootLayout; diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoMovimentacao.resx b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoMovimentacao.resx new file mode 100644 index 000000000..1af7de150 --- /dev/null +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoMovimentacao.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/Operacao/ucOperacaoNavegacao.Designer.cs b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoNavegacao.Designer.cs index 83e3495ca..d3529940e 100644 --- a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoNavegacao.Designer.cs +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoNavegacao.Designer.cs @@ -1,6 +1,9 @@ using AgroBase.Forms.IHM.Controls; +using Newtonsoft.Json.Linq; using System.Drawing; using System.Windows.Forms; +using System.Windows.Forms.DataVisualization.Charting; +using static System.Net.Mime.MediaTypeNames; namespace AgroBase.Forms.IHM.Operacao { @@ -22,7 +25,6 @@ namespace AgroBase.Forms.IHM.Operacao { this.rootLayout = new System.Windows.Forms.TableLayoutPanel(); this.topLayout = new System.Windows.Forms.TableLayoutPanel(); - this.pnlMapa = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.mapLayout = new System.Windows.Forms.TableLayoutPanel(); this.mapHeaderLayout = new System.Windows.Forms.TableLayoutPanel(); @@ -32,9 +34,7 @@ namespace AgroBase.Forms.IHM.Operacao this.pnlMapaVisual = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.pnlMapaWeb = new System.Windows.Forms.Panel(); this.pnlMapaDinamico = new System.Windows.Forms.Panel(); - this.rightTopLayout = new System.Windows.Forms.TableLayoutPanel(); - this.pnlOrientacao = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.orientationLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblOrientacaoTitulo = new System.Windows.Forms.Label(); @@ -44,115 +44,158 @@ namespace AgroBase.Forms.IHM.Operacao this.lblRoverValor = new System.Windows.Forms.Label(); this.lblTrajetoriaTitulo = new System.Windows.Forms.Label(); this.lblTrajetoriaValor = new System.Windows.Forms.Label(); - this.pnlGnss = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.gnssLayout = new System.Windows.Forms.TableLayoutPanel(); - this.lblGnssTitulo = new System.Windows.Forms.Label(); this.metricSatelites = new AgroBase.Forms.IHM.Controls.Operacao.HmiNavigationMetric(); this.metricPrecisao = new AgroBase.Forms.IHM.Controls.Operacao.HmiNavigationMetric(); this.metricIdadeCorrecao = new AgroBase.Forms.IHM.Controls.Operacao.HmiNavigationMetric(); this.metricAltitude = new AgroBase.Forms.IHM.Controls.Operacao.HmiNavigationMetric(); this.metricVelocidade = new AgroBase.Forms.IHM.Controls.Operacao.HmiNavigationMetric(); this.metricHeading = new AgroBase.Forms.IHM.Controls.Operacao.HmiNavigationMetric(); - this.pnlTrajetoria = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.trajectoryLayout = new System.Windows.Forms.TableLayoutPanel(); - this.lblTrajetoriaSecaoTitulo = new System.Windows.Forms.Label(); this.trajectoryTopCards = new System.Windows.Forms.TableLayoutPanel(); this.lblRuaAtual = new System.Windows.Forms.Label(); this.lblDentroCorredor = new System.Windows.Forms.Label(); this.lblProximoPonto = new System.Windows.Forms.Label(); - this.progressRuaHeader = new System.Windows.Forms.TableLayoutPanel(); this.lblProgressoRuaTitulo = new System.Windows.Forms.Label(); this.lblProgressoRuaValor = new System.Windows.Forms.Label(); this.progressRua = new AgroBase.Forms.IHM.Controls.Operacao.HmiProgressBar(); - this.progressGeralHeader = new System.Windows.Forms.TableLayoutPanel(); this.lblProgressoGeralTitulo = new System.Windows.Forms.Label(); this.lblProgressoGeralValor = new System.Windows.Forms.Label(); this.progressGeral = new AgroBase.Forms.IHM.Controls.Operacao.HmiProgressBar(); - this.trajectoryBottomLayout = new System.Windows.Forms.TableLayoutPanel(); + this.cardStatusMapa = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.lblStatusMapa = new System.Windows.Forms.Label(); + this.cardTempoOperacao = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.lblTempoOperacao = new System.Windows.Forms.Label(); + this.cardDistanciaEsq = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.lblDistanciaEsq = new System.Windows.Forms.Label(); + this.cardDistanciaDir = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.lblDistanciaDir = new System.Windows.Forms.Label(); - this.pnlAutonomia = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.autonomyLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblAutonomiaTitulo = new System.Windows.Forms.Label(); this.autonomiaBateria = new AgroBase.Forms.IHM.Controls.Operacao.HmiAutonomyResourceCard(); this.autonomiaHerbicida = new AgroBase.Forms.IHM.Controls.Operacao.HmiAutonomyResourceCard(); - this.pnlAutonomiaDireitaHost = new System.Windows.Forms.Panel(); this.pnlStatusAutonomia = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); - this.pnlAlertaAutonomia = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); - - this.alertLayout = new System.Windows.Forms.TableLayoutPanel(); - this.lblAlertaTitulo = new System.Windows.Forms.Label(); - this.lblAlertaTexto = new System.Windows.Forms.Label(); - this.btnAtualizarAutonomia = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); - this.btnLiberarSupervisao = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); - this.statusAutonomiaLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblStatusAutonomiaTitulo = new System.Windows.Forms.Label(); this.lblStatusBateria = new System.Windows.Forms.Label(); this.lblStatusHerbicida = new System.Windows.Forms.Label(); this.lblStatusCorredor = new System.Windows.Forms.Label(); this.lblStatusAvaliacao = new System.Windows.Forms.Label(); - - this.cardStatusMapa = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); - this.cardTempoOperacao = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); - this.cardDistanciaEsq = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); - this.cardDistanciaDir = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); - + this.pnlAlertaAutonomia = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); + this.alertLayout = new System.Windows.Forms.TableLayoutPanel(); + this.lblAlertaTitulo = new System.Windows.Forms.Label(); + this.lblAlertaTexto = new System.Windows.Forms.Label(); + this.btnAtualizarAutonomia = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); + this.btnLiberarSupervisao = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); + this.lblGnssTitulo = new System.Windows.Forms.Label(); + this.lblTrajetoriaSecaoTitulo = new System.Windows.Forms.Label(); + this.rootLayout.SuspendLayout(); + this.topLayout.SuspendLayout(); + this.pnlMapa.SuspendLayout(); + this.mapLayout.SuspendLayout(); + this.mapHeaderLayout.SuspendLayout(); + this.pnlMapaVisual.SuspendLayout(); + this.rightTopLayout.SuspendLayout(); + this.pnlOrientacao.SuspendLayout(); + this.orientationLayout.SuspendLayout(); + this.orientationValuesLayout.SuspendLayout(); + this.pnlGnss.SuspendLayout(); + this.gnssLayout.SuspendLayout(); + this.pnlTrajetoria.SuspendLayout(); + this.trajectoryLayout.SuspendLayout(); + this.trajectoryTopCards.SuspendLayout(); + this.progressRuaHeader.SuspendLayout(); + this.progressGeralHeader.SuspendLayout(); + this.trajectoryBottomLayout.SuspendLayout(); + this.cardStatusMapa.SuspendLayout(); + this.cardTempoOperacao.SuspendLayout(); + this.cardDistanciaEsq.SuspendLayout(); + this.cardDistanciaDir.SuspendLayout(); + this.pnlAutonomia.SuspendLayout(); + this.autonomyLayout.SuspendLayout(); + this.pnlAutonomiaDireitaHost.SuspendLayout(); + this.pnlStatusAutonomia.SuspendLayout(); + this.statusAutonomiaLayout.SuspendLayout(); + this.pnlAlertaAutonomia.SuspendLayout(); + this.alertLayout.SuspendLayout(); this.SuspendLayout(); - - this.rootLayout.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.Background; + // + // rootLayout + // + this.rootLayout.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(17)))), ((int)(((byte)(20))))); this.rootLayout.ColumnCount = 2; this.rootLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 56F)); this.rootLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 44F)); this.rootLayout.Controls.Add(this.topLayout, 0, 0); - this.rootLayout.SetColumnSpan(this.topLayout, 2); this.rootLayout.Controls.Add(this.pnlAutonomia, 0, 1); - this.pnlAutonomiaDireitaHost.Dock = DockStyle.Fill; - this.pnlAutonomiaDireitaHost.BackColor = Color.Transparent; - this.pnlAutonomiaDireitaHost.Margin = new Padding(3, 0, 0, 0); - this.pnlAutonomiaDireitaHost.Controls.Add(this.pnlStatusAutonomia); - this.pnlAutonomiaDireitaHost.Controls.Add(this.pnlAlertaAutonomia); - - this.pnlStatusAutonomia.Dock = DockStyle.Fill; - this.pnlAlertaAutonomia.Dock = DockStyle.Fill; - this.pnlStatusAutonomia.Margin = Padding.Empty; - this.pnlAlertaAutonomia.Margin = Padding.Empty; - this.rootLayout.Controls.Add(this.pnlAutonomiaDireitaHost, 1, 1); this.rootLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.rootLayout.Margin = System.Windows.Forms.Padding.Empty; - this.rootLayout.Padding = System.Windows.Forms.Padding.Empty; + this.rootLayout.Location = new System.Drawing.Point(0, 0); + this.rootLayout.Margin = new System.Windows.Forms.Padding(0); + this.rootLayout.Name = "rootLayout"; this.rootLayout.RowCount = 2; this.rootLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 72F)); this.rootLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 28F)); - + this.rootLayout.Size = new System.Drawing.Size(784, 435); + this.rootLayout.TabIndex = 0; + // + // topLayout + // this.topLayout.ColumnCount = 2; + this.rootLayout.SetColumnSpan(this.topLayout, 2); this.topLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 57F)); this.topLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 43F)); this.topLayout.Controls.Add(this.pnlMapa, 0, 0); this.topLayout.Controls.Add(this.rightTopLayout, 1, 0); this.topLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.topLayout.Location = new System.Drawing.Point(0, 0); this.topLayout.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); - - ConfigurePanel(this.pnlMapa, this.mapLayout); + this.topLayout.Name = "topLayout"; + this.topLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.topLayout.Size = new System.Drawing.Size(784, 310); + this.topLayout.TabIndex = 0; + // + // pnlMapa + // + this.pnlMapa.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlMapa.BackColor = System.Drawing.Color.Transparent; + this.pnlMapa.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlMapa.Controls.Add(this.mapLayout); + this.pnlMapa.CornerRadius = 9; + this.pnlMapa.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlMapa.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlMapa.Location = new System.Drawing.Point(0, 0); + this.pnlMapa.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlMapa.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlMapa.Name = "pnlMapa"; + this.pnlMapa.Padding = new System.Windows.Forms.Padding(7); + this.pnlMapa.Size = new System.Drawing.Size(446, 307); + this.pnlMapa.TabIndex = 0; + // + // mapLayout + // this.mapLayout.ColumnCount = 1; this.mapLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.mapLayout.Controls.Add(this.mapHeaderLayout, 0, 0); this.mapLayout.Controls.Add(this.pnlMapaVisual, 0, 1); this.mapLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.mapLayout.Location = new System.Drawing.Point(7, 7); + this.mapLayout.Name = "mapLayout"; this.mapLayout.RowCount = 2; this.mapLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 31F)); this.mapLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - + this.mapLayout.Size = new System.Drawing.Size(432, 293); + this.mapLayout.TabIndex = 0; + // + // mapHeaderLayout + // this.mapHeaderLayout.ColumnCount = 3; this.mapHeaderLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.mapHeaderLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 72F)); @@ -161,68 +204,177 @@ namespace AgroBase.Forms.IHM.Operacao this.mapHeaderLayout.Controls.Add(this.btnMapaWeb, 1, 0); this.mapHeaderLayout.Controls.Add(this.btnMapaDinamico, 2, 0); this.mapHeaderLayout.Dock = System.Windows.Forms.DockStyle.Fill; - - SetupTitle(this.lblMapaTitulo, "MAPA DE NAVEGAÇÃO"); - SetupMapButton(this.btnMapaWeb, "Mapa Web"); - SetupMapButton(this.btnMapaDinamico, "Trajetória"); - - this.pnlMapaVisual.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; - this.pnlMapaVisual.CornerRadius = 8; - this.pnlMapaVisual.Dock = System.Windows.Forms.DockStyle.Fill; - this.pnlMapaVisual.FillColor = System.Drawing.Color.FromArgb(18, 29, 22); + this.mapHeaderLayout.Location = new System.Drawing.Point(3, 3); + this.mapHeaderLayout.Name = "mapHeaderLayout"; + this.mapHeaderLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.mapHeaderLayout.Size = new System.Drawing.Size(426, 25); + this.mapHeaderLayout.TabIndex = 0; + // + // lblMapaTitulo + // + this.lblMapaTitulo.AutoEllipsis = true; + this.lblMapaTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblMapaTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblMapaTitulo.Font = new System.Drawing.Font("Segoe UI", 8.6F, System.Drawing.FontStyle.Bold); + this.lblMapaTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblMapaTitulo.Location = new System.Drawing.Point(3, 0); + this.lblMapaTitulo.Name = "lblMapaTitulo"; + this.lblMapaTitulo.Size = new System.Drawing.Size(242, 25); + this.lblMapaTitulo.TabIndex = 0; + this.lblMapaTitulo.Text = "MAPA DE NAVEGAÇÃO"; + this.lblMapaTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // btnMapaWeb + // + this.btnMapaWeb.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnMapaWeb.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnMapaWeb.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.btnMapaWeb.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnMapaWeb.Font = new System.Drawing.Font("Segoe UI", 7F, System.Drawing.FontStyle.Bold); + this.btnMapaWeb.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.btnMapaWeb.Location = new System.Drawing.Point(250, 2); + this.btnMapaWeb.Margin = new System.Windows.Forms.Padding(2); + this.btnMapaWeb.Name = "btnMapaWeb"; + this.btnMapaWeb.Size = new System.Drawing.Size(68, 21); + this.btnMapaWeb.TabIndex = 1; + this.btnMapaWeb.Text = "Mapa Web"; + this.btnMapaWeb.UseVisualStyleBackColor = false; + // + // btnMapaDinamico + // + this.btnMapaDinamico.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnMapaDinamico.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnMapaDinamico.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.btnMapaDinamico.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnMapaDinamico.Font = new System.Drawing.Font("Segoe UI", 7F, System.Drawing.FontStyle.Bold); + this.btnMapaDinamico.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.btnMapaDinamico.Location = new System.Drawing.Point(322, 2); + this.btnMapaDinamico.Margin = new System.Windows.Forms.Padding(2); + this.btnMapaDinamico.Name = "btnMapaDinamico"; + this.btnMapaDinamico.Size = new System.Drawing.Size(102, 21); + this.btnMapaDinamico.TabIndex = 2; + this.btnMapaDinamico.Text = "Trajetória"; + this.btnMapaDinamico.UseVisualStyleBackColor = false; + // + // pnlMapaVisual + // + this.pnlMapaVisual.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlMapaVisual.BackColor = System.Drawing.Color.Transparent; + this.pnlMapaVisual.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); this.pnlMapaVisual.Controls.Add(this.pnlMapaWeb); this.pnlMapaVisual.Controls.Add(this.pnlMapaDinamico); - - this.pnlMapaWeb.Dock = DockStyle.Fill; - this.pnlMapaWeb.Margin = Padding.Empty; - this.pnlMapaWeb.Padding = Padding.Empty; - this.pnlMapaWeb.BackColor = Color.Black; - - this.pnlMapaDinamico.Dock = DockStyle.Fill; - this.pnlMapaDinamico.Margin = Padding.Empty; - this.pnlMapaDinamico.Padding = Padding.Empty; - this.pnlMapaDinamico.BackColor = HmiTheme.Text; - + this.pnlMapaVisual.CornerRadius = 8; + this.pnlMapaVisual.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlMapaVisual.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(18)))), ((int)(((byte)(29)))), ((int)(((byte)(22))))); + this.pnlMapaVisual.Location = new System.Drawing.Point(3, 34); + this.pnlMapaVisual.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlMapaVisual.Name = "pnlMapaVisual"; + this.pnlMapaVisual.Padding = new System.Windows.Forms.Padding(12); + this.pnlMapaVisual.Size = new System.Drawing.Size(426, 256); + this.pnlMapaVisual.TabIndex = 1; + // + // pnlMapaWeb + // + this.pnlMapaWeb.BackColor = System.Drawing.Color.Black; + this.pnlMapaWeb.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlMapaWeb.Location = new System.Drawing.Point(12, 12); + this.pnlMapaWeb.Margin = new System.Windows.Forms.Padding(0); + this.pnlMapaWeb.Name = "pnlMapaWeb"; + this.pnlMapaWeb.Size = new System.Drawing.Size(402, 232); + this.pnlMapaWeb.TabIndex = 0; + // + // pnlMapaDinamico + // + this.pnlMapaDinamico.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.pnlMapaDinamico.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlMapaDinamico.Location = new System.Drawing.Point(12, 12); + this.pnlMapaDinamico.Margin = new System.Windows.Forms.Padding(0); + this.pnlMapaDinamico.Name = "pnlMapaDinamico"; + this.pnlMapaDinamico.Size = new System.Drawing.Size(402, 232); + this.pnlMapaDinamico.TabIndex = 1; + // + // rightTopLayout + // this.rightTopLayout.ColumnCount = 2; this.rightTopLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 54F)); this.rightTopLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 46F)); - this.pnlOrientacao.Margin = new Padding(0, 0, 3, 3); this.rightTopLayout.Controls.Add(this.pnlOrientacao, 0, 0); - this.pnlGnss.Margin = new Padding(3, 0, 0, 3); this.rightTopLayout.Controls.Add(this.pnlGnss, 1, 0); this.rightTopLayout.Controls.Add(this.pnlTrajetoria, 0, 1); - this.rightTopLayout.SetColumnSpan(this.pnlTrajetoria, 2); this.rightTopLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.rightTopLayout.Location = new System.Drawing.Point(449, 0); this.rightTopLayout.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); + this.rightTopLayout.Name = "rightTopLayout"; this.rightTopLayout.RowCount = 2; this.rightTopLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 44F)); this.rightTopLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 56F)); - - ConfigurePanel(this.pnlOrientacao, this.orientationLayout); - this.pnlOrientacao.Padding = new Padding(2); - this.orientationLayout.Dock = DockStyle.Fill; - this.orientationLayout.Margin = Padding.Empty; - this.orientationLayout.Padding = Padding.Empty; + this.rightTopLayout.Size = new System.Drawing.Size(335, 310); + this.rightTopLayout.TabIndex = 1; + // + // pnlOrientacao + // + this.pnlOrientacao.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlOrientacao.BackColor = System.Drawing.Color.Transparent; + this.pnlOrientacao.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlOrientacao.Controls.Add(this.orientationLayout); + this.pnlOrientacao.CornerRadius = 9; + this.pnlOrientacao.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlOrientacao.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlOrientacao.Location = new System.Drawing.Point(0, 0); + this.pnlOrientacao.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlOrientacao.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlOrientacao.Name = "pnlOrientacao"; + this.pnlOrientacao.Padding = new System.Windows.Forms.Padding(2); + this.pnlOrientacao.Size = new System.Drawing.Size(180, 133); + this.pnlOrientacao.TabIndex = 0; + // + // orientationLayout + // this.orientationLayout.ColumnCount = 2; - this.orientationLayout.ColumnStyles.Clear(); - this.orientationLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 60F)); - this.orientationLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 40F)); - this.orientationLayout.RowCount = 2; - this.orientationLayout.RowStyles.Clear(); - this.orientationLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 16F)); - this.orientationLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); - SetupTitle(this.lblOrientacaoTitulo, "ORIENTAÇÃO"); - this.lblOrientacaoTitulo.Font = new Font("Segoe UI", 7.5F, FontStyle.Bold); - this.lblOrientacaoTitulo.Margin = Padding.Empty; + this.orientationLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 60F)); + this.orientationLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 40F)); this.orientationLayout.Controls.Add(this.lblOrientacaoTitulo, 0, 0); - this.orientationLayout.SetColumnSpan(this.lblOrientacaoTitulo, 2); this.orientationLayout.Controls.Add(this.compassControl, 0, 1); this.orientationLayout.Controls.Add(this.orientationValuesLayout, 1, 1); - this.compassControl.Dock = DockStyle.Fill; - this.compassControl.Margin = Padding.Empty; - this.compassControl.MinimumSize = Size.Empty; - this.compassControl.MaximumSize = Size.Empty; - + this.orientationLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.orientationLayout.Location = new System.Drawing.Point(2, 2); + this.orientationLayout.Margin = new System.Windows.Forms.Padding(0); + this.orientationLayout.Name = "orientationLayout"; + this.orientationLayout.RowCount = 2; + this.orientationLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 16F)); + this.orientationLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.orientationLayout.Size = new System.Drawing.Size(176, 129); + this.orientationLayout.TabIndex = 0; + // + // lblOrientacaoTitulo + // + this.lblOrientacaoTitulo.AutoEllipsis = true; + this.lblOrientacaoTitulo.BackColor = System.Drawing.Color.Transparent; + this.orientationLayout.SetColumnSpan(this.lblOrientacaoTitulo, 2); + this.lblOrientacaoTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblOrientacaoTitulo.Font = new System.Drawing.Font("Segoe UI", 7.5F, System.Drawing.FontStyle.Bold); + this.lblOrientacaoTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblOrientacaoTitulo.Location = new System.Drawing.Point(0, 0); + this.lblOrientacaoTitulo.Margin = new System.Windows.Forms.Padding(0); + this.lblOrientacaoTitulo.Name = "lblOrientacaoTitulo"; + this.lblOrientacaoTitulo.Size = new System.Drawing.Size(176, 16); + this.lblOrientacaoTitulo.TabIndex = 0; + this.lblOrientacaoTitulo.Text = "ORIENTAÇÃO"; + this.lblOrientacaoTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // compassControl + // + this.compassControl.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.compassControl.Dock = System.Windows.Forms.DockStyle.Fill; + this.compassControl.Location = new System.Drawing.Point(0, 16); + this.compassControl.Margin = new System.Windows.Forms.Padding(0); + this.compassControl.MinimumSize = new System.Drawing.Size(88, 88); + this.compassControl.Name = "compassControl"; + this.compassControl.Size = new System.Drawing.Size(105, 113); + this.compassControl.TabIndex = 1; + // + // orientationValuesLayout + // this.orientationValuesLayout.ColumnCount = 1; this.orientationValuesLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.orientationValuesLayout.Controls.Add(this.lblRoverTitulo, 0, 0); @@ -230,19 +382,91 @@ namespace AgroBase.Forms.IHM.Operacao this.orientationValuesLayout.Controls.Add(this.lblTrajetoriaTitulo, 0, 2); this.orientationValuesLayout.Controls.Add(this.lblTrajetoriaValor, 0, 3); this.orientationValuesLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.orientationValuesLayout.Location = new System.Drawing.Point(108, 19); + this.orientationValuesLayout.Name = "orientationValuesLayout"; this.orientationValuesLayout.RowCount = 4; this.orientationValuesLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 18F)); this.orientationValuesLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 32F)); this.orientationValuesLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 18F)); this.orientationValuesLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 32F)); - - SetupHeadingTitle(this.lblRoverTitulo, "Rover", AgroBase.Forms.IHM.Controls.HmiTheme.Text); - SetupHeadingValue(this.lblRoverValor, "128°", AgroBase.Forms.IHM.Controls.HmiTheme.Success); - SetupHeadingTitle(this.lblTrajetoriaTitulo, "Trajetória", AgroBase.Forms.IHM.Controls.HmiTheme.Text); - SetupHeadingValue(this.lblTrajetoriaValor, "136°", AgroBase.Forms.IHM.Controls.HmiTheme.Manual); - - ConfigurePanel(this.pnlGnss, this.gnssLayout); - this.pnlGnss.Padding = new Padding(6, 4, 6, 4); + this.orientationValuesLayout.Size = new System.Drawing.Size(65, 107); + this.orientationValuesLayout.TabIndex = 2; + // + // lblRoverTitulo + // + this.lblRoverTitulo.AutoEllipsis = true; + this.lblRoverTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblRoverTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblRoverTitulo.Font = new System.Drawing.Font("Segoe UI", 6.8F, System.Drawing.FontStyle.Bold); + this.lblRoverTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblRoverTitulo.Location = new System.Drawing.Point(3, 0); + this.lblRoverTitulo.Name = "lblRoverTitulo"; + this.lblRoverTitulo.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0); + this.lblRoverTitulo.Size = new System.Drawing.Size(59, 19); + this.lblRoverTitulo.TabIndex = 0; + this.lblRoverTitulo.Text = "Rover"; + this.lblRoverTitulo.TextAlign = System.Drawing.ContentAlignment.BottomLeft; + // + // lblRoverValor + // + this.lblRoverValor.BackColor = System.Drawing.Color.Transparent; + this.lblRoverValor.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblRoverValor.Font = new System.Drawing.Font("Segoe UI", 12.5F, System.Drawing.FontStyle.Bold); + this.lblRoverValor.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.lblRoverValor.Location = new System.Drawing.Point(3, 19); + this.lblRoverValor.Name = "lblRoverValor"; + this.lblRoverValor.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0); + this.lblRoverValor.Size = new System.Drawing.Size(59, 34); + this.lblRoverValor.TabIndex = 1; + this.lblRoverValor.Text = "128°"; + // + // lblTrajetoriaTitulo + // + this.lblTrajetoriaTitulo.AutoEllipsis = true; + this.lblTrajetoriaTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblTrajetoriaTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblTrajetoriaTitulo.Font = new System.Drawing.Font("Segoe UI", 6.8F, System.Drawing.FontStyle.Bold); + this.lblTrajetoriaTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblTrajetoriaTitulo.Location = new System.Drawing.Point(3, 53); + this.lblTrajetoriaTitulo.Name = "lblTrajetoriaTitulo"; + this.lblTrajetoriaTitulo.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0); + this.lblTrajetoriaTitulo.Size = new System.Drawing.Size(59, 19); + this.lblTrajetoriaTitulo.TabIndex = 2; + this.lblTrajetoriaTitulo.Text = "Trajetória"; + this.lblTrajetoriaTitulo.TextAlign = System.Drawing.ContentAlignment.BottomLeft; + // + // lblTrajetoriaValor + // + this.lblTrajetoriaValor.BackColor = System.Drawing.Color.Transparent; + this.lblTrajetoriaValor.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblTrajetoriaValor.Font = new System.Drawing.Font("Segoe UI", 12.5F, System.Drawing.FontStyle.Bold); + this.lblTrajetoriaValor.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(106)))), ((int)(((byte)(222))))); + this.lblTrajetoriaValor.Location = new System.Drawing.Point(3, 72); + this.lblTrajetoriaValor.Name = "lblTrajetoriaValor"; + this.lblTrajetoriaValor.Padding = new System.Windows.Forms.Padding(2, 0, 0, 0); + this.lblTrajetoriaValor.Size = new System.Drawing.Size(59, 35); + this.lblTrajetoriaValor.TabIndex = 3; + this.lblTrajetoriaValor.Text = "136°"; + // + // pnlGnss + // + this.pnlGnss.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlGnss.BackColor = System.Drawing.Color.Transparent; + this.pnlGnss.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlGnss.Controls.Add(this.gnssLayout); + this.pnlGnss.CornerRadius = 9; + this.pnlGnss.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlGnss.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlGnss.Location = new System.Drawing.Point(180, 0); + this.pnlGnss.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlGnss.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlGnss.Name = "pnlGnss"; + this.pnlGnss.Padding = new System.Windows.Forms.Padding(6, 4, 6, 4); + this.pnlGnss.Size = new System.Drawing.Size(155, 133); + this.pnlGnss.TabIndex = 1; + // + // gnssLayout + // this.gnssLayout.ColumnCount = 1; this.gnssLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.gnssLayout.Controls.Add(this.metricSatelites, 0, 0); @@ -252,20 +476,134 @@ namespace AgroBase.Forms.IHM.Operacao this.gnssLayout.Controls.Add(this.metricVelocidade, 0, 4); this.gnssLayout.Controls.Add(this.metricHeading, 0, 5); this.gnssLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.gnssLayout.Location = new System.Drawing.Point(6, 4); + this.gnssLayout.Name = "gnssLayout"; this.gnssLayout.RowCount = 6; - this.gnssLayout.RowStyles.Clear(); - for (int i = 0; i < this.gnssLayout.RowCount; i++) - this.gnssLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 100F / this.gnssLayout.RowCount)); - - //SetupTitle(this.lblGnssTitulo, "GNSS"); - SetupMetric(this.metricSatelites, "Satélites", "18", 65); - SetupMetric(this.metricPrecisao, "Precisão", "0,8 cm", 72); - SetupMetric(this.metricIdadeCorrecao, "Idade correção", "1,2 s", 72); - SetupMetric(this.metricAltitude, "Altitude", "812 m", 72); - SetupMetric(this.metricVelocidade, "Velocidade", "3,4 km/h", 82); - SetupMetric(this.metricHeading, "Heading", "128°", 65); - - ConfigurePanel(this.pnlTrajetoria, this.trajectoryLayout); + this.gnssLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66F)); + this.gnssLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66F)); + this.gnssLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66F)); + this.gnssLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66F)); + this.gnssLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66F)); + this.gnssLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 16.66F)); + this.gnssLayout.Size = new System.Drawing.Size(143, 125); + this.gnssLayout.TabIndex = 0; + // + // metricSatelites + // + this.metricSatelites.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.metricSatelites.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.metricSatelites.Dock = System.Windows.Forms.DockStyle.Fill; + this.metricSatelites.LarguraValor = 65; + this.metricSatelites.Location = new System.Drawing.Point(0, 0); + this.metricSatelites.Margin = new System.Windows.Forms.Padding(0); + this.metricSatelites.MinimumSize = new System.Drawing.Size(105, 22); + this.metricSatelites.Name = "metricSatelites"; + this.metricSatelites.Padding = new System.Windows.Forms.Padding(2, 0, 2, 1); + this.metricSatelites.Size = new System.Drawing.Size(143, 22); + this.metricSatelites.TabIndex = 0; + this.metricSatelites.Titulo = "Satélites"; + this.metricSatelites.Valor = "18"; + // + // metricPrecisao + // + this.metricPrecisao.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.metricPrecisao.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.metricPrecisao.Dock = System.Windows.Forms.DockStyle.Fill; + this.metricPrecisao.LarguraValor = 49; + this.metricPrecisao.Location = new System.Drawing.Point(0, 20); + this.metricPrecisao.Margin = new System.Windows.Forms.Padding(0); + this.metricPrecisao.MinimumSize = new System.Drawing.Size(105, 22); + this.metricPrecisao.Name = "metricPrecisao"; + this.metricPrecisao.Padding = new System.Windows.Forms.Padding(2, 0, 2, 1); + this.metricPrecisao.Size = new System.Drawing.Size(143, 22); + this.metricPrecisao.TabIndex = 1; + this.metricPrecisao.Titulo = "Precisão"; + this.metricPrecisao.Valor = "0,8 cm"; + // + // metricIdadeCorrecao + // + this.metricIdadeCorrecao.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.metricIdadeCorrecao.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.metricIdadeCorrecao.Dock = System.Windows.Forms.DockStyle.Fill; + this.metricIdadeCorrecao.LarguraValor = 49; + this.metricIdadeCorrecao.Location = new System.Drawing.Point(0, 40); + this.metricIdadeCorrecao.Margin = new System.Windows.Forms.Padding(0); + this.metricIdadeCorrecao.MinimumSize = new System.Drawing.Size(105, 22); + this.metricIdadeCorrecao.Name = "metricIdadeCorrecao"; + this.metricIdadeCorrecao.Padding = new System.Windows.Forms.Padding(2, 0, 2, 1); + this.metricIdadeCorrecao.Size = new System.Drawing.Size(143, 22); + this.metricIdadeCorrecao.TabIndex = 2; + this.metricIdadeCorrecao.Titulo = "Idade correção"; + this.metricIdadeCorrecao.Valor = "1,2 s"; + // + // metricAltitude + // + this.metricAltitude.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.metricAltitude.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.metricAltitude.Dock = System.Windows.Forms.DockStyle.Fill; + this.metricAltitude.LarguraValor = 49; + this.metricAltitude.Location = new System.Drawing.Point(0, 60); + this.metricAltitude.Margin = new System.Windows.Forms.Padding(0); + this.metricAltitude.MinimumSize = new System.Drawing.Size(105, 22); + this.metricAltitude.Name = "metricAltitude"; + this.metricAltitude.Padding = new System.Windows.Forms.Padding(2, 0, 2, 1); + this.metricAltitude.Size = new System.Drawing.Size(143, 22); + this.metricAltitude.TabIndex = 3; + this.metricAltitude.Titulo = "Altitude"; + this.metricAltitude.Valor = "812 m"; + // + // metricVelocidade + // + this.metricVelocidade.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.metricVelocidade.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.metricVelocidade.Dock = System.Windows.Forms.DockStyle.Fill; + this.metricVelocidade.LarguraValor = 82; + this.metricVelocidade.Location = new System.Drawing.Point(0, 80); + this.metricVelocidade.Margin = new System.Windows.Forms.Padding(0); + this.metricVelocidade.MinimumSize = new System.Drawing.Size(105, 22); + this.metricVelocidade.Name = "metricVelocidade"; + this.metricVelocidade.Padding = new System.Windows.Forms.Padding(2, 0, 2, 1); + this.metricVelocidade.Size = new System.Drawing.Size(143, 22); + this.metricVelocidade.TabIndex = 4; + this.metricVelocidade.Titulo = "Velocidade"; + this.metricVelocidade.Valor = "3,4 km/h"; + // + // metricHeading + // + this.metricHeading.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.metricHeading.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.metricHeading.Dock = System.Windows.Forms.DockStyle.Fill; + this.metricHeading.LarguraValor = 65; + this.metricHeading.Location = new System.Drawing.Point(0, 100); + this.metricHeading.Margin = new System.Windows.Forms.Padding(0); + this.metricHeading.MinimumSize = new System.Drawing.Size(105, 22); + this.metricHeading.Name = "metricHeading"; + this.metricHeading.Padding = new System.Windows.Forms.Padding(2, 0, 2, 1); + this.metricHeading.Size = new System.Drawing.Size(143, 25); + this.metricHeading.TabIndex = 5; + this.metricHeading.Titulo = "Heading"; + this.metricHeading.Valor = "128°"; + // + // pnlTrajetoria + // + this.pnlTrajetoria.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlTrajetoria.BackColor = System.Drawing.Color.Transparent; + this.pnlTrajetoria.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.rightTopLayout.SetColumnSpan(this.pnlTrajetoria, 2); + this.pnlTrajetoria.Controls.Add(this.trajectoryLayout); + this.pnlTrajetoria.CornerRadius = 9; + this.pnlTrajetoria.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlTrajetoria.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlTrajetoria.Location = new System.Drawing.Point(0, 136); + this.pnlTrajetoria.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlTrajetoria.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlTrajetoria.Name = "pnlTrajetoria"; + this.pnlTrajetoria.Padding = new System.Windows.Forms.Padding(7); + this.pnlTrajetoria.Size = new System.Drawing.Size(335, 171); + this.pnlTrajetoria.TabIndex = 2; + // + // trajectoryLayout + // this.trajectoryLayout.ColumnCount = 1; this.trajectoryLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.trajectoryLayout.Controls.Add(this.trajectoryTopCards, 0, 0); @@ -275,17 +613,20 @@ namespace AgroBase.Forms.IHM.Operacao this.trajectoryLayout.Controls.Add(this.progressGeral, 0, 4); this.trajectoryLayout.Controls.Add(this.trajectoryBottomLayout, 0, 5); this.trajectoryLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.trajectoryLayout.Location = new System.Drawing.Point(7, 7); + this.trajectoryLayout.Name = "trajectoryLayout"; this.trajectoryLayout.RowCount = 6; - this.trajectoryLayout.RowStyles.Clear(); - this.trajectoryLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 30F)); - this.trajectoryLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 25F)); - this.trajectoryLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 12F)); - this.trajectoryLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 25F)); - this.trajectoryLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 12F)); - this.trajectoryLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 40F)); - - //SetupTitle(this.lblTrajetoriaSecaoTitulo, "TRAJETÓRIA"); - + this.trajectoryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 30F)); + this.trajectoryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.trajectoryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 15F)); + this.trajectoryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.trajectoryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 15F)); + this.trajectoryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 40F)); + this.trajectoryLayout.Size = new System.Drawing.Size(321, 157); + this.trajectoryLayout.TabIndex = 0; + // + // trajectoryTopCards + // this.trajectoryTopCards.ColumnCount = 3; this.trajectoryTopCards.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); this.trajectoryTopCards.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); @@ -294,141 +635,442 @@ namespace AgroBase.Forms.IHM.Operacao this.trajectoryTopCards.Controls.Add(this.lblDentroCorredor, 1, 0); this.trajectoryTopCards.Controls.Add(this.lblProximoPonto, 2, 0); this.trajectoryTopCards.Dock = System.Windows.Forms.DockStyle.Fill; - - SetupInfoBox(this.lblRuaAtual, "Rua 12 / 35", AgroBase.Forms.IHM.Controls.HmiTheme.Info); - SetupInfoBox(this.lblDentroCorredor, "No corredor Sim", AgroBase.Forms.IHM.Controls.HmiTheme.Success); - SetupInfoBox(this.lblProximoPonto, "Ponto 124 / 842", AgroBase.Forms.IHM.Controls.HmiTheme.Info); - - SetupProgressHeader( - this.progressRuaHeader, - this.lblProgressoRuaTitulo, - this.lblProgressoRuaValor, - "Progresso da rua", - "65% · 124 / 275 m"); - - this.progressRua.Dock = System.Windows.Forms.DockStyle.Fill; - this.progressRua.Maximum = 100; - this.progressRua.Value = 65; - this.progressRua.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1); + this.trajectoryTopCards.Location = new System.Drawing.Point(3, 3); + this.trajectoryTopCards.Name = "trajectoryTopCards"; + this.trajectoryTopCards.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.trajectoryTopCards.Size = new System.Drawing.Size(315, 24); + this.trajectoryTopCards.TabIndex = 0; + // + // lblRuaAtual + // + this.lblRuaAtual.AutoEllipsis = true; + this.lblRuaAtual.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.lblRuaAtual.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblRuaAtual.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); + this.lblRuaAtual.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.lblRuaAtual.Location = new System.Drawing.Point(1, 1); + this.lblRuaAtual.Margin = new System.Windows.Forms.Padding(1); + this.lblRuaAtual.Name = "lblRuaAtual"; + this.lblRuaAtual.Size = new System.Drawing.Size(102, 22); + this.lblRuaAtual.TabIndex = 0; + this.lblRuaAtual.Text = "Rua 12 / 35"; + this.lblRuaAtual.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // lblDentroCorredor + // + this.lblDentroCorredor.AutoEllipsis = true; + this.lblDentroCorredor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.lblDentroCorredor.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblDentroCorredor.Font = new System.Drawing.Font("Segoe UI", 7F, System.Drawing.FontStyle.Bold); + this.lblDentroCorredor.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.lblDentroCorredor.Location = new System.Drawing.Point(105, 1); + this.lblDentroCorredor.Margin = new System.Windows.Forms.Padding(1); + this.lblDentroCorredor.Name = "lblDentroCorredor"; + this.lblDentroCorredor.Size = new System.Drawing.Size(102, 22); + this.lblDentroCorredor.TabIndex = 1; + this.lblDentroCorredor.Text = "Dentro Corredor"; + this.lblDentroCorredor.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // lblProximoPonto + // + this.lblProximoPonto.AutoEllipsis = true; + this.lblProximoPonto.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.lblProximoPonto.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblProximoPonto.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); + this.lblProximoPonto.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.lblProximoPonto.Location = new System.Drawing.Point(209, 1); + this.lblProximoPonto.Margin = new System.Windows.Forms.Padding(1); + this.lblProximoPonto.Name = "lblProximoPonto"; + this.lblProximoPonto.Size = new System.Drawing.Size(105, 22); + this.lblProximoPonto.TabIndex = 2; + this.lblProximoPonto.Text = "Ponto 124 / 842"; + this.lblProximoPonto.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // progressRuaHeader + // + this.progressRuaHeader.ColumnCount = 2; + this.progressRuaHeader.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 45F)); + this.progressRuaHeader.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 55F)); + this.progressRuaHeader.Controls.Add(this.lblProgressoRuaTitulo, 0, 0); + this.progressRuaHeader.Controls.Add(this.lblProgressoRuaValor, 1, 0); + this.progressRuaHeader.Dock = System.Windows.Forms.DockStyle.Fill; + this.progressRuaHeader.Location = new System.Drawing.Point(0, 30); + this.progressRuaHeader.Margin = new System.Windows.Forms.Padding(0); + this.progressRuaHeader.Name = "progressRuaHeader"; + this.progressRuaHeader.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.progressRuaHeader.Size = new System.Drawing.Size(321, 20); + this.progressRuaHeader.TabIndex = 1; + // + // lblProgressoRuaTitulo + // + this.lblProgressoRuaTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblProgressoRuaTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblProgressoRuaTitulo.Font = new System.Drawing.Font("Segoe UI", 6.5F); + this.lblProgressoRuaTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblProgressoRuaTitulo.Location = new System.Drawing.Point(3, 0); + this.lblProgressoRuaTitulo.Name = "lblProgressoRuaTitulo"; + this.lblProgressoRuaTitulo.Size = new System.Drawing.Size(138, 20); + this.lblProgressoRuaTitulo.TabIndex = 0; + this.lblProgressoRuaTitulo.Text = "Progresso da rua"; + this.lblProgressoRuaTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // lblProgressoRuaValor + // + this.lblProgressoRuaValor.AutoEllipsis = true; + this.lblProgressoRuaValor.BackColor = System.Drawing.Color.Transparent; + this.lblProgressoRuaValor.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblProgressoRuaValor.Font = new System.Drawing.Font("Segoe UI", 6.5F, System.Drawing.FontStyle.Bold); + this.lblProgressoRuaValor.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblProgressoRuaValor.Location = new System.Drawing.Point(147, 0); + this.lblProgressoRuaValor.Name = "lblProgressoRuaValor"; + this.lblProgressoRuaValor.Size = new System.Drawing.Size(171, 20); + this.lblProgressoRuaValor.TabIndex = 1; + this.lblProgressoRuaValor.Text = "65% · 124 / 275 m"; + this.lblProgressoRuaValor.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // progressRua + // + this.progressRua.BackColor = System.Drawing.Color.Transparent; + this.progressRua.BarColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); this.progressRua.CornerRadius = 5; - this.progressRua.BarColor = HmiTheme.Info; - - SetupProgressHeader( - this.progressGeralHeader, - this.lblProgressoGeralTitulo, - this.lblProgressoGeralValor, - "Progresso geral", - "38% · 842 / 2200 m"); - - this.progressGeral.Dock = System.Windows.Forms.DockStyle.Fill; - this.progressGeral.Maximum = 100; - this.progressGeral.Value = 38; - this.progressGeral.Margin = new System.Windows.Forms.Padding(1, 1, 1, 1); + this.progressRua.Dock = System.Windows.Forms.DockStyle.Fill; + this.progressRua.Location = new System.Drawing.Point(1, 51); + this.progressRua.Margin = new System.Windows.Forms.Padding(1); + this.progressRua.MinimumSize = new System.Drawing.Size(80, 10); + this.progressRua.Name = "progressRua"; + this.progressRua.Size = new System.Drawing.Size(319, 13); + this.progressRua.TabIndex = 2; + this.progressRua.TrackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(48)))), ((int)(((byte)(54))))); + this.progressRua.Value = 65; + // + // progressGeralHeader + // + this.progressGeralHeader.ColumnCount = 2; + this.progressGeralHeader.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 45F)); + this.progressGeralHeader.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 55F)); + this.progressGeralHeader.Controls.Add(this.lblProgressoGeralTitulo, 0, 0); + this.progressGeralHeader.Controls.Add(this.lblProgressoGeralValor, 1, 0); + this.progressGeralHeader.Dock = System.Windows.Forms.DockStyle.Fill; + this.progressGeralHeader.Location = new System.Drawing.Point(0, 65); + this.progressGeralHeader.Margin = new System.Windows.Forms.Padding(0); + this.progressGeralHeader.Name = "progressGeralHeader"; + this.progressGeralHeader.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.progressGeralHeader.Size = new System.Drawing.Size(321, 20); + this.progressGeralHeader.TabIndex = 3; + // + // lblProgressoGeralTitulo + // + this.lblProgressoGeralTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblProgressoGeralTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblProgressoGeralTitulo.Font = new System.Drawing.Font("Segoe UI", 6.5F); + this.lblProgressoGeralTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblProgressoGeralTitulo.Location = new System.Drawing.Point(3, 0); + this.lblProgressoGeralTitulo.Name = "lblProgressoGeralTitulo"; + this.lblProgressoGeralTitulo.Size = new System.Drawing.Size(138, 20); + this.lblProgressoGeralTitulo.TabIndex = 0; + this.lblProgressoGeralTitulo.Text = "Progresso geral"; + this.lblProgressoGeralTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // lblProgressoGeralValor + // + this.lblProgressoGeralValor.AutoEllipsis = true; + this.lblProgressoGeralValor.BackColor = System.Drawing.Color.Transparent; + this.lblProgressoGeralValor.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblProgressoGeralValor.Font = new System.Drawing.Font("Segoe UI", 6.5F, System.Drawing.FontStyle.Bold); + this.lblProgressoGeralValor.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblProgressoGeralValor.Location = new System.Drawing.Point(147, 0); + this.lblProgressoGeralValor.Name = "lblProgressoGeralValor"; + this.lblProgressoGeralValor.Size = new System.Drawing.Size(171, 20); + this.lblProgressoGeralValor.TabIndex = 1; + this.lblProgressoGeralValor.Text = "38% · 842 / 2200 m"; + this.lblProgressoGeralValor.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // progressGeral + // + this.progressGeral.BackColor = System.Drawing.Color.Transparent; + this.progressGeral.BarColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); this.progressGeral.CornerRadius = 5; - this.progressGeral.BarColor = HmiTheme.Success; - - this.trajectoryBottomLayout.Controls.Clear(); + this.progressGeral.Dock = System.Windows.Forms.DockStyle.Fill; + this.progressGeral.Location = new System.Drawing.Point(1, 86); + this.progressGeral.Margin = new System.Windows.Forms.Padding(1); + this.progressGeral.MinimumSize = new System.Drawing.Size(80, 10); + this.progressGeral.Name = "progressGeral"; + this.progressGeral.Size = new System.Drawing.Size(319, 13); + this.progressGeral.TabIndex = 4; + this.progressGeral.TrackColor = System.Drawing.Color.FromArgb(((int)(((byte)(38)))), ((int)(((byte)(48)))), ((int)(((byte)(54))))); + this.progressGeral.Value = 38; + // + // trajectoryBottomLayout + // this.trajectoryBottomLayout.ColumnCount = 2; - this.trajectoryBottomLayout.ColumnStyles.Clear(); - this.trajectoryBottomLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); - this.trajectoryBottomLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 50F)); - this.trajectoryBottomLayout.RowCount = 2; - this.trajectoryBottomLayout.RowStyles.Clear(); - this.trajectoryBottomLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 25F)); - this.trajectoryBottomLayout.RowStyles.Add(new RowStyle(SizeType.Absolute, 25F)); - SetupTrajectoryFooterCard(this.cardStatusMapa, this.lblStatusMapa, HmiTheme.Success); - SetupTrajectoryFooterCard(this.cardTempoOperacao, this.lblTempoOperacao, HmiTheme.Info); - SetupTrajectoryFooterCard(this.cardDistanciaEsq, this.lblDistanciaEsq, HmiTheme.Info); - SetupTrajectoryFooterCard(this.cardDistanciaDir, this.lblDistanciaDir, HmiTheme.Info); + this.trajectoryBottomLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.trajectoryBottomLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.trajectoryBottomLayout.Controls.Add(this.cardStatusMapa, 0, 0); this.trajectoryBottomLayout.Controls.Add(this.cardTempoOperacao, 1, 0); this.trajectoryBottomLayout.Controls.Add(this.cardDistanciaEsq, 0, 1); this.trajectoryBottomLayout.Controls.Add(this.cardDistanciaDir, 1, 1); - this.trajectoryBottomLayout.Dock = DockStyle.Fill; - this.trajectoryBottomLayout.Margin = Padding.Empty; - this.trajectoryBottomLayout.Padding = Padding.Empty; - + this.trajectoryBottomLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.trajectoryBottomLayout.Location = new System.Drawing.Point(0, 100); + this.trajectoryBottomLayout.Margin = new System.Windows.Forms.Padding(0); + this.trajectoryBottomLayout.Name = "trajectoryBottomLayout"; + this.trajectoryBottomLayout.RowCount = 2; + this.trajectoryBottomLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 29F)); + this.trajectoryBottomLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 21F)); + this.trajectoryBottomLayout.Size = new System.Drawing.Size(321, 57); + this.trajectoryBottomLayout.TabIndex = 5; + // + // cardStatusMapa + // + this.cardStatusMapa.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.cardStatusMapa.BackColor = System.Drawing.Color.Transparent; + this.cardStatusMapa.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.cardStatusMapa.Controls.Add(this.lblStatusMapa); + this.cardStatusMapa.CornerRadius = 6; + this.cardStatusMapa.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardStatusMapa.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardStatusMapa.Location = new System.Drawing.Point(1, 1); + this.cardStatusMapa.Margin = new System.Windows.Forms.Padding(1); + this.cardStatusMapa.MinimumSize = new System.Drawing.Size(30, 25); + this.cardStatusMapa.Name = "cardStatusMapa"; + this.cardStatusMapa.Padding = new System.Windows.Forms.Padding(1); + this.cardStatusMapa.Size = new System.Drawing.Size(158, 27); + this.cardStatusMapa.TabIndex = 0; + // + // lblStatusMapa + // + this.lblStatusMapa.AutoEllipsis = true; + this.lblStatusMapa.BackColor = System.Drawing.Color.Transparent; + this.lblStatusMapa.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblStatusMapa.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); + this.lblStatusMapa.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.lblStatusMapa.Location = new System.Drawing.Point(1, 1); + this.lblStatusMapa.Margin = new System.Windows.Forms.Padding(0); + this.lblStatusMapa.Name = "lblStatusMapa"; + this.lblStatusMapa.Size = new System.Drawing.Size(156, 25); + this.lblStatusMapa.TabIndex = 0; this.lblStatusMapa.Text = "Caminhando Rua"; + this.lblStatusMapa.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // cardTempoOperacao + // + this.cardTempoOperacao.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.cardTempoOperacao.BackColor = System.Drawing.Color.Transparent; + this.cardTempoOperacao.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.cardTempoOperacao.Controls.Add(this.lblTempoOperacao); + this.cardTempoOperacao.CornerRadius = 6; + this.cardTempoOperacao.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardTempoOperacao.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardTempoOperacao.Location = new System.Drawing.Point(161, 1); + this.cardTempoOperacao.Margin = new System.Windows.Forms.Padding(1); + this.cardTempoOperacao.MinimumSize = new System.Drawing.Size(30, 25); + this.cardTempoOperacao.Name = "cardTempoOperacao"; + this.cardTempoOperacao.Padding = new System.Windows.Forms.Padding(1); + this.cardTempoOperacao.Size = new System.Drawing.Size(159, 27); + this.cardTempoOperacao.TabIndex = 1; + // + // lblTempoOperacao + // + this.lblTempoOperacao.AutoEllipsis = true; + this.lblTempoOperacao.BackColor = System.Drawing.Color.Transparent; + this.lblTempoOperacao.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblTempoOperacao.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); + this.lblTempoOperacao.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.lblTempoOperacao.Location = new System.Drawing.Point(1, 1); + this.lblTempoOperacao.Margin = new System.Windows.Forms.Padding(0); + this.lblTempoOperacao.MinimumSize = new System.Drawing.Size(0, 25); + this.lblTempoOperacao.Name = "lblTempoOperacao"; + this.lblTempoOperacao.Size = new System.Drawing.Size(157, 25); + this.lblTempoOperacao.TabIndex = 0; this.lblTempoOperacao.Text = "00:17:32 / 00:42:00"; + this.lblTempoOperacao.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // cardDistanciaEsq + // + this.cardDistanciaEsq.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.cardDistanciaEsq.BackColor = System.Drawing.Color.Transparent; + this.cardDistanciaEsq.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.cardDistanciaEsq.Controls.Add(this.lblDistanciaEsq); + this.cardDistanciaEsq.CornerRadius = 6; + this.cardDistanciaEsq.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardDistanciaEsq.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardDistanciaEsq.Location = new System.Drawing.Point(1, 30); + this.cardDistanciaEsq.Margin = new System.Windows.Forms.Padding(1); + this.cardDistanciaEsq.MinimumSize = new System.Drawing.Size(30, 25); + this.cardDistanciaEsq.Name = "cardDistanciaEsq"; + this.cardDistanciaEsq.Padding = new System.Windows.Forms.Padding(1); + this.cardDistanciaEsq.Size = new System.Drawing.Size(158, 26); + this.cardDistanciaEsq.TabIndex = 2; + // + // lblDistanciaEsq + // + this.lblDistanciaEsq.AutoEllipsis = true; + this.lblDistanciaEsq.BackColor = System.Drawing.Color.Transparent; + this.lblDistanciaEsq.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblDistanciaEsq.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); + this.lblDistanciaEsq.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.lblDistanciaEsq.Location = new System.Drawing.Point(1, 1); + this.lblDistanciaEsq.Margin = new System.Windows.Forms.Padding(0); + this.lblDistanciaEsq.Name = "lblDistanciaEsq"; + this.lblDistanciaEsq.Size = new System.Drawing.Size(156, 24); + this.lblDistanciaEsq.TabIndex = 0; this.lblDistanciaEsq.Text = "Esq. 0,12 m"; + this.lblDistanciaEsq.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // cardDistanciaDir + // + this.cardDistanciaDir.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.cardDistanciaDir.BackColor = System.Drawing.Color.Transparent; + this.cardDistanciaDir.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.cardDistanciaDir.Controls.Add(this.lblDistanciaDir); + this.cardDistanciaDir.CornerRadius = 6; + this.cardDistanciaDir.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardDistanciaDir.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardDistanciaDir.Location = new System.Drawing.Point(161, 30); + this.cardDistanciaDir.Margin = new System.Windows.Forms.Padding(1); + this.cardDistanciaDir.MinimumSize = new System.Drawing.Size(30, 25); + this.cardDistanciaDir.Name = "cardDistanciaDir"; + this.cardDistanciaDir.Padding = new System.Windows.Forms.Padding(1); + this.cardDistanciaDir.Size = new System.Drawing.Size(159, 26); + this.cardDistanciaDir.TabIndex = 3; + // + // lblDistanciaDir + // + this.lblDistanciaDir.AutoEllipsis = true; + this.lblDistanciaDir.BackColor = System.Drawing.Color.Transparent; + this.lblDistanciaDir.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblDistanciaDir.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); + this.lblDistanciaDir.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.lblDistanciaDir.Location = new System.Drawing.Point(1, 1); + this.lblDistanciaDir.Margin = new System.Windows.Forms.Padding(0); + this.lblDistanciaDir.Name = "lblDistanciaDir"; + this.lblDistanciaDir.Size = new System.Drawing.Size(157, 24); + this.lblDistanciaDir.TabIndex = 0; this.lblDistanciaDir.Text = "Dir. 0,15 m"; - - ConfigurePanel(this.pnlAutonomia, this.autonomyLayout); + this.lblDistanciaDir.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // pnlAutonomia + // + this.pnlAutonomia.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlAutonomia.BackColor = System.Drawing.Color.Transparent; + this.pnlAutonomia.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlAutonomia.Controls.Add(this.autonomyLayout); + this.pnlAutonomia.CornerRadius = 9; + this.pnlAutonomia.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlAutonomia.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlAutonomia.Location = new System.Drawing.Point(0, 313); this.pnlAutonomia.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); + this.pnlAutonomia.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlAutonomia.Name = "pnlAutonomia"; + this.pnlAutonomia.Padding = new System.Windows.Forms.Padding(7); + this.pnlAutonomia.Size = new System.Drawing.Size(436, 122); + this.pnlAutonomia.TabIndex = 1; + // + // autonomyLayout + // this.autonomyLayout.ColumnCount = 2; this.autonomyLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.autonomyLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.autonomyLayout.Controls.Add(this.lblAutonomiaTitulo, 0, 0); - this.autonomyLayout.SetColumnSpan(this.lblAutonomiaTitulo, 2); this.autonomyLayout.Controls.Add(this.autonomiaBateria, 0, 1); this.autonomyLayout.Controls.Add(this.autonomiaHerbicida, 1, 1); this.autonomyLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.autonomyLayout.Location = new System.Drawing.Point(7, 7); + this.autonomyLayout.Name = "autonomyLayout"; this.autonomyLayout.RowCount = 2; this.autonomyLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 23F)); this.autonomyLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - - SetupTitle(this.lblAutonomiaTitulo, "AUTONOMIA DO CORREDOR"); - - this.autonomiaBateria.Dock = System.Windows.Forms.DockStyle.Fill; - this.autonomiaBateria.Titulo = "BATERIA"; + this.autonomyLayout.Size = new System.Drawing.Size(422, 108); + this.autonomyLayout.TabIndex = 0; + // + // lblAutonomiaTitulo + // + this.lblAutonomiaTitulo.AutoEllipsis = true; + this.lblAutonomiaTitulo.BackColor = System.Drawing.Color.Transparent; + this.autonomyLayout.SetColumnSpan(this.lblAutonomiaTitulo, 2); + this.lblAutonomiaTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblAutonomiaTitulo.Font = new System.Drawing.Font("Segoe UI", 8.6F, System.Drawing.FontStyle.Bold); + this.lblAutonomiaTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblAutonomiaTitulo.Location = new System.Drawing.Point(3, 0); + this.lblAutonomiaTitulo.Name = "lblAutonomiaTitulo"; + this.lblAutonomiaTitulo.Size = new System.Drawing.Size(416, 23); + this.lblAutonomiaTitulo.TabIndex = 0; + this.lblAutonomiaTitulo.Text = "AUTONOMIA DO CORREDOR"; + this.lblAutonomiaTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // autonomiaBateria + // + this.autonomiaBateria.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.autonomiaBateria.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); this.autonomiaBateria.Distancia = "620 m"; - this.autonomiaBateria.Tempo = "00:21:00"; + this.autonomiaBateria.Dock = System.Windows.Forms.DockStyle.Fill; + this.autonomiaBateria.Location = new System.Drawing.Point(2, 25); this.autonomiaBateria.Margin = new System.Windows.Forms.Padding(2); - - this.autonomiaHerbicida.Dock = System.Windows.Forms.DockStyle.Fill; - this.autonomiaHerbicida.Titulo = "HERBICIDA"; + this.autonomiaBateria.MinimumSize = new System.Drawing.Size(140, 68); + this.autonomiaBateria.Name = "autonomiaBateria"; + this.autonomiaBateria.Padding = new System.Windows.Forms.Padding(8); + this.autonomiaBateria.Size = new System.Drawing.Size(207, 81); + this.autonomiaBateria.TabIndex = 1; + this.autonomiaBateria.Tempo = "00:21:00"; + this.autonomiaBateria.Titulo = "BATERIA"; + // + // autonomiaHerbicida + // + this.autonomiaHerbicida.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.autonomiaHerbicida.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); this.autonomiaHerbicida.Distancia = "480 m"; - this.autonomiaHerbicida.Tempo = "00:16:30"; + this.autonomiaHerbicida.Dock = System.Windows.Forms.DockStyle.Fill; + this.autonomiaHerbicida.Location = new System.Drawing.Point(213, 25); this.autonomiaHerbicida.Margin = new System.Windows.Forms.Padding(2); - - ConfigurePanel(this.pnlAlertaAutonomia, this.alertLayout); - this.pnlAlertaAutonomia.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Danger; - this.pnlAlertaAutonomia.Margin = System.Windows.Forms.Padding.Empty; - - this.alertLayout.ColumnCount = 2; - this.alertLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.alertLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.alertLayout.Controls.Add(this.lblAlertaTitulo, 0, 0); - this.alertLayout.SetColumnSpan(this.lblAlertaTitulo, 2); - this.alertLayout.Controls.Add(this.lblAlertaTexto, 0, 1); - this.alertLayout.SetColumnSpan(this.lblAlertaTexto, 2); - this.alertLayout.Controls.Add(this.btnAtualizarAutonomia, 0, 2); - this.alertLayout.Controls.Add(this.btnLiberarSupervisao, 1, 2); - this.alertLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.alertLayout.RowCount = 3; - this.alertLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 31F)); - this.alertLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.alertLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 43F)); - - this.lblAlertaTitulo.Dock = System.Windows.Forms.DockStyle.Fill; - this.lblAlertaTitulo.BackColor = System.Drawing.Color.Transparent; - this.lblAlertaTitulo.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Danger; - this.lblAlertaTitulo.Font = new System.Drawing.Font("Segoe UI", 9.5F, System.Drawing.FontStyle.Bold); - this.lblAlertaTitulo.Text = "Autonomia insuficiente para concluir o corredor"; - this.lblAlertaTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.lblAlertaTitulo.AutoEllipsis = true; - - this.lblAlertaTexto.Dock = System.Windows.Forms.DockStyle.Fill; - this.lblAlertaTexto.BackColor = System.Drawing.Color.Transparent; - this.lblAlertaTexto.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; - this.lblAlertaTexto.Font = new System.Drawing.Font("Segoe UI", 7F); - this.lblAlertaTexto.Text = - "A autonomia atual não é suficiente para finalizar o corredor com segurança.\n" + - "Atualize os recursos ou libere a supervisão para continuar."; - this.lblAlertaTexto.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - - SetupAction(this.btnAtualizarAutonomia, "ATUALIZAR", "↻", AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted); - SetupAction(this.btnLiberarSupervisao, "LIBERAR", "□", AgroBase.Forms.IHM.Controls.HmiTheme.Danger); - - - ConfigurePanel(this.pnlStatusAutonomia, this.statusAutonomiaLayout); - this.pnlStatusAutonomia.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Success; - this.pnlStatusAutonomia.Margin = System.Windows.Forms.Padding.Empty; - + this.autonomiaHerbicida.MinimumSize = new System.Drawing.Size(140, 68); + this.autonomiaHerbicida.Name = "autonomiaHerbicida"; + this.autonomiaHerbicida.Padding = new System.Windows.Forms.Padding(8); + this.autonomiaHerbicida.Size = new System.Drawing.Size(207, 81); + this.autonomiaHerbicida.TabIndex = 2; + this.autonomiaHerbicida.Tempo = "00:16:30"; + this.autonomiaHerbicida.Titulo = "HERBICIDA"; + // + // pnlAutonomiaDireitaHost + // + this.pnlAutonomiaDireitaHost.BackColor = System.Drawing.Color.Transparent; + this.pnlAutonomiaDireitaHost.Controls.Add(this.pnlStatusAutonomia); + this.pnlAutonomiaDireitaHost.Controls.Add(this.pnlAlertaAutonomia); + this.pnlAutonomiaDireitaHost.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlAutonomiaDireitaHost.Location = new System.Drawing.Point(442, 313); + this.pnlAutonomiaDireitaHost.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); + this.pnlAutonomiaDireitaHost.Name = "pnlAutonomiaDireitaHost"; + this.pnlAutonomiaDireitaHost.Size = new System.Drawing.Size(342, 122); + this.pnlAutonomiaDireitaHost.TabIndex = 2; + // + // pnlStatusAutonomia + // + this.pnlStatusAutonomia.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlStatusAutonomia.BackColor = System.Drawing.Color.Transparent; + this.pnlStatusAutonomia.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlStatusAutonomia.Controls.Add(this.statusAutonomiaLayout); + this.pnlStatusAutonomia.CornerRadius = 9; + this.pnlStatusAutonomia.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlStatusAutonomia.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlStatusAutonomia.Location = new System.Drawing.Point(0, 0); + this.pnlStatusAutonomia.Margin = new System.Windows.Forms.Padding(0); + this.pnlStatusAutonomia.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlStatusAutonomia.Name = "pnlStatusAutonomia"; + this.pnlStatusAutonomia.Padding = new System.Windows.Forms.Padding(7); + this.pnlStatusAutonomia.Size = new System.Drawing.Size(342, 122); + this.pnlStatusAutonomia.TabIndex = 0; + // + // statusAutonomiaLayout + // this.statusAutonomiaLayout.ColumnCount = 1; this.statusAutonomiaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.statusAutonomiaLayout.Controls.Add(this.lblStatusAutonomiaTitulo, 0, 0); + this.statusAutonomiaLayout.Controls.Add(this.lblStatusBateria, 0, 1); + this.statusAutonomiaLayout.Controls.Add(this.lblStatusHerbicida, 0, 2); + this.statusAutonomiaLayout.Controls.Add(this.lblStatusCorredor, 0, 3); + this.statusAutonomiaLayout.Controls.Add(this.lblStatusAvaliacao, 0, 4); this.statusAutonomiaLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.statusAutonomiaLayout.Margin = System.Windows.Forms.Padding.Empty; + this.statusAutonomiaLayout.Location = new System.Drawing.Point(7, 7); + this.statusAutonomiaLayout.Margin = new System.Windows.Forms.Padding(0); + this.statusAutonomiaLayout.Name = "statusAutonomiaLayout"; this.statusAutonomiaLayout.Padding = new System.Windows.Forms.Padding(6); this.statusAutonomiaLayout.RowCount = 5; this.statusAutonomiaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); @@ -436,206 +1078,237 @@ namespace AgroBase.Forms.IHM.Operacao this.statusAutonomiaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.statusAutonomiaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.statusAutonomiaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - - SetupStatusAutonomiaLabel(this.lblStatusAutonomiaTitulo, "STATUS DA AUTONOMIA", HmiTheme.Text, true); - SetupStatusAutonomiaLabel(this.lblStatusBateria, "Bateria: suficiente para concluir", HmiTheme.Success, false); - SetupStatusAutonomiaLabel(this.lblStatusHerbicida, "Herbicida: suficiente para concluir", HmiTheme.Success, false); - SetupStatusAutonomiaLabel(this.lblStatusCorredor, "Corredor liberado", HmiTheme.Success, true); - SetupStatusAutonomiaLabel(this.lblStatusAvaliacao, "Nova avaliação na próxima troca de rua", HmiTheme.TextMuted, false); - - this.statusAutonomiaLayout.Controls.Add(this.lblStatusAutonomiaTitulo, 0, 0); - this.statusAutonomiaLayout.Controls.Add(this.lblStatusBateria, 0, 1); - this.statusAutonomiaLayout.Controls.Add(this.lblStatusHerbicida, 0, 2); - this.statusAutonomiaLayout.Controls.Add(this.lblStatusCorredor, 0, 3); - this.statusAutonomiaLayout.Controls.Add(this.lblStatusAvaliacao, 0, 4); - - + this.statusAutonomiaLayout.Size = new System.Drawing.Size(328, 108); + this.statusAutonomiaLayout.TabIndex = 0; + // + // lblStatusAutonomiaTitulo + // + this.lblStatusAutonomiaTitulo.AutoEllipsis = true; + this.lblStatusAutonomiaTitulo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.lblStatusAutonomiaTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblStatusAutonomiaTitulo.Font = new System.Drawing.Font("Segoe UI", 6.8F, System.Drawing.FontStyle.Bold); + this.lblStatusAutonomiaTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblStatusAutonomiaTitulo.Location = new System.Drawing.Point(6, 6); + this.lblStatusAutonomiaTitulo.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.lblStatusAutonomiaTitulo.Name = "lblStatusAutonomiaTitulo"; + this.lblStatusAutonomiaTitulo.Size = new System.Drawing.Size(316, 17); + this.lblStatusAutonomiaTitulo.TabIndex = 0; + this.lblStatusAutonomiaTitulo.Text = "STATUS DA AUTONOMIA"; + this.lblStatusAutonomiaTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // lblStatusBateria + // + this.lblStatusBateria.AutoEllipsis = true; + this.lblStatusBateria.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.lblStatusBateria.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblStatusBateria.Font = new System.Drawing.Font("Segoe UI", 6.8F); + this.lblStatusBateria.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.lblStatusBateria.Location = new System.Drawing.Point(6, 26); + this.lblStatusBateria.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.lblStatusBateria.Name = "lblStatusBateria"; + this.lblStatusBateria.Size = new System.Drawing.Size(316, 17); + this.lblStatusBateria.TabIndex = 1; + this.lblStatusBateria.Text = "Bateria: suficiente para concluir"; + this.lblStatusBateria.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // lblStatusHerbicida + // + this.lblStatusHerbicida.AutoEllipsis = true; + this.lblStatusHerbicida.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.lblStatusHerbicida.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblStatusHerbicida.Font = new System.Drawing.Font("Segoe UI", 6.8F); + this.lblStatusHerbicida.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.lblStatusHerbicida.Location = new System.Drawing.Point(6, 46); + this.lblStatusHerbicida.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.lblStatusHerbicida.Name = "lblStatusHerbicida"; + this.lblStatusHerbicida.Size = new System.Drawing.Size(316, 17); + this.lblStatusHerbicida.TabIndex = 2; + this.lblStatusHerbicida.Text = "Herbicida: suficiente para concluir"; + this.lblStatusHerbicida.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // lblStatusCorredor + // + this.lblStatusCorredor.AutoEllipsis = true; + this.lblStatusCorredor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.lblStatusCorredor.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblStatusCorredor.Font = new System.Drawing.Font("Segoe UI", 6.8F, System.Drawing.FontStyle.Bold); + this.lblStatusCorredor.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.lblStatusCorredor.Location = new System.Drawing.Point(6, 66); + this.lblStatusCorredor.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.lblStatusCorredor.Name = "lblStatusCorredor"; + this.lblStatusCorredor.Size = new System.Drawing.Size(316, 17); + this.lblStatusCorredor.TabIndex = 3; + this.lblStatusCorredor.Text = "Corredor liberado"; + this.lblStatusCorredor.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // lblStatusAvaliacao + // + this.lblStatusAvaliacao.AutoEllipsis = true; + this.lblStatusAvaliacao.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.lblStatusAvaliacao.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblStatusAvaliacao.Font = new System.Drawing.Font("Segoe UI", 6.8F); + this.lblStatusAvaliacao.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblStatusAvaliacao.Location = new System.Drawing.Point(6, 86); + this.lblStatusAvaliacao.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.lblStatusAvaliacao.Name = "lblStatusAvaliacao"; + this.lblStatusAvaliacao.Size = new System.Drawing.Size(316, 13); + this.lblStatusAvaliacao.TabIndex = 4; + this.lblStatusAvaliacao.Text = "Nova avaliação na próxima troca de rua"; + this.lblStatusAvaliacao.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // pnlAlertaAutonomia + // + this.pnlAlertaAutonomia.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlAlertaAutonomia.BackColor = System.Drawing.Color.Transparent; + this.pnlAlertaAutonomia.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(83)))), ((int)(((byte)(80))))); + this.pnlAlertaAutonomia.Controls.Add(this.alertLayout); + this.pnlAlertaAutonomia.CornerRadius = 9; + this.pnlAlertaAutonomia.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlAlertaAutonomia.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlAlertaAutonomia.Location = new System.Drawing.Point(0, 0); + this.pnlAlertaAutonomia.Margin = new System.Windows.Forms.Padding(0); + this.pnlAlertaAutonomia.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlAlertaAutonomia.Name = "pnlAlertaAutonomia"; + this.pnlAlertaAutonomia.Padding = new System.Windows.Forms.Padding(7); + this.pnlAlertaAutonomia.Size = new System.Drawing.Size(342, 122); + this.pnlAlertaAutonomia.TabIndex = 1; + // + // alertLayout + // + this.alertLayout.ColumnCount = 2; + this.alertLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.alertLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.alertLayout.Controls.Add(this.lblAlertaTitulo, 0, 0); + this.alertLayout.Controls.Add(this.lblAlertaTexto, 0, 1); + this.alertLayout.Controls.Add(this.btnAtualizarAutonomia, 0, 2); + this.alertLayout.Controls.Add(this.btnLiberarSupervisao, 1, 2); + this.alertLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.alertLayout.Location = new System.Drawing.Point(7, 7); + this.alertLayout.Name = "alertLayout"; + this.alertLayout.RowCount = 3; + this.alertLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 31F)); + this.alertLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.alertLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 43F)); + this.alertLayout.Size = new System.Drawing.Size(328, 108); + this.alertLayout.TabIndex = 0; + // + // lblAlertaTitulo + // + this.lblAlertaTitulo.AutoEllipsis = true; + this.lblAlertaTitulo.BackColor = System.Drawing.Color.Transparent; + this.alertLayout.SetColumnSpan(this.lblAlertaTitulo, 2); + this.lblAlertaTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblAlertaTitulo.Font = new System.Drawing.Font("Segoe UI", 9.5F, System.Drawing.FontStyle.Bold); + this.lblAlertaTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(83)))), ((int)(((byte)(80))))); + this.lblAlertaTitulo.Location = new System.Drawing.Point(3, 0); + this.lblAlertaTitulo.Name = "lblAlertaTitulo"; + this.lblAlertaTitulo.Size = new System.Drawing.Size(322, 31); + this.lblAlertaTitulo.TabIndex = 0; + this.lblAlertaTitulo.Text = "Autonomia insuficiente para concluir o corredor"; + this.lblAlertaTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // lblAlertaTexto + // + this.lblAlertaTexto.BackColor = System.Drawing.Color.Transparent; + this.alertLayout.SetColumnSpan(this.lblAlertaTexto, 2); + this.lblAlertaTexto.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblAlertaTexto.Font = new System.Drawing.Font("Segoe UI", 7F); + this.lblAlertaTexto.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblAlertaTexto.Location = new System.Drawing.Point(3, 31); + this.lblAlertaTexto.Name = "lblAlertaTexto"; + this.lblAlertaTexto.Size = new System.Drawing.Size(322, 34); + this.lblAlertaTexto.TabIndex = 1; + this.lblAlertaTexto.Text = "A autonomia atual não é suficiente para finalizar o corredor com segurança.\nAtual" + + "ize os recursos ou libere a supervisão para continuar."; + this.lblAlertaTexto.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // btnAtualizarAutonomia + // + this.btnAtualizarAutonomia.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.btnAtualizarAutonomia.BackColor = System.Drawing.Color.Transparent; + this.btnAtualizarAutonomia.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.btnAtualizarAutonomia.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnAtualizarAutonomia.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnAtualizarAutonomia.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnAtualizarAutonomia.IconText = "↻"; + this.btnAtualizarAutonomia.Location = new System.Drawing.Point(0, 67); + this.btnAtualizarAutonomia.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); + this.btnAtualizarAutonomia.MinimumSize = new System.Drawing.Size(60, 34); + this.btnAtualizarAutonomia.Name = "btnAtualizarAutonomia"; + this.btnAtualizarAutonomia.Size = new System.Drawing.Size(164, 39); + this.btnAtualizarAutonomia.TabIndex = 2; + this.btnAtualizarAutonomia.Text = "ATUALIZAR"; + // + // btnLiberarSupervisao + // + this.btnLiberarSupervisao.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(83)))), ((int)(((byte)(80))))); + this.btnLiberarSupervisao.BackColor = System.Drawing.Color.Transparent; + this.btnLiberarSupervisao.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(83)))), ((int)(((byte)(80))))); + this.btnLiberarSupervisao.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnLiberarSupervisao.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnLiberarSupervisao.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnLiberarSupervisao.IconText = "□"; + this.btnLiberarSupervisao.Location = new System.Drawing.Point(164, 67); + this.btnLiberarSupervisao.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); + this.btnLiberarSupervisao.MinimumSize = new System.Drawing.Size(60, 34); + this.btnLiberarSupervisao.Name = "btnLiberarSupervisao"; + this.btnLiberarSupervisao.Size = new System.Drawing.Size(164, 39); + this.btnLiberarSupervisao.TabIndex = 3; + this.btnLiberarSupervisao.Text = "LIBERAR"; + // + // lblGnssTitulo + // + this.lblGnssTitulo.Location = new System.Drawing.Point(0, 0); + this.lblGnssTitulo.Name = "lblGnssTitulo"; + this.lblGnssTitulo.Size = new System.Drawing.Size(100, 23); + this.lblGnssTitulo.TabIndex = 0; + // + // lblTrajetoriaSecaoTitulo + // + this.lblTrajetoriaSecaoTitulo.Location = new System.Drawing.Point(0, 0); + this.lblTrajetoriaSecaoTitulo.Name = "lblTrajetoriaSecaoTitulo"; + this.lblTrajetoriaSecaoTitulo.Size = new System.Drawing.Size(100, 23); + this.lblTrajetoriaSecaoTitulo.TabIndex = 0; + // + // ucOperacaoNavegacao + // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.Background; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(17)))), ((int)(((byte)(20))))); this.Controls.Add(this.rootLayout); this.DoubleBuffered = true; this.Name = "ucOperacaoNavegacao"; this.Size = new System.Drawing.Size(784, 435); + this.rootLayout.ResumeLayout(false); + this.topLayout.ResumeLayout(false); + this.pnlMapa.ResumeLayout(false); + this.mapLayout.ResumeLayout(false); + this.mapHeaderLayout.ResumeLayout(false); + this.pnlMapaVisual.ResumeLayout(false); + this.rightTopLayout.ResumeLayout(false); + this.pnlOrientacao.ResumeLayout(false); + this.orientationLayout.ResumeLayout(false); + this.orientationValuesLayout.ResumeLayout(false); + this.pnlGnss.ResumeLayout(false); + this.gnssLayout.ResumeLayout(false); + this.pnlTrajetoria.ResumeLayout(false); + this.trajectoryLayout.ResumeLayout(false); + this.trajectoryTopCards.ResumeLayout(false); + this.progressRuaHeader.ResumeLayout(false); + this.progressGeralHeader.ResumeLayout(false); + this.trajectoryBottomLayout.ResumeLayout(false); + this.cardStatusMapa.ResumeLayout(false); + this.cardTempoOperacao.ResumeLayout(false); + this.cardDistanciaEsq.ResumeLayout(false); + this.cardDistanciaDir.ResumeLayout(false); + this.pnlAutonomia.ResumeLayout(false); + this.autonomyLayout.ResumeLayout(false); + this.pnlAutonomiaDireitaHost.ResumeLayout(false); + this.pnlStatusAutonomia.ResumeLayout(false); + this.statusAutonomiaLayout.ResumeLayout(false); + this.pnlAlertaAutonomia.ResumeLayout(false); + this.alertLayout.ResumeLayout(false); this.ResumeLayout(false); - } - private static void ConfigurePanel(AgroBase.Forms.IHM.Controls.HmiRoundedPanel panel, System.Windows.Forms.Control child) - { - panel.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; - panel.Controls.Add(child); - panel.CornerRadius = 9; - panel.Dock = System.Windows.Forms.DockStyle.Fill; - panel.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; - panel.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); - panel.Padding = new System.Windows.Forms.Padding(7); - } - - private static void SetupTitle(System.Windows.Forms.Label label, string text) - { - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.BackColor = System.Drawing.Color.Transparent; - label.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; - label.Font = new System.Drawing.Font("Segoe UI", 8.6F, System.Drawing.FontStyle.Bold); - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - label.AutoEllipsis = true; - } - - private static void SetupMapButton(System.Windows.Forms.Button button, string text) - { - button.Dock = System.Windows.Forms.DockStyle.Fill; - button.Text = text; - button.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - button.FlatAppearance.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; - button.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.SurfaceRaised; - button.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; - button.Font = new System.Drawing.Font("Segoe UI", 7F, System.Drawing.FontStyle.Bold); - button.Margin = new System.Windows.Forms.Padding(2); - } - - private static void SetupHeadingTitle(System.Windows.Forms.Label label, string text, System.Drawing.Color color) - { - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.BackColor = System.Drawing.Color.Transparent; - label.ForeColor = color; - label.Font = new System.Drawing.Font("Segoe UI", 6.8F, System.Drawing.FontStyle.Bold); - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.BottomLeft; - label.Padding = new Padding(2, 0, 0, 0); - label.AutoEllipsis = true; - } - - private static void SetupHeadingValue(System.Windows.Forms.Label label, string text, System.Drawing.Color color) - { - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.BackColor = System.Drawing.Color.Transparent; - label.ForeColor = color; - label.Font = new System.Drawing.Font("Segoe UI", 12.5F, System.Drawing.FontStyle.Bold); - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.TopLeft; - label.Padding = new Padding(2, 0, 0, 0); - } - - private static void SetupMetric(AgroBase.Forms.IHM.Controls.Operacao.HmiNavigationMetric metric, string title, string value, int largura) - { - metric.Dock = System.Windows.Forms.DockStyle.Fill; - metric.Titulo = title; - metric.Valor = value; - metric.LarguraValor = largura; - metric.CorValor = HmiTheme.Success; - } - - private static void SetupInfoBox(Label label, string text, Color color) - { - label.Dock = DockStyle.Fill; - label.BackColor = HmiTheme.SurfaceRaised; - label.ForeColor = color; - label.Font = new Font("Segoe UI", 6F, FontStyle.Bold); - label.Text = text; - label.TextAlign = ContentAlignment.MiddleCenter; - label.AutoEllipsis = true; - label.AutoSize = false; - label.Margin = new Padding(1); - label.Padding = Padding.Empty; - } - - private static void SetupTrajectoryFooterLabel(Label label, string text, Color color) - { - label.Dock = DockStyle.Fill; - label.AutoSize = false; - label.AutoEllipsis = true; - - label.BackColor = HmiTheme.SurfaceRaised; - label.ForeColor = color; - - label.Font = new Font("Segoe UI", 5.7F, FontStyle.Bold); - - label.Text = text; - label.TextAlign = ContentAlignment.MiddleCenter; - - label.Margin = Padding.Empty; - label.Padding = Padding.Empty; - } - - private static void SetupProgressHeader(System.Windows.Forms.TableLayoutPanel layout, System.Windows.Forms.Label title, System.Windows.Forms.Label value, string titleText, string valueText) - { - layout.ColumnCount = 2; - layout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 45F)); - layout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 55F)); - layout.Controls.Add(title, 0, 0); - layout.Controls.Add(value, 1, 0); - layout.Dock = System.Windows.Forms.DockStyle.Fill; - layout.Margin = System.Windows.Forms.Padding.Empty; - - title.Dock = System.Windows.Forms.DockStyle.Fill; - title.BackColor = System.Drawing.Color.Transparent; - title.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; - title.Font = new System.Drawing.Font("Segoe UI", 6.5F); - title.Text = titleText; - title.TextAlign = System.Drawing.ContentAlignment.BottomLeft; - - value.Dock = System.Windows.Forms.DockStyle.Fill; - value.BackColor = System.Drawing.Color.Transparent; - value.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; - value.Font = new System.Drawing.Font("Segoe UI", 6.5F, System.Drawing.FontStyle.Bold); - value.Text = valueText; - value.TextAlign = System.Drawing.ContentAlignment.BottomRight; - value.AutoEllipsis = true; - } - - private static void SetupAction(AgroBase.Forms.IHM.Controls.HmiSidebarButton button, string text, string icon, System.Drawing.Color accent) - { - button.Dock = System.Windows.Forms.DockStyle.Fill; - button.Text = text; - button.IconText = icon; - button.AccentColor = accent; - button.BorderColor = accent; - button.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.SurfaceRaised; - button.Margin = new System.Windows.Forms.Padding(3); - button.MinimumSize = System.Drawing.Size.Empty; - button.MaximumSize = System.Drawing.Size.Empty; - } - - - private static void SetupStatusAutonomiaLabel(Label label, string text, Color color, bool bold) - { - label.Dock = DockStyle.Fill; - label.AutoSize = false; - label.AutoEllipsis = true; - label.BackColor = HmiTheme.SurfaceRaised; - label.ForeColor = color; - - label.Font = new Font("Segoe UI", 6.8F, bold ? FontStyle.Bold : FontStyle.Regular); - - label.Text = text; - label.TextAlign = ContentAlignment.MiddleCenter; - label.Margin = new Padding(0, 0, 0, 3); - } - - private static void SetupTrajectoryFooterCard(HmiRoundedPanel card, Label label, Color accent) - { - card.Dock = DockStyle.Fill; - card.Margin = new Padding(1); - card.Padding = new Padding(1); - - card.FillColor = HmiTheme.SurfaceRaised; - card.BorderColor = HmiTheme.Border; - card.CornerRadius = 6; - - label.Dock = DockStyle.Fill; - label.AutoSize = false; - label.AutoEllipsis = true; - - label.BackColor = Color.Transparent; - label.ForeColor = accent; - - label.Font = new Font("Segoe UI", 5.8F, FontStyle.Bold); - - label.TextAlign = ContentAlignment.MiddleCenter; - label.Margin = Padding.Empty; - label.Padding = Padding.Empty; - - card.Controls.Add(label); } #endregion diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoNavegacao.resx b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoNavegacao.resx new file mode 100644 index 000000000..1af7de150 --- /dev/null +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoNavegacao.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/Operacao/ucOperacaoParametros.Designer.cs b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoParametros.Designer.cs index 9bd7f5d7c..d3689e5b5 100644 --- a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoParametros.Designer.cs +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoParametros.Designer.cs @@ -1,4 +1,7 @@ -namespace AgroBase.Forms.IHM.Operacao +using static System.Net.Mime.MediaTypeNames; +using System.Drawing; + +namespace AgroBase.Forms.IHM.Operacao { partial class ucOperacaoParametros { @@ -22,29 +25,22 @@ this.btnAbaDirecional = new System.Windows.Forms.Button(); this.btnAbaAtuador = new System.Windows.Forms.Button(); this.btnAbaMapa = new System.Windows.Forms.Button(); - this.pnlDescricaoAba = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.lblDescricaoAba = new System.Windows.Forms.Label(); - this.pnlConteudo = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); - this.footerPanel = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.footerLayout = new System.Windows.Forms.TableLayoutPanel(); - + this.campoModoLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblModoOperacao = new System.Windows.Forms.Label(); this.cmbModoOperacao = new System.Windows.Forms.ComboBox(); - - this.campoModoLayout = new System.Windows.Forms.TableLayoutPanel(); this.campoDescricaoLayout = new System.Windows.Forms.TableLayoutPanel(); - this.campoRegistroLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblDescricaoOperacao = new System.Windows.Forms.Label(); this.txtDescricaoOperacao = new System.Windows.Forms.TextBox(); + this.campoRegistroLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblRegistroDados = new System.Windows.Forms.Label(); this.chkRegistrarPosProcessamento = new System.Windows.Forms.CheckBox(); - this.btnRedefinir = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); this.btnSalvar = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); - this.rootLayout.SuspendLayout(); this.tabsLayout.SuspendLayout(); this.pnlDescricaoAba.SuspendLayout(); @@ -54,9 +50,10 @@ this.campoDescricaoLayout.SuspendLayout(); this.campoRegistroLayout.SuspendLayout(); this.SuspendLayout(); - + // // rootLayout - this.rootLayout.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.Background; + // + this.rootLayout.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(17)))), ((int)(((byte)(20))))); this.rootLayout.ColumnCount = 1; this.rootLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.rootLayout.Controls.Add(this.tabsLayout, 0, 0); @@ -64,15 +61,19 @@ this.rootLayout.Controls.Add(this.pnlConteudo, 0, 2); this.rootLayout.Controls.Add(this.footerPanel, 0, 3); this.rootLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.rootLayout.Margin = System.Windows.Forms.Padding.Empty; - this.rootLayout.Padding = System.Windows.Forms.Padding.Empty; + this.rootLayout.Location = new System.Drawing.Point(0, 0); + this.rootLayout.Margin = new System.Windows.Forms.Padding(0); + this.rootLayout.Name = "rootLayout"; this.rootLayout.RowCount = 4; this.rootLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 45F)); this.rootLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 28F)); this.rootLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.rootLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 62F)); - + this.rootLayout.Size = new System.Drawing.Size(784, 435); + this.rootLayout.TabIndex = 0; + // // tabsLayout + // this.tabsLayout.BackColor = System.Drawing.Color.Transparent; this.tabsLayout.ColumnCount = 4; this.tabsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); @@ -84,53 +85,149 @@ this.tabsLayout.Controls.Add(this.btnAbaAtuador, 2, 0); this.tabsLayout.Controls.Add(this.btnAbaMapa, 3, 0); this.tabsLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.tabsLayout.Location = new System.Drawing.Point(0, 0); this.tabsLayout.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); - this.tabsLayout.Padding = System.Windows.Forms.Padding.Empty; + this.tabsLayout.Name = "tabsLayout"; this.tabsLayout.RowCount = 1; this.tabsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - - SetupTabButton(this.btnAbaMovimento, "↔ Movimento"); - SetupTabButton(this.btnAbaDirecional, "◉ Direcional"); - SetupTabButton(this.btnAbaAtuador, "♨ Atuador"); - SetupTabButton(this.btnAbaMapa, "⌖ Mapa e Navegação"); - + this.tabsLayout.Size = new System.Drawing.Size(784, 42); + this.tabsLayout.TabIndex = 0; + // + // btnAbaMovimento + // + this.btnAbaMovimento.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.btnAbaMovimento.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnAbaMovimento.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnAbaMovimento.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.btnAbaMovimento.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnAbaMovimento.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); + this.btnAbaMovimento.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.btnAbaMovimento.Location = new System.Drawing.Point(2, 0); + this.btnAbaMovimento.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.btnAbaMovimento.Name = "btnAbaMovimento"; + this.btnAbaMovimento.Size = new System.Drawing.Size(192, 42); + this.btnAbaMovimento.TabIndex = 0; + this.btnAbaMovimento.Text = "↔ Movimento"; + this.btnAbaMovimento.UseVisualStyleBackColor = false; + // + // btnAbaDirecional + // + this.btnAbaDirecional.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.btnAbaDirecional.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnAbaDirecional.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnAbaDirecional.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.btnAbaDirecional.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnAbaDirecional.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); + this.btnAbaDirecional.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.btnAbaDirecional.Location = new System.Drawing.Point(198, 0); + this.btnAbaDirecional.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.btnAbaDirecional.Name = "btnAbaDirecional"; + this.btnAbaDirecional.Size = new System.Drawing.Size(192, 42); + this.btnAbaDirecional.TabIndex = 1; + this.btnAbaDirecional.Text = "◉ Direcional"; + this.btnAbaDirecional.UseVisualStyleBackColor = false; + // + // btnAbaAtuador + // + this.btnAbaAtuador.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.btnAbaAtuador.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnAbaAtuador.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnAbaAtuador.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.btnAbaAtuador.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnAbaAtuador.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); + this.btnAbaAtuador.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.btnAbaAtuador.Location = new System.Drawing.Point(394, 0); + this.btnAbaAtuador.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.btnAbaAtuador.Name = "btnAbaAtuador"; + this.btnAbaAtuador.Size = new System.Drawing.Size(192, 42); + this.btnAbaAtuador.TabIndex = 2; + this.btnAbaAtuador.Text = "♨ Atuador"; + this.btnAbaAtuador.UseVisualStyleBackColor = false; + // + // btnAbaMapa + // + this.btnAbaMapa.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.btnAbaMapa.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnAbaMapa.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnAbaMapa.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.btnAbaMapa.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.btnAbaMapa.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); + this.btnAbaMapa.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.btnAbaMapa.Location = new System.Drawing.Point(590, 0); + this.btnAbaMapa.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); + this.btnAbaMapa.Name = "btnAbaMapa"; + this.btnAbaMapa.Size = new System.Drawing.Size(192, 42); + this.btnAbaMapa.TabIndex = 3; + this.btnAbaMapa.Text = "⌖ Mapa e Navegação"; + this.btnAbaMapa.UseVisualStyleBackColor = false; + // // pnlDescricaoAba - this.pnlDescricaoAba.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; + // + this.pnlDescricaoAba.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlDescricaoAba.BackColor = System.Drawing.Color.Transparent; + this.pnlDescricaoAba.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); this.pnlDescricaoAba.Controls.Add(this.lblDescricaoAba); this.pnlDescricaoAba.CornerRadius = 7; this.pnlDescricaoAba.Dock = System.Windows.Forms.DockStyle.Fill; - this.pnlDescricaoAba.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.SurfaceRaised; + this.pnlDescricaoAba.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.pnlDescricaoAba.Location = new System.Drawing.Point(0, 45); this.pnlDescricaoAba.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlDescricaoAba.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlDescricaoAba.Name = "pnlDescricaoAba"; this.pnlDescricaoAba.Padding = new System.Windows.Forms.Padding(10, 0, 10, 0); - + this.pnlDescricaoAba.Size = new System.Drawing.Size(784, 25); + this.pnlDescricaoAba.TabIndex = 1; + // // lblDescricaoAba + // this.lblDescricaoAba.AutoEllipsis = true; this.lblDescricaoAba.BackColor = System.Drawing.Color.Transparent; this.lblDescricaoAba.Dock = System.Windows.Forms.DockStyle.Fill; this.lblDescricaoAba.Font = new System.Drawing.Font("Segoe UI", 7.2F); - this.lblDescricaoAba.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; - this.lblDescricaoAba.Margin = System.Windows.Forms.Padding.Empty; + this.lblDescricaoAba.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblDescricaoAba.Location = new System.Drawing.Point(10, 0); + this.lblDescricaoAba.Margin = new System.Windows.Forms.Padding(0); + this.lblDescricaoAba.Name = "lblDescricaoAba"; + this.lblDescricaoAba.Size = new System.Drawing.Size(764, 25); + this.lblDescricaoAba.TabIndex = 0; this.lblDescricaoAba.Text = "Automação, assistências e velocidades de deslocamento"; this.lblDescricaoAba.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - + // // pnlConteudo - this.pnlConteudo.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; + // + this.pnlConteudo.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlConteudo.BackColor = System.Drawing.Color.Transparent; + this.pnlConteudo.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); this.pnlConteudo.CornerRadius = 9; this.pnlConteudo.Dock = System.Windows.Forms.DockStyle.Fill; - this.pnlConteudo.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; + this.pnlConteudo.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlConteudo.Location = new System.Drawing.Point(0, 73); this.pnlConteudo.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlConteudo.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlConteudo.Name = "pnlConteudo"; this.pnlConteudo.Padding = new System.Windows.Forms.Padding(6); - + this.pnlConteudo.Size = new System.Drawing.Size(784, 297); + this.pnlConteudo.TabIndex = 2; + // // footerPanel - this.footerPanel.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; + // + this.footerPanel.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.footerPanel.BackColor = System.Drawing.Color.Transparent; + this.footerPanel.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); this.footerPanel.Controls.Add(this.footerLayout); this.footerPanel.CornerRadius = 9; this.footerPanel.Dock = System.Windows.Forms.DockStyle.Fill; - this.footerPanel.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; - this.footerPanel.Margin = System.Windows.Forms.Padding.Empty; + this.footerPanel.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.footerPanel.Location = new System.Drawing.Point(0, 373); + this.footerPanel.Margin = new System.Windows.Forms.Padding(0); + this.footerPanel.MinimumSize = new System.Drawing.Size(30, 25); + this.footerPanel.Name = "footerPanel"; this.footerPanel.Padding = new System.Windows.Forms.Padding(8, 6, 8, 6); - + this.footerPanel.Size = new System.Drawing.Size(784, 62); + this.footerPanel.TabIndex = 3; + // // footerLayout + // this.footerLayout.BackColor = System.Drawing.Color.Transparent; this.footerLayout.ColumnCount = 5; this.footerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 145F)); @@ -144,158 +241,210 @@ this.footerLayout.Controls.Add(this.btnRedefinir, 3, 0); this.footerLayout.Controls.Add(this.btnSalvar, 4, 0); this.footerLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.footerLayout.Margin = System.Windows.Forms.Padding.Empty; - this.footerLayout.Padding = System.Windows.Forms.Padding.Empty; + this.footerLayout.Location = new System.Drawing.Point(8, 6); + this.footerLayout.Margin = new System.Windows.Forms.Padding(0); + this.footerLayout.Name = "footerLayout"; this.footerLayout.RowCount = 1; this.footerLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - - // lblModoOperacao - ConfigurarCampoFooter(this.campoModoLayout); + this.footerLayout.Size = new System.Drawing.Size(768, 50); + this.footerLayout.TabIndex = 0; + // + // campoModoLayout + // + this.campoModoLayout.BackColor = System.Drawing.Color.Transparent; + this.campoModoLayout.ColumnCount = 1; + this.campoModoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.campoModoLayout.Controls.Add(this.lblModoOperacao, 0, 0); this.campoModoLayout.Controls.Add(this.cmbModoOperacao, 0, 1); - SetupFooterLabel(this.lblModoOperacao, "Modo da operação"); + this.campoModoLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.campoModoLayout.Location = new System.Drawing.Point(0, 0); + this.campoModoLayout.Margin = new System.Windows.Forms.Padding(0); + this.campoModoLayout.Name = "campoModoLayout"; + this.campoModoLayout.RowCount = 2; + this.campoModoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); + this.campoModoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.campoModoLayout.Size = new System.Drawing.Size(145, 50); + this.campoModoLayout.TabIndex = 0; + // + // lblModoOperacao + // + this.lblModoOperacao.AutoEllipsis = true; + this.lblModoOperacao.BackColor = System.Drawing.Color.Transparent; + this.lblModoOperacao.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblModoOperacao.Font = new System.Drawing.Font("Segoe UI", 7.2F, System.Drawing.FontStyle.Bold); + this.lblModoOperacao.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblModoOperacao.Location = new System.Drawing.Point(0, 0); + this.lblModoOperacao.Margin = new System.Windows.Forms.Padding(0); + this.lblModoOperacao.Name = "lblModoOperacao"; + this.lblModoOperacao.Size = new System.Drawing.Size(145, 17); + this.lblModoOperacao.TabIndex = 0; + this.lblModoOperacao.Text = "Modo da operação"; + this.lblModoOperacao.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // cmbModoOperacao + // + this.cmbModoOperacao.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); this.cmbModoOperacao.Dock = System.Windows.Forms.DockStyle.Fill; - this.cmbModoOperacao.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.SurfaceRaised; + this.cmbModoOperacao.DropDownHeight = 150; this.cmbModoOperacao.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; this.cmbModoOperacao.FlatStyle = System.Windows.Forms.FlatStyle.Flat; this.cmbModoOperacao.Font = new System.Drawing.Font("Segoe UI", 7.5F, System.Drawing.FontStyle.Bold); - this.cmbModoOperacao.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; - this.cmbModoOperacao.Margin = new System.Windows.Forms.Padding(0, 1, 5, 3); + this.cmbModoOperacao.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); this.cmbModoOperacao.IntegralHeight = false; - this.cmbModoOperacao.DropDownHeight = 150; - - // lblDescricao - ConfigurarCampoFooter(this.campoDescricaoLayout); + this.cmbModoOperacao.Location = new System.Drawing.Point(0, 18); + this.cmbModoOperacao.Margin = new System.Windows.Forms.Padding(0, 1, 5, 3); + this.cmbModoOperacao.Name = "cmbModoOperacao"; + this.cmbModoOperacao.Size = new System.Drawing.Size(140, 20); + this.cmbModoOperacao.TabIndex = 1; + // + // campoDescricaoLayout + // + this.campoDescricaoLayout.BackColor = System.Drawing.Color.Transparent; + this.campoDescricaoLayout.ColumnCount = 1; + this.campoDescricaoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.campoDescricaoLayout.Controls.Add(this.lblDescricaoOperacao, 0, 0); this.campoDescricaoLayout.Controls.Add(this.txtDescricaoOperacao, 0, 1); - SetupFooterLabel(this.lblDescricaoOperacao, "Descrição"); - this.txtDescricaoOperacao.AutoSize = false; - this.txtDescricaoOperacao.Dock = System.Windows.Forms.DockStyle.Fill; - this.txtDescricaoOperacao.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.SurfaceRaised; - this.txtDescricaoOperacao.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; + this.campoDescricaoLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.campoDescricaoLayout.Location = new System.Drawing.Point(145, 0); + this.campoDescricaoLayout.Margin = new System.Windows.Forms.Padding(0); + this.campoDescricaoLayout.Name = "campoDescricaoLayout"; + this.campoDescricaoLayout.RowCount = 2; + this.campoDescricaoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); + this.campoDescricaoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.campoDescricaoLayout.Size = new System.Drawing.Size(198, 50); + this.campoDescricaoLayout.TabIndex = 1; + // + // lblDescricaoOperacao + // + this.lblDescricaoOperacao.AutoEllipsis = true; + this.lblDescricaoOperacao.BackColor = System.Drawing.Color.Transparent; + this.lblDescricaoOperacao.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblDescricaoOperacao.Font = new System.Drawing.Font("Segoe UI", 7.2F, System.Drawing.FontStyle.Bold); + this.lblDescricaoOperacao.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblDescricaoOperacao.Location = new System.Drawing.Point(0, 0); + this.lblDescricaoOperacao.Margin = new System.Windows.Forms.Padding(0); + this.lblDescricaoOperacao.Name = "lblDescricaoOperacao"; + this.lblDescricaoOperacao.Size = new System.Drawing.Size(198, 17); + this.lblDescricaoOperacao.TabIndex = 0; + this.lblDescricaoOperacao.Text = "Descrição"; + this.lblDescricaoOperacao.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // txtDescricaoOperacao + // + this.txtDescricaoOperacao.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); this.txtDescricaoOperacao.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.txtDescricaoOperacao.Dock = System.Windows.Forms.DockStyle.Fill; this.txtDescricaoOperacao.Font = new System.Drawing.Font("Segoe UI", 7.5F); + this.txtDescricaoOperacao.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.txtDescricaoOperacao.Location = new System.Drawing.Point(3, 18); this.txtDescricaoOperacao.Margin = new System.Windows.Forms.Padding(3, 1, 5, 3); this.txtDescricaoOperacao.MaxLength = 120; - - // posProcessamentoLayout - ConfigurarCampoFooter(this.campoRegistroLayout); + this.txtDescricaoOperacao.Name = "txtDescricaoOperacao"; + this.txtDescricaoOperacao.Size = new System.Drawing.Size(190, 29); + this.txtDescricaoOperacao.TabIndex = 1; + // + // campoRegistroLayout + // + this.campoRegistroLayout.BackColor = System.Drawing.Color.Transparent; + this.campoRegistroLayout.ColumnCount = 1; + this.campoRegistroLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.campoRegistroLayout.Controls.Add(this.lblRegistroDados, 0, 0); this.campoRegistroLayout.Controls.Add(this.chkRegistrarPosProcessamento, 0, 1); - SetupFooterLabel(this.lblRegistroDados, "Registro de dados"); + this.campoRegistroLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.campoRegistroLayout.Location = new System.Drawing.Point(343, 0); + this.campoRegistroLayout.Margin = new System.Windows.Forms.Padding(0); + this.campoRegistroLayout.Name = "campoRegistroLayout"; + this.campoRegistroLayout.RowCount = 2; + this.campoRegistroLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); + this.campoRegistroLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.campoRegistroLayout.Size = new System.Drawing.Size(145, 50); + this.campoRegistroLayout.TabIndex = 2; + // + // lblRegistroDados + // + this.lblRegistroDados.AutoEllipsis = true; + this.lblRegistroDados.BackColor = System.Drawing.Color.Transparent; + this.lblRegistroDados.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblRegistroDados.Font = new System.Drawing.Font("Segoe UI", 7.2F, System.Drawing.FontStyle.Bold); + this.lblRegistroDados.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblRegistroDados.Location = new System.Drawing.Point(0, 0); + this.lblRegistroDados.Margin = new System.Windows.Forms.Padding(0); + this.lblRegistroDados.Name = "lblRegistroDados"; + this.lblRegistroDados.Size = new System.Drawing.Size(145, 17); + this.lblRegistroDados.TabIndex = 0; + this.lblRegistroDados.Text = "Registro de dados"; + this.lblRegistroDados.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // chkRegistrarPosProcessamento + // this.chkRegistrarPosProcessamento.Appearance = System.Windows.Forms.Appearance.Button; - this.chkRegistrarPosProcessamento.AutoSize = false; + this.chkRegistrarPosProcessamento.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.chkRegistrarPosProcessamento.Cursor = System.Windows.Forms.Cursors.Hand; this.chkRegistrarPosProcessamento.Dock = System.Windows.Forms.DockStyle.Fill; + this.chkRegistrarPosProcessamento.FlatAppearance.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.chkRegistrarPosProcessamento.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(90)))), ((int)(((byte)(46))))); this.chkRegistrarPosProcessamento.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - this.chkRegistrarPosProcessamento.FlatAppearance.BorderSize = 1; - this.chkRegistrarPosProcessamento.FlatAppearance.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; - this.chkRegistrarPosProcessamento.FlatAppearance.CheckedBackColor = System.Drawing.Color.FromArgb(30, 90, 46); - this.chkRegistrarPosProcessamento.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.SurfaceRaised; - this.chkRegistrarPosProcessamento.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; this.chkRegistrarPosProcessamento.Font = new System.Drawing.Font("Segoe UI", 7F, System.Drawing.FontStyle.Bold); + this.chkRegistrarPosProcessamento.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.chkRegistrarPosProcessamento.Location = new System.Drawing.Point(3, 18); this.chkRegistrarPosProcessamento.Margin = new System.Windows.Forms.Padding(3, 1, 5, 3); + this.chkRegistrarPosProcessamento.Name = "chkRegistrarPosProcessamento"; + this.chkRegistrarPosProcessamento.Size = new System.Drawing.Size(137, 29); + this.chkRegistrarPosProcessamento.TabIndex = 1; this.chkRegistrarPosProcessamento.Text = "DESATIVADO"; this.chkRegistrarPosProcessamento.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - this.chkRegistrarPosProcessamento.Cursor = System.Windows.Forms.Cursors.Hand; this.chkRegistrarPosProcessamento.UseVisualStyleBackColor = false; - + // // btnRedefinir - SetupFooterAction(this.btnRedefinir, "REDEFINIR", "↻", AgroBase.Forms.IHM.Controls.HmiTheme.Warning); - + // + this.btnRedefinir.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); + this.btnRedefinir.BackColor = System.Drawing.Color.Transparent; + this.btnRedefinir.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); + this.btnRedefinir.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnRedefinir.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnRedefinir.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnRedefinir.IconText = "↻"; + this.btnRedefinir.Location = new System.Drawing.Point(491, 0); + this.btnRedefinir.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); + this.btnRedefinir.Name = "btnRedefinir"; + this.btnRedefinir.Size = new System.Drawing.Size(132, 50); + this.btnRedefinir.TabIndex = 3; + this.btnRedefinir.Text = "REDEFINIR"; + // // btnSalvar - SetupFooterAction(this.btnSalvar, "SALVAR", "▣", AgroBase.Forms.IHM.Controls.HmiTheme.Success); - + // + this.btnSalvar.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.btnSalvar.BackColor = System.Drawing.Color.Transparent; + this.btnSalvar.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.btnSalvar.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSalvar.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnSalvar.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnSalvar.IconText = "▣"; + this.btnSalvar.Location = new System.Drawing.Point(626, 0); + this.btnSalvar.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); + this.btnSalvar.Name = "btnSalvar"; + this.btnSalvar.Size = new System.Drawing.Size(142, 50); + this.btnSalvar.TabIndex = 4; + this.btnSalvar.Text = "SALVAR"; + // // ucOperacaoParametros + // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.Background; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(17)))), ((int)(((byte)(20))))); this.Controls.Add(this.rootLayout); this.DoubleBuffered = true; this.Name = "ucOperacaoParametros"; this.Size = new System.Drawing.Size(784, 435); - - this.campoModoLayout.ResumeLayout(true); - this.campoModoLayout.PerformLayout(); - - this.campoDescricaoLayout.ResumeLayout(true); - this.campoDescricaoLayout.PerformLayout(); - - this.campoRegistroLayout.ResumeLayout(true); - this.campoRegistroLayout.PerformLayout(); - - this.footerLayout.ResumeLayout(true); - this.footerLayout.PerformLayout(); - - this.footerPanel.ResumeLayout(true); - this.footerPanel.PerformLayout(); - - this.pnlDescricaoAba.ResumeLayout(true); - this.pnlDescricaoAba.PerformLayout(); - - this.tabsLayout.ResumeLayout(true); - this.tabsLayout.PerformLayout(); - - this.rootLayout.ResumeLayout(true); - this.rootLayout.PerformLayout(); - + this.rootLayout.ResumeLayout(false); + this.tabsLayout.ResumeLayout(false); + this.pnlDescricaoAba.ResumeLayout(false); + this.footerPanel.ResumeLayout(false); + this.footerLayout.ResumeLayout(false); + this.campoModoLayout.ResumeLayout(false); + this.campoDescricaoLayout.ResumeLayout(false); + this.campoRegistroLayout.ResumeLayout(false); this.ResumeLayout(false); - this.PerformLayout(); - } - private static void SetupTabButton(System.Windows.Forms.Button button, string text) - { - button.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; - button.Cursor = System.Windows.Forms.Cursors.Hand; - button.Dock = System.Windows.Forms.DockStyle.Fill; - button.FlatAppearance.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; - button.FlatAppearance.BorderSize = 1; - button.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - button.Font = new System.Drawing.Font("Segoe UI", 8.5F, System.Drawing.FontStyle.Bold); - button.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; - button.Margin = new System.Windows.Forms.Padding(2, 0, 2, 0); - button.Text = text; - button.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - button.UseVisualStyleBackColor = false; - } - - private static void SetupFooterLabel(System.Windows.Forms.Label label, string text) - { - label.AutoEllipsis = true; - label.BackColor = System.Drawing.Color.Transparent; - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.Font = new System.Drawing.Font("Segoe UI", 7.2F, System.Drawing.FontStyle.Bold); - label.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; - label.Margin = System.Windows.Forms.Padding.Empty; - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - } - - private static void SetupFooterAction(AgroBase.Forms.IHM.Controls.HmiSidebarButton button, string text, string icon, System.Drawing.Color accent) - { - button.AccentColor = accent; - button.BorderColor = accent; - button.Cursor = System.Windows.Forms.Cursors.Hand; - button.Dock = System.Windows.Forms.DockStyle.Fill; - button.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.SurfaceRaised; - button.IconText = icon; - button.Margin = new System.Windows.Forms.Padding(3, 0, 0, 0); - button.MaximumSize = System.Drawing.Size.Empty; - button.MinimumSize = System.Drawing.Size.Empty; - button.Text = text; - } - - private static void ConfigurarCampoFooter(System.Windows.Forms.TableLayoutPanel layout) - { - layout.BackColor = System.Drawing.Color.Transparent; - layout.ColumnCount = 1; - layout.ColumnStyles.Clear(); - layout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - layout.RowCount = 2; - layout.RowStyles.Clear(); - layout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); - layout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - layout.Dock = System.Windows.Forms.DockStyle.Fill; - layout.Margin = System.Windows.Forms.Padding.Empty; - layout.Padding = System.Windows.Forms.Padding.Empty; } #endregion diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoParametros.cs b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoParametros.cs index faf135e01..2d8bee336 100644 --- a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoParametros.cs +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoParametros.cs @@ -73,7 +73,6 @@ namespace AgroBase.Forms.IHM.Operacao try { - var operacao = operacaoParametrizando?.Sensoriamento?.Operacao; var parametros = operacaoParametrizando?.Parametros; ModoOperacao modo = operacaoParametrizando?.Parametros?.Modo ?? ModoOperacao.NaoDefinido; int indiceModo = (int)modo; @@ -212,7 +211,8 @@ namespace AgroBase.Forms.IHM.Operacao novaOperacao.Parametros.Mapa = dadosMapaAtual; novaOperacao.Parametros.TipoMapa = tipoMapaAtual; novaOperacao.Parametros.RuasPercorrer = new List(); - novaOperacao.Parametros.Descricao = descricaoAtual; + if (!string.IsNullOrEmpty(descricaoAtual)) + novaOperacao.Parametros.Descricao = descricaoAtual; if (novaOperacao.Parametros?.Controle != null) novaOperacao.Parametros.Controle.RegistrarDadosPosProcessamento = registrarDados; } diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoParametros.resx b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoParametros.resx new file mode 100644 index 000000000..1af7de150 --- /dev/null +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoParametros.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/Operacao/ucOperacaoPulverizador.Designer.cs b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoPulverizador.Designer.cs index 415924b51..2e358d8fd 100644 --- a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoPulverizador.Designer.cs +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoPulverizador.Designer.cs @@ -1,4 +1,12 @@ -namespace AgroBase.Forms.IHM.Operacao +using static System.Net.Mime.MediaTypeNames; +using System.Drawing; +using Assimp; +using Newtonsoft.Json.Linq; +using System.Windows.Forms.DataVisualization.Charting; +using MathNet.Numerics.Distributions; +using System.Windows.Forms; + +namespace AgroBase.Forms.IHM.Operacao { partial class ucOperacaoPulverizador { @@ -17,7 +25,6 @@ private void InitializeComponent() { this.rootLayout = new System.Windows.Forms.TableLayoutPanel(); - this.leftLayout = new System.Windows.Forms.TableLayoutPanel(); this.pnlBomba = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.bombaLayout = new System.Windows.Forms.TableLayoutPanel(); @@ -27,7 +34,6 @@ this.bombaButtonsLayout = new System.Windows.Forms.TableLayoutPanel(); this.btnLigarBomba = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); this.btnDesligarBomba = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); - this.pnlAgitador = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.agitadorLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblAgitadorTitulo = new System.Windows.Forms.Label(); @@ -36,7 +42,6 @@ this.agitadorButtonsLayout = new System.Windows.Forms.TableLayoutPanel(); this.btnLigarAgitador = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); this.btnDesligarAgitador = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); - this.pnlSaude = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.saudeLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblSaudeTitulo = new System.Windows.Forms.Label(); @@ -45,7 +50,6 @@ this.healthSensores = new AgroBase.Forms.IHM.Controls.Operacao.HmiSprayerModuleHealthRow(); this.healthBicos = new AgroBase.Forms.IHM.Controls.Operacao.HmiSprayerModuleHealthRow(); this.healthCamera = new AgroBase.Forms.IHM.Controls.Operacao.HmiSprayerModuleHealthRow(); - this.centerLayout = new System.Windows.Forms.TableLayoutPanel(); this.pnlVideo = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.videoLayout = new System.Windows.Forms.TableLayoutPanel(); @@ -54,7 +58,6 @@ this.lblVideoStatus = new System.Windows.Forms.Label(); this.picVideo = new System.Windows.Forms.PictureBox(); this.cmbTipoFrame = new System.Windows.Forms.ComboBox(); - this.pnlBicos = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.bicosLayout = new System.Windows.Forms.TableLayoutPanel(); this.bicosHeaderLayout = new System.Windows.Forms.TableLayoutPanel(); @@ -67,7 +70,6 @@ this.nozzleB05 = new AgroBase.Forms.IHM.Controls.Operacao.HmiNozzleCard(); this.nozzleB06 = new AgroBase.Forms.IHM.Controls.Operacao.HmiNozzleCard(); this.nozzleB07 = new AgroBase.Forms.IHM.Controls.Operacao.HmiNozzleCard(); - this.pnlTelemetria = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.telemetryLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblTelemetriaTitulo = new System.Windows.Forms.Label(); @@ -82,12 +84,31 @@ this.telemetryLitroMetro = new AgroBase.Forms.IHM.Controls.Operacao.HmiSprayerTelemetryRow(); this.telemetryInfestacao = new AgroBase.Forms.IHM.Controls.Operacao.HmiSprayerTelemetryRow(); this.telemetryTempoLigado = new AgroBase.Forms.IHM.Controls.Operacao.HmiSprayerTelemetryRow(); - + this.rootLayout.SuspendLayout(); + this.leftLayout.SuspendLayout(); + this.pnlBomba.SuspendLayout(); + this.bombaLayout.SuspendLayout(); + this.bombaButtonsLayout.SuspendLayout(); + this.pnlAgitador.SuspendLayout(); + this.agitadorLayout.SuspendLayout(); + this.agitadorButtonsLayout.SuspendLayout(); + this.pnlSaude.SuspendLayout(); + this.saudeLayout.SuspendLayout(); + this.centerLayout.SuspendLayout(); + this.pnlVideo.SuspendLayout(); + this.videoLayout.SuspendLayout(); + this.videoHeaderLayout.SuspendLayout(); ((System.ComponentModel.ISupportInitialize)(this.picVideo)).BeginInit(); + this.pnlBicos.SuspendLayout(); + this.bicosLayout.SuspendLayout(); + this.bicosHeaderLayout.SuspendLayout(); + this.pnlTelemetria.SuspendLayout(); + this.telemetryLayout.SuspendLayout(); this.SuspendLayout(); - - // root - this.rootLayout.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.Background; + // + // rootLayout + // + this.rootLayout.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(17)))), ((int)(((byte)(20))))); this.rootLayout.ColumnCount = 3; this.rootLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 23F)); this.rootLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 52F)); @@ -96,30 +117,50 @@ this.rootLayout.Controls.Add(this.centerLayout, 1, 0); this.rootLayout.Controls.Add(this.pnlTelemetria, 2, 0); this.rootLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.rootLayout.Margin = System.Windows.Forms.Padding.Empty; - this.rootLayout.Padding = System.Windows.Forms.Padding.Empty; - - // left + this.rootLayout.Location = new System.Drawing.Point(0, 0); + this.rootLayout.Margin = new System.Windows.Forms.Padding(0); + this.rootLayout.Name = "rootLayout"; + this.rootLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.rootLayout.Size = new System.Drawing.Size(784, 435); + this.rootLayout.TabIndex = 0; + // + // leftLayout + // this.leftLayout.ColumnCount = 1; this.leftLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.leftLayout.Controls.Add(this.pnlBomba, 0, 0); this.leftLayout.Controls.Add(this.pnlAgitador, 0, 1); this.leftLayout.Controls.Add(this.pnlSaude, 0, 2); this.leftLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.leftLayout.Location = new System.Drawing.Point(0, 0); this.leftLayout.Margin = new System.Windows.Forms.Padding(0, 0, 3, 0); + this.leftLayout.Name = "leftLayout"; this.leftLayout.RowCount = 3; this.leftLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 26F)); this.leftLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 26F)); this.leftLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 48F)); - - ConfigurePanel(this.pnlBomba, this.bombaLayout); - ConfigurePanel(this.pnlAgitador, this.agitadorLayout); - ConfigurePanel(this.pnlSaude, this.saudeLayout); - ConfigurePanel(this.pnlVideo, this.videoLayout); - ConfigurePanel(this.pnlBicos, this.bicosLayout); - ConfigurePanel(this.pnlTelemetria, this.telemetryLayout); - - // bomba + this.leftLayout.Size = new System.Drawing.Size(177, 435); + this.leftLayout.TabIndex = 0; + // + // pnlBomba + // + this.pnlBomba.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlBomba.BackColor = System.Drawing.Color.Transparent; + this.pnlBomba.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlBomba.Controls.Add(this.bombaLayout); + this.pnlBomba.CornerRadius = 9; + this.pnlBomba.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlBomba.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlBomba.Location = new System.Drawing.Point(0, 0); + this.pnlBomba.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlBomba.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlBomba.Name = "pnlBomba"; + this.pnlBomba.Padding = new System.Windows.Forms.Padding(7); + this.pnlBomba.Size = new System.Drawing.Size(177, 110); + this.pnlBomba.TabIndex = 0; + // + // bombaLayout + // this.bombaLayout.ColumnCount = 2; this.bombaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.bombaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); @@ -127,26 +168,131 @@ this.bombaLayout.Controls.Add(this.cardPressaoSp, 0, 1); this.bombaLayout.Controls.Add(this.cardStatusBomba, 1, 1); this.bombaLayout.Controls.Add(this.bombaButtonsLayout, 0, 2); - this.bombaLayout.SetColumnSpan(this.lblBombaTitulo, 2); - this.bombaLayout.SetColumnSpan(this.bombaButtonsLayout, 2); this.bombaLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.bombaLayout.Location = new System.Drawing.Point(7, 7); + this.bombaLayout.Name = "bombaLayout"; this.bombaLayout.RowCount = 3; this.bombaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.bombaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.bombaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F)); - - SetupTitle(this.lblBombaTitulo, "BOMBA PRESSURIZADORA"); - SetupCompact(this.cardPressaoSp, "Pressão SP", "60,0 psi", AgroBase.Forms.IHM.Controls.HmiTheme.Info); - SetupCompact(this.cardStatusBomba, "Status", "Ligada", AgroBase.Forms.IHM.Controls.HmiTheme.Success); - - SetupTwoButtons( - this.bombaButtonsLayout, - this.btnLigarBomba, - this.btnDesligarBomba, - "ON", - "OFF"); - - // agitador + this.bombaLayout.Size = new System.Drawing.Size(163, 96); + this.bombaLayout.TabIndex = 0; + // + // lblBombaTitulo + // + this.lblBombaTitulo.AutoEllipsis = true; + this.lblBombaTitulo.BackColor = System.Drawing.Color.Transparent; + this.bombaLayout.SetColumnSpan(this.lblBombaTitulo, 2); + this.lblBombaTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblBombaTitulo.Font = new System.Drawing.Font("Segoe UI", 8.2F, System.Drawing.FontStyle.Bold); + this.lblBombaTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblBombaTitulo.Location = new System.Drawing.Point(3, 0); + this.lblBombaTitulo.Name = "lblBombaTitulo"; + this.lblBombaTitulo.Size = new System.Drawing.Size(157, 22); + this.lblBombaTitulo.TabIndex = 0; + this.lblBombaTitulo.Text = "BOMBA PRESSURIZADORA"; + this.lblBombaTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // cardPressaoSp + // + this.cardPressaoSp.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardPressaoSp.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.cardPressaoSp.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardPressaoSp.Location = new System.Drawing.Point(2, 24); + this.cardPressaoSp.Margin = new System.Windows.Forms.Padding(2); + this.cardPressaoSp.MinimumSize = new System.Drawing.Size(55, 32); + this.cardPressaoSp.Name = "cardPressaoSp"; + this.cardPressaoSp.Padding = new System.Windows.Forms.Padding(0, 0, 0, 2); + this.cardPressaoSp.Size = new System.Drawing.Size(77, 32); + this.cardPressaoSp.TabIndex = 1; + this.cardPressaoSp.Titulo = "Pressão SP"; + this.cardPressaoSp.Valor = "60,0 psi"; + // + // cardStatusBomba + // + this.cardStatusBomba.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardStatusBomba.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.cardStatusBomba.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardStatusBomba.Location = new System.Drawing.Point(83, 24); + this.cardStatusBomba.Margin = new System.Windows.Forms.Padding(2); + this.cardStatusBomba.MinimumSize = new System.Drawing.Size(55, 32); + this.cardStatusBomba.Name = "cardStatusBomba"; + this.cardStatusBomba.Padding = new System.Windows.Forms.Padding(0, 0, 0, 2); + this.cardStatusBomba.Size = new System.Drawing.Size(78, 32); + this.cardStatusBomba.TabIndex = 2; + this.cardStatusBomba.Titulo = "Status"; + this.cardStatusBomba.Valor = "Ligada"; + // + // bombaButtonsLayout + // + this.bombaButtonsLayout.ColumnCount = 2; + this.bombaLayout.SetColumnSpan(this.bombaButtonsLayout, 2); + this.bombaButtonsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.bombaButtonsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.bombaButtonsLayout.Controls.Add(this.btnLigarBomba, 0, 0); + this.bombaButtonsLayout.Controls.Add(this.btnDesligarBomba, 1, 0); + this.bombaButtonsLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.bombaButtonsLayout.Location = new System.Drawing.Point(3, 58); + this.bombaButtonsLayout.Name = "bombaButtonsLayout"; + this.bombaButtonsLayout.RowCount = 2; + this.bombaButtonsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.bombaButtonsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 1F)); + this.bombaButtonsLayout.Size = new System.Drawing.Size(157, 35); + this.bombaButtonsLayout.TabIndex = 3; + // + // btnLigarBomba + // + this.btnLigarBomba.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.btnLigarBomba.BackColor = System.Drawing.Color.Transparent; + this.btnLigarBomba.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.btnLigarBomba.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnLigarBomba.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnLigarBomba.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnLigarBomba.IconText = ""; + this.btnLigarBomba.Location = new System.Drawing.Point(2, 2); + this.btnLigarBomba.Margin = new System.Windows.Forms.Padding(2); + this.btnLigarBomba.MinimumSize = new System.Drawing.Size(60, 30); + this.btnLigarBomba.Name = "btnLigarBomba"; + this.btnLigarBomba.Size = new System.Drawing.Size(74, 30); + this.btnLigarBomba.TabIndex = 0; + this.btnLigarBomba.Text = "ON"; + // + // btnDesligarBomba + // + this.btnDesligarBomba.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(83)))), ((int)(((byte)(80))))); + this.btnDesligarBomba.BackColor = System.Drawing.Color.Transparent; + this.btnDesligarBomba.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(83)))), ((int)(((byte)(80))))); + this.btnDesligarBomba.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnDesligarBomba.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnDesligarBomba.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnDesligarBomba.IconText = ""; + this.btnDesligarBomba.Location = new System.Drawing.Point(80, 2); + this.btnDesligarBomba.Margin = new System.Windows.Forms.Padding(2); + this.btnDesligarBomba.MinimumSize = new System.Drawing.Size(60, 30); + this.btnDesligarBomba.Name = "btnDesligarBomba"; + this.btnDesligarBomba.Size = new System.Drawing.Size(75, 30); + this.btnDesligarBomba.TabIndex = 1; + this.btnDesligarBomba.Text = "OFF"; + // + // pnlAgitador + // + this.pnlAgitador.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlAgitador.BackColor = System.Drawing.Color.Transparent; + this.pnlAgitador.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlAgitador.Controls.Add(this.agitadorLayout); + this.pnlAgitador.CornerRadius = 9; + this.pnlAgitador.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlAgitador.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlAgitador.Location = new System.Drawing.Point(0, 113); + this.pnlAgitador.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlAgitador.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlAgitador.Name = "pnlAgitador"; + this.pnlAgitador.Padding = new System.Windows.Forms.Padding(7); + this.pnlAgitador.Size = new System.Drawing.Size(177, 110); + this.pnlAgitador.TabIndex = 1; + // + // agitadorLayout + // this.agitadorLayout.ColumnCount = 2; this.agitadorLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.agitadorLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); @@ -154,26 +300,131 @@ this.agitadorLayout.Controls.Add(this.cardModoAgitador, 0, 1); this.agitadorLayout.Controls.Add(this.cardStatusAgitador, 1, 1); this.agitadorLayout.Controls.Add(this.agitadorButtonsLayout, 0, 2); - this.agitadorLayout.SetColumnSpan(this.lblAgitadorTitulo, 2); - this.agitadorLayout.SetColumnSpan(this.agitadorButtonsLayout, 2); this.agitadorLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.agitadorLayout.Location = new System.Drawing.Point(7, 7); + this.agitadorLayout.Name = "agitadorLayout"; this.agitadorLayout.RowCount = 3; this.agitadorLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.agitadorLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.agitadorLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 41F)); - - SetupTitle(this.lblAgitadorTitulo, "AGITADOR"); - SetupCompact(this.cardModoAgitador, "Modo", "Contínuo", AgroBase.Forms.IHM.Controls.HmiTheme.Info); - SetupCompact(this.cardStatusAgitador, "Status", "Ligado", AgroBase.Forms.IHM.Controls.HmiTheme.Success); - - SetupTwoButtons( - this.agitadorButtonsLayout, - this.btnLigarAgitador, - this.btnDesligarAgitador, - "ON", - "OFF"); - - // saude + this.agitadorLayout.Size = new System.Drawing.Size(163, 96); + this.agitadorLayout.TabIndex = 0; + // + // lblAgitadorTitulo + // + this.lblAgitadorTitulo.AutoEllipsis = true; + this.lblAgitadorTitulo.BackColor = System.Drawing.Color.Transparent; + this.agitadorLayout.SetColumnSpan(this.lblAgitadorTitulo, 2); + this.lblAgitadorTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblAgitadorTitulo.Font = new System.Drawing.Font("Segoe UI", 8.2F, System.Drawing.FontStyle.Bold); + this.lblAgitadorTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblAgitadorTitulo.Location = new System.Drawing.Point(3, 0); + this.lblAgitadorTitulo.Name = "lblAgitadorTitulo"; + this.lblAgitadorTitulo.Size = new System.Drawing.Size(157, 22); + this.lblAgitadorTitulo.TabIndex = 0; + this.lblAgitadorTitulo.Text = "AGITADOR DE CALDA"; + this.lblAgitadorTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // cardModoAgitador + // + this.cardModoAgitador.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardModoAgitador.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.cardModoAgitador.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardModoAgitador.Location = new System.Drawing.Point(2, 24); + this.cardModoAgitador.Margin = new System.Windows.Forms.Padding(2); + this.cardModoAgitador.MinimumSize = new System.Drawing.Size(55, 32); + this.cardModoAgitador.Name = "cardModoAgitador"; + this.cardModoAgitador.Padding = new System.Windows.Forms.Padding(0, 0, 0, 2); + this.cardModoAgitador.Size = new System.Drawing.Size(77, 32); + this.cardModoAgitador.TabIndex = 1; + this.cardModoAgitador.Titulo = "Modo"; + this.cardModoAgitador.Valor = "Contínuo"; + // + // cardStatusAgitador + // + this.cardStatusAgitador.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cardStatusAgitador.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.cardStatusAgitador.Dock = System.Windows.Forms.DockStyle.Fill; + this.cardStatusAgitador.Location = new System.Drawing.Point(83, 24); + this.cardStatusAgitador.Margin = new System.Windows.Forms.Padding(2); + this.cardStatusAgitador.MinimumSize = new System.Drawing.Size(55, 32); + this.cardStatusAgitador.Name = "cardStatusAgitador"; + this.cardStatusAgitador.Padding = new System.Windows.Forms.Padding(0, 0, 0, 2); + this.cardStatusAgitador.Size = new System.Drawing.Size(78, 32); + this.cardStatusAgitador.TabIndex = 2; + this.cardStatusAgitador.Titulo = "Status"; + this.cardStatusAgitador.Valor = "Ligado"; + // + // agitadorButtonsLayout + // + this.agitadorButtonsLayout.ColumnCount = 2; + this.agitadorLayout.SetColumnSpan(this.agitadorButtonsLayout, 2); + this.agitadorButtonsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.agitadorButtonsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.agitadorButtonsLayout.Controls.Add(this.btnLigarAgitador, 0, 0); + this.agitadorButtonsLayout.Controls.Add(this.btnDesligarAgitador, 1, 0); + this.agitadorButtonsLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.agitadorButtonsLayout.Location = new System.Drawing.Point(3, 58); + this.agitadorButtonsLayout.Name = "agitadorButtonsLayout"; + this.agitadorButtonsLayout.RowCount = 2; + this.agitadorButtonsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.agitadorButtonsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 1F)); + this.agitadorButtonsLayout.Size = new System.Drawing.Size(157, 35); + this.agitadorButtonsLayout.TabIndex = 3; + // + // btnLigarAgitador + // + this.btnLigarAgitador.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.btnLigarAgitador.BackColor = System.Drawing.Color.Transparent; + this.btnLigarAgitador.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.btnLigarAgitador.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnLigarAgitador.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnLigarAgitador.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnLigarAgitador.IconText = ""; + this.btnLigarAgitador.Location = new System.Drawing.Point(2, 2); + this.btnLigarAgitador.Margin = new System.Windows.Forms.Padding(2); + this.btnLigarAgitador.MinimumSize = new System.Drawing.Size(60, 30); + this.btnLigarAgitador.Name = "btnLigarAgitador"; + this.btnLigarAgitador.Size = new System.Drawing.Size(74, 30); + this.btnLigarAgitador.TabIndex = 0; + this.btnLigarAgitador.Text = "ON"; + // + // btnDesligarAgitador + // + this.btnDesligarAgitador.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(83)))), ((int)(((byte)(80))))); + this.btnDesligarAgitador.BackColor = System.Drawing.Color.Transparent; + this.btnDesligarAgitador.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(239)))), ((int)(((byte)(83)))), ((int)(((byte)(80))))); + this.btnDesligarAgitador.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnDesligarAgitador.Dock = System.Windows.Forms.DockStyle.Fill; + this.btnDesligarAgitador.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.btnDesligarAgitador.IconText = ""; + this.btnDesligarAgitador.Location = new System.Drawing.Point(80, 2); + this.btnDesligarAgitador.Margin = new System.Windows.Forms.Padding(2); + this.btnDesligarAgitador.MinimumSize = new System.Drawing.Size(60, 30); + this.btnDesligarAgitador.Name = "btnDesligarAgitador"; + this.btnDesligarAgitador.Size = new System.Drawing.Size(75, 30); + this.btnDesligarAgitador.TabIndex = 1; + this.btnDesligarAgitador.Text = "OFF"; + // + // pnlSaude + // + this.pnlSaude.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlSaude.BackColor = System.Drawing.Color.Transparent; + this.pnlSaude.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlSaude.Controls.Add(this.saudeLayout); + this.pnlSaude.CornerRadius = 9; + this.pnlSaude.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlSaude.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlSaude.Location = new System.Drawing.Point(0, 226); + this.pnlSaude.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlSaude.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlSaude.Name = "pnlSaude"; + this.pnlSaude.Padding = new System.Windows.Forms.Padding(7); + this.pnlSaude.Size = new System.Drawing.Size(177, 206); + this.pnlSaude.TabIndex = 2; + // + // saudeLayout + // this.saudeLayout.ColumnCount = 1; this.saudeLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.saudeLayout.Controls.Add(this.lblSaudeTitulo, 0, 0); @@ -183,68 +434,261 @@ this.saudeLayout.Controls.Add(this.healthBicos, 0, 4); this.saudeLayout.Controls.Add(this.healthCamera, 0, 5); this.saudeLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.saudeLayout.Location = new System.Drawing.Point(7, 7); + this.saudeLayout.Name = "saudeLayout"; this.saudeLayout.RowCount = 6; this.saudeLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 23F)); - for (int i = 1; i < 6; i++) - this.saudeLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F)); - - SetupTitle(this.lblSaudeTitulo, "SAÚDE DOS MÓDULOS"); - SetupHealth(this.healthBomba, "⚙", "Bomba", "78%", "Atenção", AgroBase.Forms.IHM.Controls.HmiTheme.Warning); - SetupHealth(this.healthAgitador, "◉", "Agitador", "92%", "Operante", AgroBase.Forms.IHM.Controls.HmiTheme.Success); - SetupHealth(this.healthSensores, "⌁", "Sensores", "94%", "Operante", AgroBase.Forms.IHM.Controls.HmiTheme.Success); - SetupHealth(this.healthBicos, "⌄", "Bicos", "89%", "Operante", AgroBase.Forms.IHM.Controls.HmiTheme.Success); - SetupHealth(this.healthCamera, "▣", "Câmera", "96%", "Operante", AgroBase.Forms.IHM.Controls.HmiTheme.Success); - - // center + this.saudeLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F)); + this.saudeLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F)); + this.saudeLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F)); + this.saudeLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F)); + this.saudeLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 20F)); + this.saudeLayout.Size = new System.Drawing.Size(163, 192); + this.saudeLayout.TabIndex = 0; + // + // lblSaudeTitulo + // + this.lblSaudeTitulo.AutoEllipsis = true; + this.lblSaudeTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblSaudeTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblSaudeTitulo.Font = new System.Drawing.Font("Segoe UI", 8.2F, System.Drawing.FontStyle.Bold); + this.lblSaudeTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblSaudeTitulo.Location = new System.Drawing.Point(3, 0); + this.lblSaudeTitulo.Name = "lblSaudeTitulo"; + this.lblSaudeTitulo.Size = new System.Drawing.Size(157, 23); + this.lblSaudeTitulo.TabIndex = 0; + this.lblSaudeTitulo.Text = "SAÚDE DOS MÓDULOS"; + this.lblSaudeTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // healthBomba + // + this.healthBomba.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.healthBomba.Dock = System.Windows.Forms.DockStyle.Fill; + this.healthBomba.IconText = "⚙"; + this.healthBomba.Location = new System.Drawing.Point(0, 23); + this.healthBomba.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.healthBomba.MinimumSize = new System.Drawing.Size(140, 29); + this.healthBomba.Name = "healthBomba"; + this.healthBomba.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.healthBomba.Saude = 0D; + this.healthBomba.Size = new System.Drawing.Size(163, 30); + this.healthBomba.Status = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.healthBomba.TabIndex = 1; + this.healthBomba.Titulo = "Bomba"; + // + // healthAgitador + // + this.healthAgitador.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.healthAgitador.Dock = System.Windows.Forms.DockStyle.Fill; + this.healthAgitador.IconText = "◉"; + this.healthAgitador.Location = new System.Drawing.Point(0, 56); + this.healthAgitador.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.healthAgitador.MinimumSize = new System.Drawing.Size(140, 29); + this.healthAgitador.Name = "healthAgitador"; + this.healthAgitador.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.healthAgitador.Saude = 0D; + this.healthAgitador.Size = new System.Drawing.Size(163, 30); + this.healthAgitador.Status = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.healthAgitador.TabIndex = 2; + this.healthAgitador.Titulo = "Agitador"; + // + // healthSensores + // + this.healthSensores.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.healthSensores.Dock = System.Windows.Forms.DockStyle.Fill; + this.healthSensores.IconText = "⌁"; + this.healthSensores.Location = new System.Drawing.Point(0, 89); + this.healthSensores.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.healthSensores.MinimumSize = new System.Drawing.Size(140, 29); + this.healthSensores.Name = "healthSensores"; + this.healthSensores.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.healthSensores.Saude = 0D; + this.healthSensores.Size = new System.Drawing.Size(163, 30); + this.healthSensores.Status = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.healthSensores.TabIndex = 3; + this.healthSensores.Titulo = "Sensores"; + // + // healthBicos + // + this.healthBicos.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.healthBicos.Dock = System.Windows.Forms.DockStyle.Fill; + this.healthBicos.IconText = "⌄"; + this.healthBicos.Location = new System.Drawing.Point(0, 122); + this.healthBicos.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.healthBicos.MinimumSize = new System.Drawing.Size(140, 29); + this.healthBicos.Name = "healthBicos"; + this.healthBicos.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.healthBicos.Saude = 0D; + this.healthBicos.Size = new System.Drawing.Size(163, 30); + this.healthBicos.Status = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.healthBicos.TabIndex = 4; + this.healthBicos.Titulo = "Bicos"; + // + // healthCamera + // + this.healthCamera.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.healthCamera.Dock = System.Windows.Forms.DockStyle.Fill; + this.healthCamera.IconText = "▣"; + this.healthCamera.Location = new System.Drawing.Point(0, 155); + this.healthCamera.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.healthCamera.MinimumSize = new System.Drawing.Size(140, 29); + this.healthCamera.Name = "healthCamera"; + this.healthCamera.Padding = new System.Windows.Forms.Padding(5, 0, 5, 0); + this.healthCamera.Saude = 0D; + this.healthCamera.Size = new System.Drawing.Size(163, 34); + this.healthCamera.Status = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.healthCamera.TabIndex = 5; + this.healthCamera.Titulo = "Câmera"; + // + // centerLayout + // this.centerLayout.ColumnCount = 1; this.centerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.centerLayout.Controls.Add(this.pnlVideo, 0, 0); this.centerLayout.Controls.Add(this.pnlBicos, 0, 1); this.centerLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.centerLayout.Location = new System.Drawing.Point(183, 0); this.centerLayout.Margin = new System.Windows.Forms.Padding(3, 0, 3, 0); + this.centerLayout.Name = "centerLayout"; this.centerLayout.RowCount = 2; this.centerLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 56F)); this.centerLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 44F)); - - // video + this.centerLayout.Size = new System.Drawing.Size(401, 435); + this.centerLayout.TabIndex = 1; + // + // pnlVideo + // + this.pnlVideo.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlVideo.BackColor = System.Drawing.Color.Transparent; + this.pnlVideo.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlVideo.Controls.Add(this.videoLayout); + this.pnlVideo.CornerRadius = 9; + this.pnlVideo.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlVideo.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlVideo.Location = new System.Drawing.Point(0, 0); + this.pnlVideo.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlVideo.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlVideo.Name = "pnlVideo"; + this.pnlVideo.Padding = new System.Windows.Forms.Padding(7); + this.pnlVideo.Size = new System.Drawing.Size(401, 240); + this.pnlVideo.TabIndex = 0; + // + // videoLayout + // this.videoLayout.ColumnCount = 1; this.videoLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.videoLayout.Controls.Add(this.videoHeaderLayout, 0, 0); this.videoLayout.Controls.Add(this.picVideo, 0, 1); this.videoLayout.Controls.Add(this.cmbTipoFrame, 0, 2); this.videoLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.videoLayout.Location = new System.Drawing.Point(7, 7); + this.videoLayout.Name = "videoLayout"; this.videoLayout.RowCount = 3; this.videoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); this.videoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.videoLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 31F)); - + this.videoLayout.Size = new System.Drawing.Size(387, 226); + this.videoLayout.TabIndex = 0; + // + // videoHeaderLayout + // this.videoHeaderLayout.ColumnCount = 2; this.videoHeaderLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 35F)); this.videoHeaderLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 65F)); - this.videoHeaderLayout.Dock = System.Windows.Forms.DockStyle.Fill; - SetupTitle(this.lblVideoTitulo, "VÍDEO"); - this.lblVideoStatus.Dock = System.Windows.Forms.DockStyle.Fill; - this.lblVideoStatus.Text = "FPS 28 · 6,4 MB/s · Saúde 96%"; - this.lblVideoStatus.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Success; - this.lblVideoStatus.Font = new System.Drawing.Font("Segoe UI", 6.4F); - this.lblVideoStatus.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.videoHeaderLayout.Controls.Add(this.lblVideoTitulo, 0, 0); this.videoHeaderLayout.Controls.Add(this.lblVideoStatus, 1, 0); - - this.picVideo.Dock = System.Windows.Forms.DockStyle.Fill; + this.videoHeaderLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.videoHeaderLayout.Location = new System.Drawing.Point(3, 3); + this.videoHeaderLayout.Name = "videoHeaderLayout"; + this.videoHeaderLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.videoHeaderLayout.Size = new System.Drawing.Size(381, 16); + this.videoHeaderLayout.TabIndex = 0; + // + // lblVideoTitulo + // + this.lblVideoTitulo.AutoEllipsis = true; + this.lblVideoTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblVideoTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblVideoTitulo.Font = new System.Drawing.Font("Segoe UI", 8.2F, System.Drawing.FontStyle.Bold); + this.lblVideoTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblVideoTitulo.Location = new System.Drawing.Point(3, 0); + this.lblVideoTitulo.Name = "lblVideoTitulo"; + this.lblVideoTitulo.Size = new System.Drawing.Size(127, 20); + this.lblVideoTitulo.TabIndex = 0; + this.lblVideoTitulo.Text = "VÍDEO"; + this.lblVideoTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // lblVideoStatus + // + this.lblVideoStatus.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblVideoStatus.Font = new System.Drawing.Font("Segoe UI", 6.4F); + this.lblVideoStatus.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.lblVideoStatus.Location = new System.Drawing.Point(136, 0); + this.lblVideoStatus.Name = "lblVideoStatus"; + this.lblVideoStatus.Size = new System.Drawing.Size(242, 20); + this.lblVideoStatus.TabIndex = 1; + this.lblVideoStatus.Text = "FPS 28 · 6,4 MB/s · Saúde 96%"; + this.lblVideoStatus.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // picVideo + // this.picVideo.BackColor = System.Drawing.Color.Black; this.picVideo.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle; + this.picVideo.Dock = System.Windows.Forms.DockStyle.Fill; + this.picVideo.Location = new System.Drawing.Point(3, 25); + this.picVideo.Name = "picVideo"; + this.picVideo.Size = new System.Drawing.Size(381, 167); this.picVideo.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - - SetupCombo(this.cmbTipoFrame); - this.cmbTipoFrame.Items.AddRange(new object[] { "Overlay", "RGB", "Segmentação", "Debug" }); - - // bicos + this.picVideo.TabIndex = 1; + this.picVideo.TabStop = false; + // + // cmbTipoFrame + // + this.cmbTipoFrame.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.cmbTipoFrame.Dock = System.Windows.Forms.DockStyle.Fill; + this.cmbTipoFrame.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; + this.cmbTipoFrame.FlatStyle = System.Windows.Forms.FlatStyle.Flat; + this.cmbTipoFrame.Font = new System.Drawing.Font("Segoe UI", 7.4F); + this.cmbTipoFrame.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.cmbTipoFrame.Items.AddRange(new object[] { + "Overlay", + "RGB", + "Segmentação", + "Debug"}); + this.cmbTipoFrame.Location = new System.Drawing.Point(0, 196); + this.cmbTipoFrame.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); + this.cmbTipoFrame.Name = "cmbTipoFrame"; + this.cmbTipoFrame.Size = new System.Drawing.Size(387, 20); + this.cmbTipoFrame.TabIndex = 2; + // + // pnlBicos + // + this.pnlBicos.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlBicos.BackColor = System.Drawing.Color.Transparent; + this.pnlBicos.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlBicos.Controls.Add(this.bicosLayout); + this.pnlBicos.CornerRadius = 9; + this.pnlBicos.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlBicos.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlBicos.Location = new System.Drawing.Point(0, 243); + this.pnlBicos.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlBicos.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlBicos.Name = "pnlBicos"; + this.pnlBicos.Padding = new System.Windows.Forms.Padding(7); + this.pnlBicos.Size = new System.Drawing.Size(401, 189); + this.pnlBicos.TabIndex = 1; + // + // bicosLayout + // this.bicosLayout.ColumnCount = 7; - for (int i = 0; i < 7; i++) - this.bicosLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.2857F)); + this.bicosLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.2857F)); + this.bicosLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.2857F)); + this.bicosLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.2857F)); + this.bicosLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.2857F)); + this.bicosLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.2857F)); + this.bicosLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.2857F)); + this.bicosLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 14.2857F)); this.bicosLayout.Controls.Add(this.bicosHeaderLayout, 0, 0); - this.bicosLayout.SetColumnSpan(this.bicosHeaderLayout, 7); this.bicosLayout.Controls.Add(this.nozzleB01, 0, 1); this.bicosLayout.Controls.Add(this.nozzleB02, 1, 1); this.bicosLayout.Controls.Add(this.nozzleB03, 2, 1); @@ -253,32 +697,228 @@ this.bicosLayout.Controls.Add(this.nozzleB06, 5, 1); this.bicosLayout.Controls.Add(this.nozzleB07, 6, 1); this.bicosLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.bicosLayout.Location = new System.Drawing.Point(7, 7); + this.bicosLayout.Name = "bicosLayout"; this.bicosLayout.RowCount = 2; this.bicosLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 27F)); this.bicosLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - + this.bicosLayout.Size = new System.Drawing.Size(387, 175); + this.bicosLayout.TabIndex = 0; + // + // bicosHeaderLayout + // this.bicosHeaderLayout.ColumnCount = 2; + this.bicosLayout.SetColumnSpan(this.bicosHeaderLayout, 7); this.bicosHeaderLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 20F)); this.bicosHeaderLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 80F)); - this.bicosHeaderLayout.Dock = System.Windows.Forms.DockStyle.Fill; - SetupTitle(this.lblBicosTitulo, "BICOS"); - this.lblBicosLegenda.Dock = System.Windows.Forms.DockStyle.Fill; - this.lblBicosLegenda.Text = "Ordem: atuações · vazão instantânea · vazão média · tempo ligado"; - this.lblBicosLegenda.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; - this.lblBicosLegenda.Font = new System.Drawing.Font("Segoe UI", 6.1F); - this.lblBicosLegenda.TextAlign = System.Drawing.ContentAlignment.MiddleRight; this.bicosHeaderLayout.Controls.Add(this.lblBicosTitulo, 0, 0); this.bicosHeaderLayout.Controls.Add(this.lblBicosLegenda, 1, 0); - - SetupNozzle(this.nozzleB01, "B01"); - SetupNozzle(this.nozzleB02, "B02"); - SetupNozzle(this.nozzleB03, "B03"); - SetupNozzle(this.nozzleB04, "B04"); - SetupNozzle(this.nozzleB05, "B05"); - SetupNozzle(this.nozzleB06, "B06"); - SetupNozzle(this.nozzleB07, "B07"); - - // telemetry + this.bicosHeaderLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.bicosHeaderLayout.Location = new System.Drawing.Point(3, 3); + this.bicosHeaderLayout.Name = "bicosHeaderLayout"; + this.bicosHeaderLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.bicosHeaderLayout.Size = new System.Drawing.Size(381, 21); + this.bicosHeaderLayout.TabIndex = 0; + // + // lblBicosTitulo + // + this.lblBicosTitulo.AutoEllipsis = true; + this.lblBicosTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblBicosTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblBicosTitulo.Font = new System.Drawing.Font("Segoe UI", 8.2F, System.Drawing.FontStyle.Bold); + this.lblBicosTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblBicosTitulo.Location = new System.Drawing.Point(3, 0); + this.lblBicosTitulo.Name = "lblBicosTitulo"; + this.lblBicosTitulo.Size = new System.Drawing.Size(70, 21); + this.lblBicosTitulo.TabIndex = 0; + this.lblBicosTitulo.Text = "BICOS"; + this.lblBicosTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // lblBicosLegenda + // + this.lblBicosLegenda.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblBicosLegenda.Font = new System.Drawing.Font("Segoe UI", 6.1F); + this.lblBicosLegenda.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblBicosLegenda.Location = new System.Drawing.Point(79, 0); + this.lblBicosLegenda.Name = "lblBicosLegenda"; + this.lblBicosLegenda.Size = new System.Drawing.Size(299, 21); + this.lblBicosLegenda.TabIndex = 1; + this.lblBicosLegenda.Text = "Ordem: atuações · vazão instantânea · vazão média · tempo ligado"; + this.lblBicosLegenda.TextAlign = System.Drawing.ContentAlignment.MiddleRight; + // + // nozzleB01 + // + this.nozzleB01.AllowCommand = true; + this.nozzleB01.Atuacoes = 0; + this.nozzleB01.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.nozzleB01.Codigo = "B01"; + this.nozzleB01.CommandOn = false; + this.nozzleB01.Cursor = System.Windows.Forms.Cursors.Hand; + this.nozzleB01.Dock = System.Windows.Forms.DockStyle.Fill; + this.nozzleB01.Location = new System.Drawing.Point(2, 29); + this.nozzleB01.Margin = new System.Windows.Forms.Padding(2); + this.nozzleB01.MinimumSize = new System.Drawing.Size(52, 100); + this.nozzleB01.Name = "nozzleB01"; + this.nozzleB01.Padding = new System.Windows.Forms.Padding(4); + this.nozzleB01.ReadOn = false; + this.nozzleB01.Size = new System.Drawing.Size(52, 144); + this.nozzleB01.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.nozzleB01.TabIndex = 1; + this.nozzleB01.TempoLigado = "00:00"; + this.nozzleB01.VazaoInstantanea = 0D; + this.nozzleB01.VazaoMedia = 0D; + // + // nozzleB02 + // + this.nozzleB02.AllowCommand = true; + this.nozzleB02.Atuacoes = 0; + this.nozzleB02.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.nozzleB02.Codigo = "B02"; + this.nozzleB02.CommandOn = false; + this.nozzleB02.Cursor = System.Windows.Forms.Cursors.Hand; + this.nozzleB02.Dock = System.Windows.Forms.DockStyle.Fill; + this.nozzleB02.Location = new System.Drawing.Point(57, 29); + this.nozzleB02.Margin = new System.Windows.Forms.Padding(2); + this.nozzleB02.MinimumSize = new System.Drawing.Size(52, 100); + this.nozzleB02.Name = "nozzleB02"; + this.nozzleB02.Padding = new System.Windows.Forms.Padding(4); + this.nozzleB02.ReadOn = false; + this.nozzleB02.Size = new System.Drawing.Size(52, 144); + this.nozzleB02.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.nozzleB02.TabIndex = 2; + this.nozzleB02.TempoLigado = "00:00"; + this.nozzleB02.VazaoInstantanea = 0D; + this.nozzleB02.VazaoMedia = 0D; + // + // nozzleB03 + // + this.nozzleB03.AllowCommand = true; + this.nozzleB03.Atuacoes = 0; + this.nozzleB03.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.nozzleB03.Codigo = "B03"; + this.nozzleB03.CommandOn = false; + this.nozzleB03.Cursor = System.Windows.Forms.Cursors.Hand; + this.nozzleB03.Dock = System.Windows.Forms.DockStyle.Fill; + this.nozzleB03.Location = new System.Drawing.Point(112, 29); + this.nozzleB03.Margin = new System.Windows.Forms.Padding(2); + this.nozzleB03.MinimumSize = new System.Drawing.Size(52, 100); + this.nozzleB03.Name = "nozzleB03"; + this.nozzleB03.Padding = new System.Windows.Forms.Padding(4); + this.nozzleB03.ReadOn = false; + this.nozzleB03.Size = new System.Drawing.Size(52, 144); + this.nozzleB03.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.nozzleB03.TabIndex = 3; + this.nozzleB03.TempoLigado = "00:00"; + this.nozzleB03.VazaoInstantanea = 0D; + this.nozzleB03.VazaoMedia = 0D; + // + // nozzleB04 + // + this.nozzleB04.AllowCommand = true; + this.nozzleB04.Atuacoes = 0; + this.nozzleB04.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.nozzleB04.Codigo = "B04"; + this.nozzleB04.CommandOn = false; + this.nozzleB04.Cursor = System.Windows.Forms.Cursors.Hand; + this.nozzleB04.Dock = System.Windows.Forms.DockStyle.Fill; + this.nozzleB04.Location = new System.Drawing.Point(167, 29); + this.nozzleB04.Margin = new System.Windows.Forms.Padding(2); + this.nozzleB04.MinimumSize = new System.Drawing.Size(52, 100); + this.nozzleB04.Name = "nozzleB04"; + this.nozzleB04.Padding = new System.Windows.Forms.Padding(4); + this.nozzleB04.ReadOn = false; + this.nozzleB04.Size = new System.Drawing.Size(52, 144); + this.nozzleB04.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.nozzleB04.TabIndex = 4; + this.nozzleB04.TempoLigado = "00:00"; + this.nozzleB04.VazaoInstantanea = 0D; + this.nozzleB04.VazaoMedia = 0D; + // + // nozzleB05 + // + this.nozzleB05.AllowCommand = true; + this.nozzleB05.Atuacoes = 0; + this.nozzleB05.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.nozzleB05.Codigo = "B05"; + this.nozzleB05.CommandOn = false; + this.nozzleB05.Cursor = System.Windows.Forms.Cursors.Hand; + this.nozzleB05.Dock = System.Windows.Forms.DockStyle.Fill; + this.nozzleB05.Location = new System.Drawing.Point(222, 29); + this.nozzleB05.Margin = new System.Windows.Forms.Padding(2); + this.nozzleB05.MinimumSize = new System.Drawing.Size(52, 100); + this.nozzleB05.Name = "nozzleB05"; + this.nozzleB05.Padding = new System.Windows.Forms.Padding(4); + this.nozzleB05.ReadOn = false; + this.nozzleB05.Size = new System.Drawing.Size(52, 144); + this.nozzleB05.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.nozzleB05.TabIndex = 5; + this.nozzleB05.TempoLigado = "00:00"; + this.nozzleB05.VazaoInstantanea = 0D; + this.nozzleB05.VazaoMedia = 0D; + // + // nozzleB06 + // + this.nozzleB06.AllowCommand = true; + this.nozzleB06.Atuacoes = 0; + this.nozzleB06.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.nozzleB06.Codigo = "B06"; + this.nozzleB06.CommandOn = false; + this.nozzleB06.Cursor = System.Windows.Forms.Cursors.Hand; + this.nozzleB06.Dock = System.Windows.Forms.DockStyle.Fill; + this.nozzleB06.Location = new System.Drawing.Point(277, 29); + this.nozzleB06.Margin = new System.Windows.Forms.Padding(2); + this.nozzleB06.MinimumSize = new System.Drawing.Size(52, 100); + this.nozzleB06.Name = "nozzleB06"; + this.nozzleB06.Padding = new System.Windows.Forms.Padding(4); + this.nozzleB06.ReadOn = false; + this.nozzleB06.Size = new System.Drawing.Size(52, 144); + this.nozzleB06.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.nozzleB06.TabIndex = 6; + this.nozzleB06.TempoLigado = "00:00"; + this.nozzleB06.VazaoInstantanea = 0D; + this.nozzleB06.VazaoMedia = 0D; + // + // nozzleB07 + // + this.nozzleB07.AllowCommand = true; + this.nozzleB07.Atuacoes = 0; + this.nozzleB07.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.nozzleB07.Codigo = "B07"; + this.nozzleB07.CommandOn = false; + this.nozzleB07.Cursor = System.Windows.Forms.Cursors.Hand; + this.nozzleB07.Dock = System.Windows.Forms.DockStyle.Fill; + this.nozzleB07.Location = new System.Drawing.Point(332, 29); + this.nozzleB07.Margin = new System.Windows.Forms.Padding(2); + this.nozzleB07.MinimumSize = new System.Drawing.Size(52, 100); + this.nozzleB07.Name = "nozzleB07"; + this.nozzleB07.Padding = new System.Windows.Forms.Padding(4); + this.nozzleB07.ReadOn = false; + this.nozzleB07.Size = new System.Drawing.Size(53, 144); + this.nozzleB07.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.nozzleB07.TabIndex = 7; + this.nozzleB07.TempoLigado = "00:00"; + this.nozzleB07.VazaoInstantanea = 0D; + this.nozzleB07.VazaoMedia = 0D; + // + // pnlTelemetria + // + this.pnlTelemetria.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlTelemetria.BackColor = System.Drawing.Color.Transparent; + this.pnlTelemetria.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlTelemetria.Controls.Add(this.telemetryLayout); + this.pnlTelemetria.CornerRadius = 9; + this.pnlTelemetria.Dock = System.Windows.Forms.DockStyle.Fill; + this.pnlTelemetria.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.pnlTelemetria.Location = new System.Drawing.Point(587, 0); + this.pnlTelemetria.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); + this.pnlTelemetria.MinimumSize = new System.Drawing.Size(30, 25); + this.pnlTelemetria.Name = "pnlTelemetria"; + this.pnlTelemetria.Padding = new System.Windows.Forms.Padding(7); + this.pnlTelemetria.Size = new System.Drawing.Size(197, 432); + this.pnlTelemetria.TabIndex = 2; + // + // telemetryLayout + // this.telemetryLayout.ColumnCount = 1; this.telemetryLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.telemetryLayout.Controls.Add(this.lblTelemetriaTitulo, 0, 0); @@ -294,135 +934,255 @@ this.telemetryLayout.Controls.Add(this.telemetryInfestacao, 0, 10); this.telemetryLayout.Controls.Add(this.telemetryTempoLigado, 0, 11); this.telemetryLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryLayout.Location = new System.Drawing.Point(7, 7); + this.telemetryLayout.Name = "telemetryLayout"; this.telemetryLayout.RowCount = 12; this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 23F)); - for (int i = 1; i < 12; i++) - this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.09F)); - - SetupTitle(this.lblTelemetriaTitulo, "TELEMETRIA"); - SetupTelemetry(this.telemetryReservatorio, "◉", "Volume reservatório", "182,4 L", AgroBase.Forms.IHM.Controls.HmiTheme.Info); - SetupTelemetry(this.telemetryVazaoInstantanea, "≈", "Vazão instantânea", "632 mL/s", AgroBase.Forms.IHM.Controls.HmiTheme.Success); - SetupTelemetry(this.telemetryVazaoMedia, "≈", "Vazão média", "598 mL/s", AgroBase.Forms.IHM.Controls.HmiTheme.Success); - SetupTelemetry(this.telemetryPressaoSensor, "◌", "Pressão sensor", "58,7 psi", AgroBase.Forms.IHM.Controls.HmiTheme.Info); - SetupTelemetry(this.telemetryPressaoBomba, "▣", "Pressão bomba", "59,2 psi", AgroBase.Forms.IHM.Controls.HmiTheme.Info); - SetupTelemetry(this.telemetryAutonomiaM, "▥", "Autonomia", "456,0 m", AgroBase.Forms.IHM.Controls.HmiTheme.Warning); - SetupTelemetry(this.telemetryAutonomiaTempo, "◷", "Autonomia", "00:07:36", AgroBase.Forms.IHM.Controls.HmiTheme.Warning); - SetupTelemetry(this.telemetryVolumeAplicado, "△", "Volume aplicado", "37,6 L", AgroBase.Forms.IHM.Controls.HmiTheme.Info); - SetupTelemetry(this.telemetryLitroMetro, "⌁", "Litro por metro", "0,082 L/m", AgroBase.Forms.IHM.Controls.HmiTheme.Info); - SetupTelemetry(this.telemetryInfestacao, "⌖", "Infestação", "18,4% · Baixa", AgroBase.Forms.IHM.Controls.HmiTheme.Success); - SetupTelemetry(this.telemetryTempoLigado, "◴", "Tempo ativo", "00:18:42", AgroBase.Forms.IHM.Controls.HmiTheme.Manual); - - // UC + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.09F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.09F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.09F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.09F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.09F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.09F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.09F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.09F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.09F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.09F)); + this.telemetryLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 9.09F)); + this.telemetryLayout.Size = new System.Drawing.Size(183, 418); + this.telemetryLayout.TabIndex = 0; + // + // lblTelemetriaTitulo + // + this.lblTelemetriaTitulo.AutoEllipsis = true; + this.lblTelemetriaTitulo.BackColor = System.Drawing.Color.Transparent; + this.lblTelemetriaTitulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblTelemetriaTitulo.Font = new System.Drawing.Font("Segoe UI", 8.2F, System.Drawing.FontStyle.Bold); + this.lblTelemetriaTitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.lblTelemetriaTitulo.Location = new System.Drawing.Point(3, 0); + this.lblTelemetriaTitulo.Name = "lblTelemetriaTitulo"; + this.lblTelemetriaTitulo.Size = new System.Drawing.Size(177, 23); + this.lblTelemetriaTitulo.TabIndex = 0; + this.lblTelemetriaTitulo.Text = "TELEMETRIA"; + this.lblTelemetriaTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // telemetryReservatorio + // + this.telemetryReservatorio.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryReservatorio.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryReservatorio.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryReservatorio.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryReservatorio.IconText = "◉"; + this.telemetryReservatorio.Location = new System.Drawing.Point(0, 23); + this.telemetryReservatorio.Margin = new System.Windows.Forms.Padding(0); + this.telemetryReservatorio.MinimumSize = new System.Drawing.Size(150, 27); + this.telemetryReservatorio.Name = "telemetryReservatorio"; + this.telemetryReservatorio.Padding = new System.Windows.Forms.Padding(4, 0, 4, 1); + this.telemetryReservatorio.Size = new System.Drawing.Size(183, 35); + this.telemetryReservatorio.TabIndex = 1; + this.telemetryReservatorio.Titulo = "Volume reservatório"; + this.telemetryReservatorio.Valor = "182,4 L"; + // + // telemetryVazaoInstantanea + // + this.telemetryVazaoInstantanea.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryVazaoInstantanea.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryVazaoInstantanea.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.telemetryVazaoInstantanea.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryVazaoInstantanea.IconText = "≈"; + this.telemetryVazaoInstantanea.Location = new System.Drawing.Point(0, 58); + this.telemetryVazaoInstantanea.Margin = new System.Windows.Forms.Padding(0); + this.telemetryVazaoInstantanea.MinimumSize = new System.Drawing.Size(150, 27); + this.telemetryVazaoInstantanea.Name = "telemetryVazaoInstantanea"; + this.telemetryVazaoInstantanea.Padding = new System.Windows.Forms.Padding(4, 0, 4, 1); + this.telemetryVazaoInstantanea.Size = new System.Drawing.Size(183, 35); + this.telemetryVazaoInstantanea.TabIndex = 2; + this.telemetryVazaoInstantanea.Titulo = "Vazão instantânea"; + this.telemetryVazaoInstantanea.Valor = "632 mL/s"; + // + // telemetryVazaoMedia + // + this.telemetryVazaoMedia.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryVazaoMedia.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryVazaoMedia.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.telemetryVazaoMedia.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryVazaoMedia.IconText = "≈"; + this.telemetryVazaoMedia.Location = new System.Drawing.Point(0, 93); + this.telemetryVazaoMedia.Margin = new System.Windows.Forms.Padding(0); + this.telemetryVazaoMedia.MinimumSize = new System.Drawing.Size(150, 27); + this.telemetryVazaoMedia.Name = "telemetryVazaoMedia"; + this.telemetryVazaoMedia.Padding = new System.Windows.Forms.Padding(4, 0, 4, 1); + this.telemetryVazaoMedia.Size = new System.Drawing.Size(183, 35); + this.telemetryVazaoMedia.TabIndex = 3; + this.telemetryVazaoMedia.Titulo = "Vazão média"; + this.telemetryVazaoMedia.Valor = "598 mL/s"; + // + // telemetryPressaoSensor + // + this.telemetryPressaoSensor.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryPressaoSensor.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryPressaoSensor.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryPressaoSensor.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryPressaoSensor.IconText = "◌"; + this.telemetryPressaoSensor.Location = new System.Drawing.Point(0, 128); + this.telemetryPressaoSensor.Margin = new System.Windows.Forms.Padding(0); + this.telemetryPressaoSensor.MinimumSize = new System.Drawing.Size(150, 27); + this.telemetryPressaoSensor.Name = "telemetryPressaoSensor"; + this.telemetryPressaoSensor.Padding = new System.Windows.Forms.Padding(4, 0, 4, 1); + this.telemetryPressaoSensor.Size = new System.Drawing.Size(183, 35); + this.telemetryPressaoSensor.TabIndex = 4; + this.telemetryPressaoSensor.Titulo = "Pressão sensor"; + this.telemetryPressaoSensor.Valor = "58,7 psi"; + // + // telemetryPressaoBomba + // + this.telemetryPressaoBomba.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryPressaoBomba.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryPressaoBomba.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryPressaoBomba.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryPressaoBomba.IconText = "▣"; + this.telemetryPressaoBomba.Location = new System.Drawing.Point(0, 163); + this.telemetryPressaoBomba.Margin = new System.Windows.Forms.Padding(0); + this.telemetryPressaoBomba.MinimumSize = new System.Drawing.Size(150, 27); + this.telemetryPressaoBomba.Name = "telemetryPressaoBomba"; + this.telemetryPressaoBomba.Padding = new System.Windows.Forms.Padding(4, 0, 4, 1); + this.telemetryPressaoBomba.Size = new System.Drawing.Size(183, 35); + this.telemetryPressaoBomba.TabIndex = 5; + this.telemetryPressaoBomba.Titulo = "Pressão bomba"; + this.telemetryPressaoBomba.Valor = "59,2 psi"; + // + // telemetryAutonomiaM + // + this.telemetryAutonomiaM.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryAutonomiaM.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryAutonomiaM.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); + this.telemetryAutonomiaM.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryAutonomiaM.IconText = "▥"; + this.telemetryAutonomiaM.Location = new System.Drawing.Point(0, 198); + this.telemetryAutonomiaM.Margin = new System.Windows.Forms.Padding(0); + this.telemetryAutonomiaM.MinimumSize = new System.Drawing.Size(150, 27); + this.telemetryAutonomiaM.Name = "telemetryAutonomiaM"; + this.telemetryAutonomiaM.Padding = new System.Windows.Forms.Padding(4, 0, 4, 1); + this.telemetryAutonomiaM.Size = new System.Drawing.Size(183, 35); + this.telemetryAutonomiaM.TabIndex = 6; + this.telemetryAutonomiaM.Titulo = "Autonomia"; + this.telemetryAutonomiaM.Valor = "456,0 m"; + // + // telemetryAutonomiaTempo + // + this.telemetryAutonomiaTempo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryAutonomiaTempo.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryAutonomiaTempo.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); + this.telemetryAutonomiaTempo.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryAutonomiaTempo.IconText = "◷"; + this.telemetryAutonomiaTempo.Location = new System.Drawing.Point(0, 233); + this.telemetryAutonomiaTempo.Margin = new System.Windows.Forms.Padding(0); + this.telemetryAutonomiaTempo.MinimumSize = new System.Drawing.Size(150, 27); + this.telemetryAutonomiaTempo.Name = "telemetryAutonomiaTempo"; + this.telemetryAutonomiaTempo.Padding = new System.Windows.Forms.Padding(4, 0, 4, 1); + this.telemetryAutonomiaTempo.Size = new System.Drawing.Size(183, 35); + this.telemetryAutonomiaTempo.TabIndex = 7; + this.telemetryAutonomiaTempo.Titulo = "Autonomia"; + this.telemetryAutonomiaTempo.Valor = "00:07:36"; + // + // telemetryVolumeAplicado + // + this.telemetryVolumeAplicado.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryVolumeAplicado.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryVolumeAplicado.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryVolumeAplicado.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryVolumeAplicado.IconText = "△"; + this.telemetryVolumeAplicado.Location = new System.Drawing.Point(0, 268); + this.telemetryVolumeAplicado.Margin = new System.Windows.Forms.Padding(0); + this.telemetryVolumeAplicado.MinimumSize = new System.Drawing.Size(150, 27); + this.telemetryVolumeAplicado.Name = "telemetryVolumeAplicado"; + this.telemetryVolumeAplicado.Padding = new System.Windows.Forms.Padding(4, 0, 4, 1); + this.telemetryVolumeAplicado.Size = new System.Drawing.Size(183, 35); + this.telemetryVolumeAplicado.TabIndex = 8; + this.telemetryVolumeAplicado.Titulo = "Volume aplicado"; + this.telemetryVolumeAplicado.Valor = "37,6 L"; + // + // telemetryLitroMetro + // + this.telemetryLitroMetro.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryLitroMetro.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryLitroMetro.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryLitroMetro.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryLitroMetro.IconText = "⌁"; + this.telemetryLitroMetro.Location = new System.Drawing.Point(0, 303); + this.telemetryLitroMetro.Margin = new System.Windows.Forms.Padding(0); + this.telemetryLitroMetro.MinimumSize = new System.Drawing.Size(150, 27); + this.telemetryLitroMetro.Name = "telemetryLitroMetro"; + this.telemetryLitroMetro.Padding = new System.Windows.Forms.Padding(4, 0, 4, 1); + this.telemetryLitroMetro.Size = new System.Drawing.Size(183, 35); + this.telemetryLitroMetro.TabIndex = 9; + this.telemetryLitroMetro.Titulo = "Litro por metro"; + this.telemetryLitroMetro.Valor = "0,082 L/m"; + // + // telemetryInfestacao + // + this.telemetryInfestacao.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryInfestacao.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryInfestacao.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.telemetryInfestacao.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryInfestacao.IconText = "⌖"; + this.telemetryInfestacao.Location = new System.Drawing.Point(0, 338); + this.telemetryInfestacao.Margin = new System.Windows.Forms.Padding(0); + this.telemetryInfestacao.MinimumSize = new System.Drawing.Size(150, 27); + this.telemetryInfestacao.Name = "telemetryInfestacao"; + this.telemetryInfestacao.Padding = new System.Windows.Forms.Padding(4, 0, 4, 1); + this.telemetryInfestacao.Size = new System.Drawing.Size(183, 35); + this.telemetryInfestacao.TabIndex = 10; + this.telemetryInfestacao.Titulo = "Infestação"; + this.telemetryInfestacao.Valor = "18,4% · Baixa"; + // + // telemetryTempoLigado + // + this.telemetryTempoLigado.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); + this.telemetryTempoLigado.CorIcone = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); + this.telemetryTempoLigado.CorValor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(106)))), ((int)(((byte)(222))))); + this.telemetryTempoLigado.Dock = System.Windows.Forms.DockStyle.Fill; + this.telemetryTempoLigado.IconText = "◴"; + this.telemetryTempoLigado.Location = new System.Drawing.Point(0, 373); + this.telemetryTempoLigado.Margin = new System.Windows.Forms.Padding(0); + this.telemetryTempoLigado.MinimumSize = new System.Drawing.Size(150, 27); + this.telemetryTempoLigado.Name = "telemetryTempoLigado"; + this.telemetryTempoLigado.Padding = new System.Windows.Forms.Padding(4, 0, 4, 1); + this.telemetryTempoLigado.Size = new System.Drawing.Size(183, 45); + this.telemetryTempoLigado.TabIndex = 11; + this.telemetryTempoLigado.Titulo = "Tempo ativo"; + this.telemetryTempoLigado.Valor = "00:18:42"; + // + // ucOperacaoPulverizador + // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; - this.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.Background; + this.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(12)))), ((int)(((byte)(17)))), ((int)(((byte)(20))))); this.Controls.Add(this.rootLayout); this.DoubleBuffered = true; this.Name = "ucOperacaoPulverizador"; this.Size = new System.Drawing.Size(784, 435); - + this.rootLayout.ResumeLayout(false); + this.leftLayout.ResumeLayout(false); + this.pnlBomba.ResumeLayout(false); + this.bombaLayout.ResumeLayout(false); + this.bombaButtonsLayout.ResumeLayout(false); + this.pnlAgitador.ResumeLayout(false); + this.agitadorLayout.ResumeLayout(false); + this.agitadorButtonsLayout.ResumeLayout(false); + this.pnlSaude.ResumeLayout(false); + this.saudeLayout.ResumeLayout(false); + this.centerLayout.ResumeLayout(false); + this.pnlVideo.ResumeLayout(false); + this.videoLayout.ResumeLayout(false); + this.videoHeaderLayout.ResumeLayout(false); ((System.ComponentModel.ISupportInitialize)(this.picVideo)).EndInit(); + this.pnlBicos.ResumeLayout(false); + this.bicosLayout.ResumeLayout(false); + this.bicosHeaderLayout.ResumeLayout(false); + this.pnlTelemetria.ResumeLayout(false); + this.telemetryLayout.ResumeLayout(false); this.ResumeLayout(false); - } - private static void ConfigurePanel(AgroBase.Forms.IHM.Controls.HmiRoundedPanel panel, System.Windows.Forms.Control child) - { - panel.BorderColor = AgroBase.Forms.IHM.Controls.HmiTheme.Border; - panel.Controls.Add(child); - panel.CornerRadius = 9; - panel.Dock = System.Windows.Forms.DockStyle.Fill; - panel.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.Surface; - panel.Margin = new System.Windows.Forms.Padding(0, 0, 0, 3); - panel.Padding = new System.Windows.Forms.Padding(7); - } - - private static void SetupTitle(System.Windows.Forms.Label label, string text) - { - label.Dock = System.Windows.Forms.DockStyle.Fill; - label.BackColor = System.Drawing.Color.Transparent; - label.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; - label.Font = new System.Drawing.Font("Segoe UI", 8.2F, System.Drawing.FontStyle.Bold); - label.Text = text; - label.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; - label.AutoEllipsis = true; - } - - private static void SetupCompact(AgroBase.Forms.IHM.Controls.Operacao.HmiCompactMetricCard card, string title, string value, System.Drawing.Color color) - { - card.Dock = System.Windows.Forms.DockStyle.Fill; - card.Titulo = title; - card.Valor = value; - card.CorValor = color; - card.Margin = new System.Windows.Forms.Padding(2); - card.MinimumSize = System.Drawing.Size.Empty; - card.Padding = new System.Windows.Forms.Padding(0, 0, 0, 2); - } - - private static void SetupTwoButtons(System.Windows.Forms.TableLayoutPanel layout, AgroBase.Forms.IHM.Controls.HmiSidebarButton left, AgroBase.Forms.IHM.Controls.HmiSidebarButton right, string leftText, string rightText) - { - layout.ColumnCount = 2; - layout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - layout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - layout.Controls.Add(left, 0, 0); - layout.Controls.Add(right, 1, 0); - layout.Dock = System.Windows.Forms.DockStyle.Fill; - layout.RowCount = 2; - layout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - layout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 1F)); - - SetupButton(left, leftText, AgroBase.Forms.IHM.Controls.HmiTheme.Success); - SetupButton(right, rightText, AgroBase.Forms.IHM.Controls.HmiTheme.Danger); - } - - private static void SetupButton(AgroBase.Forms.IHM.Controls.HmiSidebarButton button, string text, System.Drawing.Color color) - { - button.Dock = System.Windows.Forms.DockStyle.Fill; - button.Text = text; - button.IconText = string.Empty; - button.AccentColor = color; - button.BorderColor = color; - button.FillColor = AgroBase.Forms.IHM.Controls.HmiTheme.SurfaceRaised; - button.Margin = new System.Windows.Forms.Padding(2); - button.MinimumSize = System.Drawing.Size.Empty; - button.MaximumSize = System.Drawing.Size.Empty; - } - - private static void SetupHealth(AgroBase.Forms.IHM.Controls.Operacao.HmiSprayerModuleHealthRow row, string icon, string title, string health, string status, System.Drawing.Color color) - { - row.Dock = System.Windows.Forms.DockStyle.Fill; - row.IconText = icon; - row.Titulo = title; - row.Saude = health; - row.Status = status; - row.StatusColor = color; - } - - private static void SetupCombo(System.Windows.Forms.ComboBox combo) - { - combo.Dock = System.Windows.Forms.DockStyle.Fill; - combo.DropDownStyle = System.Windows.Forms.ComboBoxStyle.DropDownList; - combo.FlatStyle = System.Windows.Forms.FlatStyle.Flat; - combo.BackColor = AgroBase.Forms.IHM.Controls.HmiTheme.SurfaceRaised; - combo.ForeColor = AgroBase.Forms.IHM.Controls.HmiTheme.Text; - combo.Font = new System.Drawing.Font("Segoe UI", 7.4F); - combo.Margin = new System.Windows.Forms.Padding(0, 1, 0, 1); - } - - private static void SetupNozzle(AgroBase.Forms.IHM.Controls.Operacao.HmiNozzleCard card, string code) - { - card.Dock = System.Windows.Forms.DockStyle.Fill; - card.Codigo = code; - card.AllowCommand = true; - card.Margin = new System.Windows.Forms.Padding(2); - card.MinimumSize = System.Drawing.Size.Empty; - } - - private static void SetupTelemetry(AgroBase.Forms.IHM.Controls.Operacao.HmiSprayerTelemetryRow row, string icon, string title, string value, System.Drawing.Color color) - { - row.Dock = System.Windows.Forms.DockStyle.Fill; - row.IconText = icon; - row.Titulo = title; - row.Valor = value; - row.CorValor = color; } #endregion diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoPulverizador.cs b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoPulverizador.cs index a8c343d01..442339e01 100644 --- a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoPulverizador.cs +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoPulverizador.cs @@ -20,6 +20,7 @@ namespace AgroBase.Forms.IHM.Operacao private bool _controleDescartado; private OperacaoModel op => Variaveis.OperacaoEmAndamento; + private bool ModoManual => (op?.Parametros?.Controle?.ControleManualAcionado ?? false) || (op?.Parametros?.Modo ?? ModoOperacao.NaoDefinido) == ModoOperacao.Manual; private readonly List _bicos = new List(); public IList Bicos @@ -56,6 +57,9 @@ namespace AgroBase.Forms.IHM.Operacao cardPressaoSp.Valor = pressaoSP.ToString("F1"); cardStatusBomba.Valor = bombaLigada ? "Ligada" : "Desligada"; cardStatusBomba.CorValor = bombaLigada ? HmiTheme.Success : HmiTheme.Danger; + + btnLigarBomba.Enabled = ModoManual; + btnDesligarBomba.Enabled = ModoManual; } private void AtualizarDadosAgitador() @@ -66,6 +70,9 @@ namespace AgroBase.Forms.IHM.Operacao cardModoAgitador.Valor = modo.ToString(); cardStatusAgitador.Valor = agitadorLigado ? "Ligado" : "Desligado"; cardStatusAgitador.CorValor = agitadorLigado ? HmiTheme.Success : HmiTheme.Danger; + + btnLigarAgitador.Enabled = ModoManual; + btnDesligarAgitador.Enabled = ModoManual; } private void AtualizarSaudeModulos() @@ -93,12 +100,11 @@ namespace AgroBase.Forms.IHM.Operacao void DefinirSaudeModulo(HmiSprayerModuleHealthRow card, HmiRoundedPanel pnl, double saude, StatusModulo status) { - card.Saude = saude.ToString("F0") + "%"; - card.Status = status.ToString(); - card.StatusColor = FuncoesIHM.CorPorStatusModulo(status); + card.Saude = saude; + card.Status = status; if (pnl != null) - FuncoesIHM.AplicarEstadoPainel(pnl, card.StatusColor); + FuncoesIHM.AplicarEstadoPainel(pnl, FuncoesIHM.CorPorStatusModulo(status)); } DefinirSaudeModulo(healthBomba, pnlBomba, saudeBomba?.saude ?? 0, saudeBomba?.status ?? StatusModulo.Desconectado); diff --git a/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoPulverizador.resx b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoPulverizador.resx new file mode 100644 index 000000000..1af7de150 --- /dev/null +++ b/AgroBase/AgroBase/Forms/IHM/Operacao/ucOperacaoPulverizador.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/frmAjustes.Designer.cs b/AgroBase/AgroBase/Forms/IHM/frmAjustes.Designer.cs index d1a1bc712..8c76c2f33 100644 --- a/AgroBase/AgroBase/Forms/IHM/frmAjustes.Designer.cs +++ b/AgroBase/AgroBase/Forms/IHM/frmAjustes.Designer.cs @@ -1,4 +1,7 @@ -using System.Windows.Forms; +using AgroBase.Forms.IHM.Controls; +using Newtonsoft.Json.Linq; +using System.Windows.Forms; +using System.Windows.Forms.DataVisualization.Charting; namespace AgroBase.Forms.IHM { @@ -51,32 +54,32 @@ namespace AgroBase.Forms.IHM this.redeCan = new AgroBase.Forms.IHM.Controls.HmiNetworkEditor(); this.rightLayout = new System.Windows.Forms.TableLayoutPanel(); this.pnlGeometria = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); + this.geometriaLayout = new System.Windows.Forms.TableLayoutPanel(); + this.lblGeometria = new System.Windows.Forms.Label(); + this.fldLeverFrontal = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); + this.fldLeverLateral = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); + this.fldEntreEixos = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); + this.fldAnguloFrontal = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); + this.fldAnguloLateral = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); this.pnlBateria = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); + this.bateriaLayout = new System.Windows.Forms.TableLayoutPanel(); + this.lblBateria = new System.Windows.Forms.Label(); + this.fldTensaoMin = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); + this.fldTensaoMax = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); + this.fldCorrenteMax = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); + this.fldPercentualTensaoMin = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); this.pnlReservatorio = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); + this.reservatorioLayout = new System.Windows.Forms.TableLayoutPanel(); + this.lblReservatorio = new System.Windows.Forms.Label(); + this.fldCapacidadeReservatorio = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); + this.fldReservatorioMin = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); + this.fldReservatorioCritico = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); this.pnlFooter = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.footerLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblAlteracoes = new System.Windows.Forms.Label(); this.btnRestaurar = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); this.btnSalvar = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); this.btnTestarComunicacao = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); - this.geometriaLayout = new System.Windows.Forms.TableLayoutPanel(); - this.fldLeverFrontal = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); - this.fldLeverLateral = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); - this.fldEntreEixos = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); - this.fldAnguloFrontal = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); - this.fldAnguloLateral = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); - this.lblGeometria = new System.Windows.Forms.Label(); - this.bateriaLayout = new System.Windows.Forms.TableLayoutPanel(); - this.fldTensaoMin = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); - this.fldTensaoMax = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); - this.fldCorrenteMax = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); - this.fldPercentualTensaoMin = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); - this.lblBateria = new System.Windows.Forms.Label(); - this.reservatorioLayout = new System.Windows.Forms.TableLayoutPanel(); - this.fldCapacidadeReservatorio = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); - this.fldReservatorioMin = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); - this.fldReservatorioCritico = new AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField(); - this.lblReservatorio = new System.Windows.Forms.Label(); this.rootLayout.SuspendLayout(); this.pnlHeader.SuspendLayout(); this.headerLayout.SuspendLayout(); @@ -89,11 +92,14 @@ namespace AgroBase.Forms.IHM this.pnlRedes.SuspendLayout(); this.redesLayout.SuspendLayout(); this.rightLayout.SuspendLayout(); + this.pnlGeometria.SuspendLayout(); + this.geometriaLayout.SuspendLayout(); + this.pnlBateria.SuspendLayout(); + this.bateriaLayout.SuspendLayout(); + this.pnlReservatorio.SuspendLayout(); + this.reservatorioLayout.SuspendLayout(); this.pnlFooter.SuspendLayout(); this.footerLayout.SuspendLayout(); - this.geometriaLayout.SuspendLayout(); - this.bateriaLayout.SuspendLayout(); - this.reservatorioLayout.SuspendLayout(); this.SuspendLayout(); // // rootLayout @@ -137,9 +143,9 @@ namespace AgroBase.Forms.IHM // this.headerLayout.BackColor = System.Drawing.Color.Transparent; this.headerLayout.ColumnCount = 3; - this.headerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 102F)); + this.headerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 112F)); this.headerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.headerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 176F)); + this.headerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 165F)); this.headerLayout.Controls.Add(this.btnVoltar, 0, 0); this.headerLayout.Controls.Add(this.headerTextLayout, 1, 0); this.headerLayout.Controls.Add(this.pnlRover, 2, 0); @@ -155,16 +161,17 @@ namespace AgroBase.Forms.IHM // this.btnVoltar.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); this.btnVoltar.BackColor = System.Drawing.Color.Transparent; - this.btnVoltar.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.btnVoltar.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(57)))), ((int)(((byte)(119)))), ((int)(((byte)(151))))); this.btnVoltar.Cursor = System.Windows.Forms.Cursors.Hand; this.btnVoltar.Dock = System.Windows.Forms.DockStyle.Fill; this.btnVoltar.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); this.btnVoltar.IconText = "←"; - this.btnVoltar.Location = new System.Drawing.Point(0, 2); - this.btnVoltar.Margin = new System.Windows.Forms.Padding(0, 2, 8, 2); - this.btnVoltar.MinimumSize = new System.Drawing.Size(102, 36); + this.btnVoltar.Location = new System.Drawing.Point(0, 4); + this.btnVoltar.Margin = new System.Windows.Forms.Padding(0, 4, 8, 4); + this.btnVoltar.MaximumSize = new System.Drawing.Size(112, 44); + this.btnVoltar.MinimumSize = new System.Drawing.Size(96, 36); this.btnVoltar.Name = "btnVoltar"; - this.btnVoltar.Size = new System.Drawing.Size(102, 42); + this.btnVoltar.Size = new System.Drawing.Size(104, 38); this.btnVoltar.TabIndex = 0; this.btnVoltar.Text = "VOLTAR"; // @@ -176,13 +183,13 @@ namespace AgroBase.Forms.IHM this.headerTextLayout.Controls.Add(this.lblTitulo, 0, 0); this.headerTextLayout.Controls.Add(this.lblSubtitulo, 0, 1); this.headerTextLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.headerTextLayout.Location = new System.Drawing.Point(102, 0); - this.headerTextLayout.Margin = new System.Windows.Forms.Padding(0); + this.headerTextLayout.Location = new System.Drawing.Point(122, 0); + this.headerTextLayout.Margin = new System.Windows.Forms.Padding(10, 0, 5, 0); this.headerTextLayout.Name = "headerTextLayout"; this.headerTextLayout.RowCount = 2; this.headerTextLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 60F)); this.headerTextLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 40F)); - this.headerTextLayout.Size = new System.Drawing.Size(486, 46); + this.headerTextLayout.Size = new System.Drawing.Size(472, 46); this.headerTextLayout.TabIndex = 1; // // lblTitulo @@ -194,7 +201,7 @@ namespace AgroBase.Forms.IHM this.lblTitulo.Location = new System.Drawing.Point(0, 0); this.lblTitulo.Margin = new System.Windows.Forms.Padding(0); this.lblTitulo.Name = "lblTitulo"; - this.lblTitulo.Size = new System.Drawing.Size(486, 27); + this.lblTitulo.Size = new System.Drawing.Size(472, 27); this.lblTitulo.TabIndex = 0; this.lblTitulo.Text = "AJUSTES DO EQUIPAMENTO"; this.lblTitulo.TextAlign = System.Drawing.ContentAlignment.BottomLeft; @@ -208,7 +215,7 @@ namespace AgroBase.Forms.IHM this.lblSubtitulo.Location = new System.Drawing.Point(0, 27); this.lblSubtitulo.Margin = new System.Windows.Forms.Padding(0); this.lblSubtitulo.Name = "lblSubtitulo"; - this.lblSubtitulo.Size = new System.Drawing.Size(486, 19); + this.lblSubtitulo.Size = new System.Drawing.Size(472, 19); this.lblSubtitulo.TabIndex = 1; this.lblSubtitulo.Text = "Configurações físicas, câmeras e comunicação do rover"; // @@ -221,12 +228,12 @@ namespace AgroBase.Forms.IHM this.pnlRover.CornerRadius = 9; this.pnlRover.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlRover.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(18)))), ((int)(((byte)(58)))), ((int)(((byte)(46))))); - this.pnlRover.Location = new System.Drawing.Point(593, 0); + this.pnlRover.Location = new System.Drawing.Point(604, 0); this.pnlRover.Margin = new System.Windows.Forms.Padding(5, 0, 0, 0); this.pnlRover.MinimumSize = new System.Drawing.Size(30, 30); this.pnlRover.Name = "pnlRover"; this.pnlRover.Padding = new System.Windows.Forms.Padding(8); - this.pnlRover.Size = new System.Drawing.Size(171, 46); + this.pnlRover.Size = new System.Drawing.Size(160, 46); this.pnlRover.TabIndex = 2; // // lblRover @@ -237,7 +244,7 @@ namespace AgroBase.Forms.IHM this.lblRover.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); this.lblRover.Location = new System.Drawing.Point(8, 8); this.lblRover.Name = "lblRover"; - this.lblRover.Size = new System.Drawing.Size(155, 30); + this.lblRover.Size = new System.Drawing.Size(144, 30); this.lblRover.TabIndex = 0; this.lblRover.Text = "ROVER 01\r\nConfiguração local"; this.lblRover.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; @@ -290,22 +297,18 @@ namespace AgroBase.Forms.IHM this.pnlCameras.MinimumSize = new System.Drawing.Size(30, 30); this.pnlCameras.Name = "pnlCameras"; this.pnlCameras.Padding = new System.Windows.Forms.Padding(10, 6, 10, 6); - this.pnlCameras.Size = new System.Drawing.Size(388, 258); + this.pnlCameras.Size = new System.Drawing.Size(388, 281); this.pnlCameras.TabIndex = 0; // // camerasLayout // this.camerasLayout.BackColor = System.Drawing.Color.Transparent; this.camerasLayout.ColumnCount = 2; - this.camerasLayout.ColumnStyles.Clear(); this.camerasLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.camerasLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 140F)); this.camerasLayout.Controls.Add(this.lblCameras, 0, 0); - this.camerasLayout.SetColumnSpan(this.lblCameras, 2); this.camerasLayout.Controls.Add(this.cameraFrontal, 0, 1); - this.camerasLayout.SetColumnSpan(this.cameraFrontal, 2); this.camerasLayout.Controls.Add(this.cameraErvas, 0, 2); - this.camerasLayout.SetColumnSpan(this.cameraErvas, 2); this.camerasLayout.Controls.Add(this.btnAtualizarCameras, 1, 3); this.camerasLayout.Dock = System.Windows.Forms.DockStyle.Fill; this.camerasLayout.Location = new System.Drawing.Point(10, 6); @@ -316,12 +319,13 @@ namespace AgroBase.Forms.IHM this.camerasLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 102F)); this.camerasLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 102F)); this.camerasLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.camerasLayout.Size = new System.Drawing.Size(368, 246); + this.camerasLayout.Size = new System.Drawing.Size(368, 269); this.camerasLayout.TabIndex = 0; // // lblCameras // this.lblCameras.BackColor = System.Drawing.Color.Transparent; + this.camerasLayout.SetColumnSpan(this.lblCameras, 2); this.lblCameras.Dock = System.Windows.Forms.DockStyle.Fill; this.lblCameras.Font = new System.Drawing.Font("Segoe UI", 10F, System.Drawing.FontStyle.Bold); this.lblCameras.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); @@ -336,6 +340,7 @@ namespace AgroBase.Forms.IHM // cameraFrontal // this.cameraFrontal.BackColor = System.Drawing.Color.Transparent; + this.camerasLayout.SetColumnSpan(this.cameraFrontal, 2); this.cameraFrontal.Dock = System.Windows.Forms.DockStyle.Fill; this.cameraFrontal.Location = new System.Drawing.Point(0, 25); this.cameraFrontal.Margin = new System.Windows.Forms.Padding(0, 1, 0, 2); @@ -352,8 +357,9 @@ namespace AgroBase.Forms.IHM // cameraErvas // this.cameraErvas.BackColor = System.Drawing.Color.Transparent; + this.camerasLayout.SetColumnSpan(this.cameraErvas, 2); this.cameraErvas.Dock = System.Windows.Forms.DockStyle.Fill; - this.cameraErvas.Location = new System.Drawing.Point(0, 118); + this.cameraErvas.Location = new System.Drawing.Point(0, 127); this.cameraErvas.Margin = new System.Windows.Forms.Padding(0, 1, 0, 2); this.cameraErvas.MinimumSize = new System.Drawing.Size(300, 100); this.cameraErvas.Name = "cameraErvas"; @@ -369,16 +375,17 @@ namespace AgroBase.Forms.IHM // this.btnAtualizarCameras.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); this.btnAtualizarCameras.BackColor = System.Drawing.Color.Transparent; - this.btnAtualizarCameras.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.btnAtualizarCameras.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(57)))), ((int)(((byte)(111)))), ((int)(((byte)(137))))); this.btnAtualizarCameras.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnAtualizarCameras.Dock = System.Windows.Forms.DockStyle.Fill; - this.btnAtualizarCameras.Anchor = System.Windows.Forms.AnchorStyles.None; + this.btnAtualizarCameras.Dock = System.Windows.Forms.DockStyle.Left; this.btnAtualizarCameras.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); this.btnAtualizarCameras.IconText = "↻"; - this.btnAtualizarCameras.Location = new System.Drawing.Point(0, 212); - this.btnAtualizarCameras.Margin = new System.Windows.Forms.Padding(4, 3, 0, 0); - this.btnAtualizarCameras.MinimumSize = System.Drawing.Size.Empty; + this.btnAtualizarCameras.Location = new System.Drawing.Point(228, 230); + this.btnAtualizarCameras.Margin = new System.Windows.Forms.Padding(0, 2, 0, 0); + this.btnAtualizarCameras.MaximumSize = new System.Drawing.Size(142, 34); + this.btnAtualizarCameras.MinimumSize = new System.Drawing.Size(110, 32); this.btnAtualizarCameras.Name = "btnAtualizarCameras"; + this.btnAtualizarCameras.Size = new System.Drawing.Size(140, 34); this.btnAtualizarCameras.TabIndex = 3; this.btnAtualizarCameras.Text = "ATUALIZAR"; // @@ -391,12 +398,12 @@ namespace AgroBase.Forms.IHM this.pnlRedes.CornerRadius = 10; this.pnlRedes.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlRedes.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); - this.pnlRedes.Location = new System.Drawing.Point(0, 262); + this.pnlRedes.Location = new System.Drawing.Point(0, 285); this.pnlRedes.Margin = new System.Windows.Forms.Padding(0); this.pnlRedes.MinimumSize = new System.Drawing.Size(30, 30); this.pnlRedes.Name = "pnlRedes"; this.pnlRedes.Padding = new System.Windows.Forms.Padding(10, 6, 10, 6); - this.pnlRedes.Size = new System.Drawing.Size(388, 199); + this.pnlRedes.Size = new System.Drawing.Size(388, 176); this.pnlRedes.TabIndex = 1; // // redesLayout @@ -415,7 +422,7 @@ namespace AgroBase.Forms.IHM this.redesLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F)); this.redesLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); this.redesLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.redesLayout.Size = new System.Drawing.Size(368, 187); + this.redesLayout.Size = new System.Drawing.Size(368, 164); this.redesLayout.TabIndex = 0; // // lblRedes @@ -442,9 +449,9 @@ namespace AgroBase.Forms.IHM this.redeHaLow.Location = new System.Drawing.Point(0, 25); this.redeHaLow.Margin = new System.Windows.Forms.Padding(0, 1, 0, 2); this.redeHaLow.Mask = ""; - this.redeHaLow.MinimumSize = new System.Drawing.Size(260, 78); + this.redeHaLow.MinimumSize = new System.Drawing.Size(250, 63); this.redeHaLow.Name = "redeHaLow"; - this.redeHaLow.Size = new System.Drawing.Size(368, 78); + this.redeHaLow.Size = new System.Drawing.Size(368, 67); this.redeHaLow.Status = "Não testada"; this.redeHaLow.StatusColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); this.redeHaLow.TabIndex = 1; @@ -457,12 +464,12 @@ namespace AgroBase.Forms.IHM this.redeCan.Gateway = ""; this.redeCan.InterfaceName = ""; this.redeCan.Ip = ""; - this.redeCan.Location = new System.Drawing.Point(0, 106); + this.redeCan.Location = new System.Drawing.Point(0, 95); this.redeCan.Margin = new System.Windows.Forms.Padding(0, 1, 0, 0); this.redeCan.Mask = ""; - this.redeCan.MinimumSize = new System.Drawing.Size(260, 78); + this.redeCan.MinimumSize = new System.Drawing.Size(250, 63); this.redeCan.Name = "redeCan"; - this.redeCan.Size = new System.Drawing.Size(368, 81); + this.redeCan.Size = new System.Drawing.Size(368, 69); this.redeCan.Status = "Não testada"; this.redeCan.StatusColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); this.redeCan.TabIndex = 2; @@ -489,43 +496,400 @@ namespace AgroBase.Forms.IHM // // pnlGeometria // - this.pnlGeometria.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlGeometria.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(106)))), ((int)(((byte)(222))))); this.pnlGeometria.BackColor = System.Drawing.Color.Transparent; - this.pnlGeometria.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlGeometria.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(106)))), ((int)(((byte)(222))))); + this.pnlGeometria.Controls.Add(this.geometriaLayout); + this.pnlGeometria.CornerRadius = 10; + this.pnlGeometria.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlGeometria.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); - this.pnlGeometria.Location = new System.Drawing.Point(3, 3); - this.pnlGeometria.MinimumSize = new System.Drawing.Size(30, 30); + this.pnlGeometria.Location = new System.Drawing.Point(0, 0); + this.pnlGeometria.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4); + this.pnlGeometria.MinimumSize = new System.Drawing.Size(30, 25); this.pnlGeometria.Name = "pnlGeometria"; - this.pnlGeometria.Padding = new System.Windows.Forms.Padding(12); - this.pnlGeometria.Size = new System.Drawing.Size(150, 150); + this.pnlGeometria.Padding = new System.Windows.Forms.Padding(10, 6, 10, 6); + this.pnlGeometria.Size = new System.Drawing.Size(388, 152); this.pnlGeometria.TabIndex = 0; // + // geometriaLayout + // + this.geometriaLayout.BackColor = System.Drawing.Color.Transparent; + this.geometriaLayout.ColumnCount = 3; + this.geometriaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); + this.geometriaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); + this.geometriaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.34F)); + this.geometriaLayout.Controls.Add(this.lblGeometria, 0, 0); + this.geometriaLayout.Controls.Add(this.fldLeverFrontal, 0, 1); + this.geometriaLayout.Controls.Add(this.fldLeverLateral, 1, 1); + this.geometriaLayout.Controls.Add(this.fldEntreEixos, 2, 1); + this.geometriaLayout.Controls.Add(this.fldAnguloFrontal, 0, 2); + this.geometriaLayout.Controls.Add(this.fldAnguloLateral, 1, 2); + this.geometriaLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.geometriaLayout.Location = new System.Drawing.Point(10, 6); + this.geometriaLayout.Margin = new System.Windows.Forms.Padding(0); + this.geometriaLayout.Name = "geometriaLayout"; + this.geometriaLayout.RowCount = 3; + this.geometriaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F)); + this.geometriaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.geometriaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.geometriaLayout.Size = new System.Drawing.Size(368, 140); + this.geometriaLayout.TabIndex = 0; + // + // lblGeometria + // + this.lblGeometria.BackColor = System.Drawing.Color.Transparent; + this.geometriaLayout.SetColumnSpan(this.lblGeometria, 3); + this.lblGeometria.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblGeometria.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); + this.lblGeometria.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(155)))), ((int)(((byte)(106)))), ((int)(((byte)(222))))); + this.lblGeometria.Location = new System.Drawing.Point(0, 0); + this.lblGeometria.Margin = new System.Windows.Forms.Padding(0); + this.lblGeometria.Name = "lblGeometria"; + this.lblGeometria.Size = new System.Drawing.Size(368, 24); + this.lblGeometria.TabIndex = 0; + this.lblGeometria.Text = "▌ GEOMETRIA"; + this.lblGeometria.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // fldLeverFrontal + // + this.fldLeverFrontal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.fldLeverFrontal.DecimalPlaces = 1; + this.fldLeverFrontal.Dock = System.Windows.Forms.DockStyle.Fill; + this.fldLeverFrontal.Location = new System.Drawing.Point(2, 26); + this.fldLeverFrontal.Margin = new System.Windows.Forms.Padding(2, 2, 3, 3); + this.fldLeverFrontal.Maximum = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + this.fldLeverFrontal.Minimum = new decimal(new int[] { + 1000, + 0, + 0, + -2147483648}); + this.fldLeverFrontal.MinimumSize = new System.Drawing.Size(0, 48); + this.fldLeverFrontal.Name = "fldLeverFrontal"; + this.fldLeverFrontal.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.fldLeverFrontal.Size = new System.Drawing.Size(117, 53); + this.fldLeverFrontal.TabIndex = 0; + this.fldLeverFrontal.Titulo = "Lever arm frontal"; + this.fldLeverFrontal.Unidade = "cm"; + // + // fldLeverLateral + // + this.fldLeverLateral.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.fldLeverLateral.DecimalPlaces = 1; + this.fldLeverLateral.Dock = System.Windows.Forms.DockStyle.Fill; + this.fldLeverLateral.Location = new System.Drawing.Point(125, 26); + this.fldLeverLateral.Margin = new System.Windows.Forms.Padding(3, 2, 3, 3); + this.fldLeverLateral.Maximum = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + this.fldLeverLateral.Minimum = new decimal(new int[] { + 1000, + 0, + 0, + -2147483648}); + this.fldLeverLateral.MinimumSize = new System.Drawing.Size(0, 48); + this.fldLeverLateral.Name = "fldLeverLateral"; + this.fldLeverLateral.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.fldLeverLateral.Size = new System.Drawing.Size(116, 53); + this.fldLeverLateral.TabIndex = 1; + this.fldLeverLateral.Titulo = "Lever arm lateral"; + this.fldLeverLateral.Unidade = "cm"; + // + // fldEntreEixos + // + this.fldEntreEixos.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.fldEntreEixos.DecimalPlaces = 1; + this.fldEntreEixos.Dock = System.Windows.Forms.DockStyle.Fill; + this.fldEntreEixos.Location = new System.Drawing.Point(247, 26); + this.fldEntreEixos.Margin = new System.Windows.Forms.Padding(3, 2, 2, 3); + this.fldEntreEixos.Maximum = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + this.fldEntreEixos.MinimumSize = new System.Drawing.Size(0, 48); + this.fldEntreEixos.Name = "fldEntreEixos"; + this.fldEntreEixos.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.fldEntreEixos.Size = new System.Drawing.Size(119, 53); + this.fldEntreEixos.TabIndex = 2; + this.fldEntreEixos.Titulo = "Distância entre eixos"; + this.fldEntreEixos.Unidade = "cm"; + // + // fldAnguloFrontal + // + this.fldAnguloFrontal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.fldAnguloFrontal.DecimalPlaces = 1; + this.fldAnguloFrontal.Dock = System.Windows.Forms.DockStyle.Fill; + this.fldAnguloFrontal.Location = new System.Drawing.Point(2, 84); + this.fldAnguloFrontal.Margin = new System.Windows.Forms.Padding(2, 2, 3, 2); + this.fldAnguloFrontal.Maximum = new decimal(new int[] { + 90, + 0, + 0, + 0}); + this.fldAnguloFrontal.MinimumSize = new System.Drawing.Size(0, 48); + this.fldAnguloFrontal.Name = "fldAnguloFrontal"; + this.fldAnguloFrontal.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.fldAnguloFrontal.Size = new System.Drawing.Size(117, 54); + this.fldAnguloFrontal.TabIndex = 3; + this.fldAnguloFrontal.Titulo = "Ângulo máx. frontal"; + this.fldAnguloFrontal.Unidade = "°"; + // + // fldAnguloLateral + // + this.fldAnguloLateral.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.fldAnguloLateral.DecimalPlaces = 1; + this.fldAnguloLateral.Dock = System.Windows.Forms.DockStyle.Fill; + this.fldAnguloLateral.Location = new System.Drawing.Point(125, 84); + this.fldAnguloLateral.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); + this.fldAnguloLateral.Maximum = new decimal(new int[] { + 90, + 0, + 0, + 0}); + this.fldAnguloLateral.MinimumSize = new System.Drawing.Size(0, 48); + this.fldAnguloLateral.Name = "fldAnguloLateral"; + this.fldAnguloLateral.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.fldAnguloLateral.Size = new System.Drawing.Size(116, 54); + this.fldAnguloLateral.TabIndex = 4; + this.fldAnguloLateral.Titulo = "Ângulo máx. lateral"; + this.fldAnguloLateral.Unidade = "°"; + // // pnlBateria // this.pnlBateria.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); this.pnlBateria.BackColor = System.Drawing.Color.Transparent; - this.pnlBateria.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlBateria.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlBateria.Controls.Add(this.bateriaLayout); + this.pnlBateria.CornerRadius = 10; + this.pnlBateria.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlBateria.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); - this.pnlBateria.Location = new System.Drawing.Point(3, 159); - this.pnlBateria.MinimumSize = new System.Drawing.Size(30, 30); + this.pnlBateria.Location = new System.Drawing.Point(0, 156); + this.pnlBateria.Margin = new System.Windows.Forms.Padding(0, 0, 0, 4); + this.pnlBateria.MinimumSize = new System.Drawing.Size(30, 25); this.pnlBateria.Name = "pnlBateria"; - this.pnlBateria.Padding = new System.Windows.Forms.Padding(12); - this.pnlBateria.Size = new System.Drawing.Size(150, 146); + this.pnlBateria.Padding = new System.Windows.Forms.Padding(10, 6, 10, 6); + this.pnlBateria.Size = new System.Drawing.Size(388, 148); this.pnlBateria.TabIndex = 1; // + // bateriaLayout + // + this.bateriaLayout.BackColor = System.Drawing.Color.Transparent; + this.bateriaLayout.ColumnCount = 3; + this.bateriaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); + this.bateriaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); + this.bateriaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.34F)); + this.bateriaLayout.Controls.Add(this.lblBateria, 0, 0); + this.bateriaLayout.Controls.Add(this.fldTensaoMin, 0, 1); + this.bateriaLayout.Controls.Add(this.fldTensaoMax, 1, 1); + this.bateriaLayout.Controls.Add(this.fldCorrenteMax, 2, 1); + this.bateriaLayout.Controls.Add(this.fldPercentualTensaoMin, 0, 2); + this.bateriaLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.bateriaLayout.Location = new System.Drawing.Point(10, 6); + this.bateriaLayout.Margin = new System.Windows.Forms.Padding(0); + this.bateriaLayout.Name = "bateriaLayout"; + this.bateriaLayout.RowCount = 3; + this.bateriaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F)); + this.bateriaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.bateriaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.bateriaLayout.Size = new System.Drawing.Size(368, 136); + this.bateriaLayout.TabIndex = 0; + // + // lblBateria + // + this.lblBateria.BackColor = System.Drawing.Color.Transparent; + this.bateriaLayout.SetColumnSpan(this.lblBateria, 3); + this.lblBateria.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblBateria.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); + this.lblBateria.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.lblBateria.Location = new System.Drawing.Point(0, 0); + this.lblBateria.Margin = new System.Windows.Forms.Padding(0); + this.lblBateria.Name = "lblBateria"; + this.lblBateria.Size = new System.Drawing.Size(368, 24); + this.lblBateria.TabIndex = 0; + this.lblBateria.Text = "▌ BATERIA"; + this.lblBateria.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // fldTensaoMin + // + this.fldTensaoMin.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.fldTensaoMin.DecimalPlaces = 1; + this.fldTensaoMin.Dock = System.Windows.Forms.DockStyle.Fill; + this.fldTensaoMin.Increment = new decimal(new int[] { + 1, + 0, + 0, + 65536}); + this.fldTensaoMin.Location = new System.Drawing.Point(2, 26); + this.fldTensaoMin.Margin = new System.Windows.Forms.Padding(2, 2, 3, 3); + this.fldTensaoMin.MinimumSize = new System.Drawing.Size(0, 48); + this.fldTensaoMin.Name = "fldTensaoMin"; + this.fldTensaoMin.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.fldTensaoMin.Size = new System.Drawing.Size(117, 51); + this.fldTensaoMin.TabIndex = 0; + this.fldTensaoMin.Titulo = "Tensão mínima"; + this.fldTensaoMin.Unidade = "V"; + // + // fldTensaoMax + // + this.fldTensaoMax.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.fldTensaoMax.DecimalPlaces = 1; + this.fldTensaoMax.Dock = System.Windows.Forms.DockStyle.Fill; + this.fldTensaoMax.Increment = new decimal(new int[] { + 1, + 0, + 0, + 65536}); + this.fldTensaoMax.Location = new System.Drawing.Point(125, 26); + this.fldTensaoMax.Margin = new System.Windows.Forms.Padding(3, 2, 3, 3); + this.fldTensaoMax.MinimumSize = new System.Drawing.Size(0, 48); + this.fldTensaoMax.Name = "fldTensaoMax"; + this.fldTensaoMax.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.fldTensaoMax.Size = new System.Drawing.Size(116, 51); + this.fldTensaoMax.TabIndex = 1; + this.fldTensaoMax.Titulo = "Tensão máxima"; + this.fldTensaoMax.Unidade = "V"; + // + // fldCorrenteMax + // + this.fldCorrenteMax.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.fldCorrenteMax.DecimalPlaces = 1; + this.fldCorrenteMax.Dock = System.Windows.Forms.DockStyle.Fill; + this.fldCorrenteMax.Location = new System.Drawing.Point(247, 26); + this.fldCorrenteMax.Margin = new System.Windows.Forms.Padding(3, 2, 2, 3); + this.fldCorrenteMax.Maximum = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + this.fldCorrenteMax.MinimumSize = new System.Drawing.Size(0, 48); + this.fldCorrenteMax.Name = "fldCorrenteMax"; + this.fldCorrenteMax.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.fldCorrenteMax.Size = new System.Drawing.Size(119, 51); + this.fldCorrenteMax.TabIndex = 2; + this.fldCorrenteMax.Titulo = "Corrente máxima"; + this.fldCorrenteMax.Unidade = "A"; + // + // fldPercentualTensaoMin + // + this.fldPercentualTensaoMin.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.fldPercentualTensaoMin.Dock = System.Windows.Forms.DockStyle.Fill; + this.fldPercentualTensaoMin.Location = new System.Drawing.Point(2, 82); + this.fldPercentualTensaoMin.Margin = new System.Windows.Forms.Padding(2, 2, 3, 2); + this.fldPercentualTensaoMin.MinimumSize = new System.Drawing.Size(0, 48); + this.fldPercentualTensaoMin.Name = "fldPercentualTensaoMin"; + this.fldPercentualTensaoMin.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.fldPercentualTensaoMin.Size = new System.Drawing.Size(117, 52); + this.fldPercentualTensaoMin.TabIndex = 3; + this.fldPercentualTensaoMin.Titulo = "Tensão mínima"; + this.fldPercentualTensaoMin.Unidade = "%"; + // // pnlReservatorio // - this.pnlReservatorio.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.pnlReservatorio.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); this.pnlReservatorio.BackColor = System.Drawing.Color.Transparent; - this.pnlReservatorio.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlReservatorio.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); + this.pnlReservatorio.Controls.Add(this.reservatorioLayout); + this.pnlReservatorio.CornerRadius = 10; + this.pnlReservatorio.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlReservatorio.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); - this.pnlReservatorio.Location = new System.Drawing.Point(3, 311); - this.pnlReservatorio.MinimumSize = new System.Drawing.Size(30, 30); + this.pnlReservatorio.Location = new System.Drawing.Point(0, 308); + this.pnlReservatorio.Margin = new System.Windows.Forms.Padding(0); + this.pnlReservatorio.MinimumSize = new System.Drawing.Size(30, 25); this.pnlReservatorio.Name = "pnlReservatorio"; - this.pnlReservatorio.Padding = new System.Windows.Forms.Padding(12); - this.pnlReservatorio.Size = new System.Drawing.Size(150, 147); + this.pnlReservatorio.Padding = new System.Windows.Forms.Padding(10, 6, 10, 6); + this.pnlReservatorio.Size = new System.Drawing.Size(388, 153); this.pnlReservatorio.TabIndex = 2; // + // reservatorioLayout + // + this.reservatorioLayout.BackColor = System.Drawing.Color.Transparent; + this.reservatorioLayout.ColumnCount = 2; + this.reservatorioLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.reservatorioLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.reservatorioLayout.Controls.Add(this.lblReservatorio, 0, 0); + this.reservatorioLayout.Controls.Add(this.fldCapacidadeReservatorio, 0, 1); + this.reservatorioLayout.Controls.Add(this.fldReservatorioMin, 1, 1); + this.reservatorioLayout.Controls.Add(this.fldReservatorioCritico, 0, 2); + this.reservatorioLayout.Dock = System.Windows.Forms.DockStyle.Fill; + this.reservatorioLayout.Location = new System.Drawing.Point(10, 6); + this.reservatorioLayout.Margin = new System.Windows.Forms.Padding(0); + this.reservatorioLayout.Name = "reservatorioLayout"; + this.reservatorioLayout.RowCount = 3; + this.reservatorioLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F)); + this.reservatorioLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.reservatorioLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.reservatorioLayout.Size = new System.Drawing.Size(368, 141); + this.reservatorioLayout.TabIndex = 0; + // + // lblReservatorio + // + this.lblReservatorio.BackColor = System.Drawing.Color.Transparent; + this.reservatorioLayout.SetColumnSpan(this.lblReservatorio, 2); + this.lblReservatorio.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblReservatorio.Font = new System.Drawing.Font("Segoe UI", 9F, System.Drawing.FontStyle.Bold); + this.lblReservatorio.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); + this.lblReservatorio.Location = new System.Drawing.Point(0, 0); + this.lblReservatorio.Margin = new System.Windows.Forms.Padding(0); + this.lblReservatorio.Name = "lblReservatorio"; + this.lblReservatorio.Size = new System.Drawing.Size(368, 24); + this.lblReservatorio.TabIndex = 0; + this.lblReservatorio.Text = "▌ RESERVATÓRIO"; + this.lblReservatorio.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + // + // fldCapacidadeReservatorio + // + this.fldCapacidadeReservatorio.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.fldCapacidadeReservatorio.DecimalPlaces = 1; + this.fldCapacidadeReservatorio.Dock = System.Windows.Forms.DockStyle.Fill; + this.fldCapacidadeReservatorio.Location = new System.Drawing.Point(2, 26); + this.fldCapacidadeReservatorio.Margin = new System.Windows.Forms.Padding(2, 2, 3, 3); + this.fldCapacidadeReservatorio.Maximum = new decimal(new int[] { + 1000, + 0, + 0, + 0}); + this.fldCapacidadeReservatorio.MinimumSize = new System.Drawing.Size(0, 48); + this.fldCapacidadeReservatorio.Name = "fldCapacidadeReservatorio"; + this.fldCapacidadeReservatorio.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.fldCapacidadeReservatorio.Size = new System.Drawing.Size(179, 53); + this.fldCapacidadeReservatorio.TabIndex = 0; + this.fldCapacidadeReservatorio.Titulo = "Capacidade"; + this.fldCapacidadeReservatorio.Unidade = "L"; + // + // fldReservatorioMin + // + this.fldReservatorioMin.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.fldReservatorioMin.Dock = System.Windows.Forms.DockStyle.Fill; + this.fldReservatorioMin.Location = new System.Drawing.Point(187, 26); + this.fldReservatorioMin.Margin = new System.Windows.Forms.Padding(3, 2, 2, 3); + this.fldReservatorioMin.MinimumSize = new System.Drawing.Size(0, 48); + this.fldReservatorioMin.Name = "fldReservatorioMin"; + this.fldReservatorioMin.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.fldReservatorioMin.Size = new System.Drawing.Size(179, 53); + this.fldReservatorioMin.TabIndex = 1; + this.fldReservatorioMin.Titulo = "Mínimo"; + this.fldReservatorioMin.Unidade = "%"; + // + // fldReservatorioCritico + // + this.fldReservatorioCritico.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); + this.fldReservatorioCritico.Dock = System.Windows.Forms.DockStyle.Fill; + this.fldReservatorioCritico.Location = new System.Drawing.Point(2, 84); + this.fldReservatorioCritico.Margin = new System.Windows.Forms.Padding(2); + this.fldReservatorioCritico.MinimumSize = new System.Drawing.Size(0, 48); + this.fldReservatorioCritico.Name = "fldReservatorioCritico"; + this.fldReservatorioCritico.Padding = new System.Windows.Forms.Padding(4, 2, 4, 3); + this.fldReservatorioCritico.Size = new System.Drawing.Size(180, 55); + this.fldReservatorioCritico.TabIndex = 2; + this.fldReservatorioCritico.Titulo = "Mínimo crítico"; + this.fldReservatorioCritico.Unidade = "%"; + // // pnlFooter // this.pnlFooter.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); @@ -548,9 +912,9 @@ namespace AgroBase.Forms.IHM this.footerLayout.BackColor = System.Drawing.Color.Transparent; this.footerLayout.ColumnCount = 4; this.footerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.footerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 130F)); this.footerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 145F)); - this.footerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 155F)); + this.footerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 145F)); + this.footerLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 145F)); this.footerLayout.Controls.Add(this.lblAlteracoes, 0, 0); this.footerLayout.Controls.Add(this.btnRestaurar, 1, 0); this.footerLayout.Controls.Add(this.btnSalvar, 2, 0); @@ -572,206 +936,61 @@ namespace AgroBase.Forms.IHM this.lblAlteracoes.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); this.lblAlteracoes.Location = new System.Drawing.Point(3, 0); this.lblAlteracoes.Name = "lblAlteracoes"; - this.lblAlteracoes.Size = new System.Drawing.Size(328, 41); + this.lblAlteracoes.Size = new System.Drawing.Size(323, 41); this.lblAlteracoes.TabIndex = 0; this.lblAlteracoes.Text = "Parâmetros sincronizados com o equipamento."; this.lblAlteracoes.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // btnRestaurar // - this.btnRestaurar.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.btnRestaurar.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); this.btnRestaurar.BackColor = System.Drawing.Color.Transparent; - this.btnRestaurar.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.btnRestaurar.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(114)))), ((int)(((byte)(122)))), ((int)(((byte)(127))))); this.btnRestaurar.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnRestaurar.Dock = System.Windows.Forms.DockStyle.Fill; this.btnRestaurar.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.btnRestaurar.IconText = "●"; + this.btnRestaurar.IconText = "↻"; this.btnRestaurar.Location = new System.Drawing.Point(334, 2); - this.btnRestaurar.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); - this.btnRestaurar.MinimumSize = new System.Drawing.Size(130, 36); + this.btnRestaurar.Margin = new System.Windows.Forms.Padding(5, 2, 0, 2); + this.btnRestaurar.MinimumSize = new System.Drawing.Size(60, 34); this.btnRestaurar.Name = "btnRestaurar"; - this.btnRestaurar.Size = new System.Drawing.Size(130, 37); + this.btnRestaurar.Size = new System.Drawing.Size(140, 37); this.btnRestaurar.TabIndex = 1; - this.btnRestaurar.Text = "Restaurar"; + this.btnRestaurar.Text = "RESTAURAR"; // // btnSalvar // this.btnSalvar.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); this.btnSalvar.BackColor = System.Drawing.Color.Transparent; - this.btnSalvar.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.btnSalvar.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(63)))), ((int)(((byte)(144)))), ((int)(((byte)(92))))); this.btnSalvar.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnSalvar.Dock = System.Windows.Forms.DockStyle.Fill; this.btnSalvar.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.btnSalvar.IconText = "●"; - this.btnSalvar.Location = new System.Drawing.Point(464, 2); - this.btnSalvar.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); - this.btnSalvar.MinimumSize = new System.Drawing.Size(130, 36); + this.btnSalvar.IconText = "✓"; + this.btnSalvar.Location = new System.Drawing.Point(479, 2); + this.btnSalvar.Margin = new System.Windows.Forms.Padding(5, 2, 0, 2); + this.btnSalvar.MinimumSize = new System.Drawing.Size(60, 34); this.btnSalvar.Name = "btnSalvar"; - this.btnSalvar.Size = new System.Drawing.Size(145, 37); + this.btnSalvar.Size = new System.Drawing.Size(140, 37); this.btnSalvar.TabIndex = 2; - this.btnSalvar.Text = "Salvar Parâmetros"; + this.btnSalvar.Text = "SALVAR"; // // btnTestarComunicacao // - this.btnTestarComunicacao.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.btnTestarComunicacao.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); this.btnTestarComunicacao.BackColor = System.Drawing.Color.Transparent; - this.btnTestarComunicacao.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.btnTestarComunicacao.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(57)))), ((int)(((byte)(119)))), ((int)(((byte)(151))))); this.btnTestarComunicacao.Cursor = System.Windows.Forms.Cursors.Hand; + this.btnTestarComunicacao.Dock = System.Windows.Forms.DockStyle.Fill; this.btnTestarComunicacao.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.btnTestarComunicacao.IconText = "●"; - this.btnTestarComunicacao.Location = new System.Drawing.Point(609, 2); - this.btnTestarComunicacao.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); - this.btnTestarComunicacao.MinimumSize = new System.Drawing.Size(130, 36); + this.btnTestarComunicacao.IconText = "◉"; + this.btnTestarComunicacao.Location = new System.Drawing.Point(624, 2); + this.btnTestarComunicacao.Margin = new System.Windows.Forms.Padding(5, 2, 0, 2); + this.btnTestarComunicacao.MinimumSize = new System.Drawing.Size(60, 34); this.btnTestarComunicacao.Name = "btnTestarComunicacao"; - this.btnTestarComunicacao.Size = new System.Drawing.Size(150, 37); + this.btnTestarComunicacao.Size = new System.Drawing.Size(140, 37); this.btnTestarComunicacao.TabIndex = 3; - this.btnTestarComunicacao.Text = "Testar Comunicação"; - // - // geometriaLayout - // - this.geometriaLayout.ColumnCount = 3; - this.geometriaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); - this.geometriaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); - this.geometriaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.34F)); - this.geometriaLayout.Controls.Add(this.fldLeverFrontal, 0, 1); - this.geometriaLayout.Controls.Add(this.fldLeverLateral, 1, 1); - this.geometriaLayout.Controls.Add(this.fldEntreEixos, 2, 1); - this.geometriaLayout.Controls.Add(this.fldAnguloFrontal, 0, 2); - this.geometriaLayout.Controls.Add(this.fldAnguloLateral, 1, 2); - this.geometriaLayout.Location = new System.Drawing.Point(0, 0); - this.geometriaLayout.Name = "geometriaLayout"; - this.geometriaLayout.RowCount = 3; - this.geometriaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F)); - this.geometriaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.geometriaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.geometriaLayout.Size = new System.Drawing.Size(200, 100); - this.geometriaLayout.TabIndex = 0; - this.geometriaLayout.Dock = System.Windows.Forms.DockStyle.Fill; - - this.pnlGeometria.Controls.Add(this.geometriaLayout); - // - // fldLeverFrontal - // - SetupNumeric(this.fldLeverFrontal, "Lever arm frontal", "cm", 0M, -1000M, 1000M, 1M, 1); - this.fldLeverFrontal.Margin = new System.Windows.Forms.Padding(2, 2, 3, 3); - // - // fldLeverLateral - // - SetupNumeric(this.fldLeverLateral, "Lever arm lateral", "cm", 0M, -1000M, 1000M, 1M, 1); - this.fldLeverLateral.Margin = new System.Windows.Forms.Padding(3, 2, 3, 3); - // - // fldEntreEixos - // - SetupNumeric(this.fldEntreEixos, "Distância entre eixos", "cm", 0M, 0M, 1000M, 1M, 1); - this.fldEntreEixos.Margin = new System.Windows.Forms.Padding(3, 2, 2, 3); - // - // fldAnguloFrontal - // - SetupNumeric(this.fldAnguloFrontal, "Ângulo máx. frontal", "°", 0M, 0M, 90M, 1M, 1); - this.fldAnguloFrontal.Margin = new System.Windows.Forms.Padding(2, 2, 3, 2); - // - // fldAnguloLateral - // - SetupNumeric(this.fldAnguloLateral, "Ângulo máx. lateral", "°", 0M, 0M, 90M, 1M, 1); - this.fldAnguloLateral.Margin = new System.Windows.Forms.Padding(3, 2, 3, 2); - // - // lblGeometria - // - this.lblGeometria.Location = new System.Drawing.Point(0, 0); - this.lblGeometria.Name = "lblGeometria"; - this.lblGeometria.Size = new System.Drawing.Size(100, 23); - this.lblGeometria.TabIndex = 0; - // - // bateriaLayout - // - this.bateriaLayout.ColumnCount = 3; - this.bateriaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); - this.bateriaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); - this.bateriaLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.34F)); - this.bateriaLayout.Controls.Add(this.fldTensaoMin, 0, 1); - this.bateriaLayout.Controls.Add(this.fldTensaoMax, 1, 1); - this.bateriaLayout.Controls.Add(this.fldCorrenteMax, 2, 1); - this.bateriaLayout.Controls.Add(this.fldPercentualTensaoMin, 0, 2); - this.bateriaLayout.Location = new System.Drawing.Point(0, 0); - this.bateriaLayout.Name = "bateriaLayout"; - this.bateriaLayout.RowCount = 3; - this.bateriaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F)); - this.bateriaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.bateriaLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.bateriaLayout.Size = new System.Drawing.Size(200, 100); - this.bateriaLayout.TabIndex = 0; - this.bateriaLayout.Dock = System.Windows.Forms.DockStyle.Fill; - - - this.pnlBateria.Controls.Add(this.bateriaLayout); - // - // fldTensaoMin - // - SetupNumeric(this.fldTensaoMin, "Tensão mínima", "V", 0M, 0M, 100M, 0.1M, 1); - this.fldTensaoMin.Margin = new System.Windows.Forms.Padding(2, 2, 3, 3); - // - // fldTensaoMax - // - SetupNumeric(this.fldTensaoMax, "Tensão máxima", "V", 0M, 0M, 100M, 0.1M, 1); - this.fldTensaoMax.Margin = new System.Windows.Forms.Padding(3, 2, 3, 3); - // - // fldCorrenteMax - // - SetupNumeric(this.fldCorrenteMax, "Corrente máxima", "A", 0M, 0M, 1000M, 1M, 1); - this.fldCorrenteMax.Margin = new System.Windows.Forms.Padding(3, 2, 2, 3); - - // - // fldPercentualTensaoMin - // - SetupNumeric(this.fldPercentualTensaoMin, "Tensão mínima", "%", 0M, 0M, 100M, 1M, 0); - this.fldPercentualTensaoMin.Margin = new System.Windows.Forms.Padding(2, 2, 3, 2); - // - // lblBateria - // - this.lblBateria.Location = new System.Drawing.Point(0, 0); - this.lblBateria.Name = "lblBateria"; - this.lblBateria.Size = new System.Drawing.Size(100, 23); - this.lblBateria.TabIndex = 0; - // - // reservatorioLayout - // - this.reservatorioLayout.ColumnCount = 2; - this.reservatorioLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.reservatorioLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.reservatorioLayout.Controls.Add(this.fldCapacidadeReservatorio, 0, 1); - this.reservatorioLayout.Controls.Add(this.fldReservatorioMin, 1, 1); - this.reservatorioLayout.Controls.Add(this.fldReservatorioCritico, 0, 2); - this.reservatorioLayout.Location = new System.Drawing.Point(0, 0); - this.reservatorioLayout.Name = "reservatorioLayout"; - this.reservatorioLayout.RowCount = 3; - this.reservatorioLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 24F)); - this.reservatorioLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.reservatorioLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.reservatorioLayout.Size = new System.Drawing.Size(200, 100); - this.reservatorioLayout.TabIndex = 0; - this.reservatorioLayout.Dock = System.Windows.Forms.DockStyle.Fill; - - this.pnlReservatorio.Controls.Add(this.reservatorioLayout); - // - // fldCapacidadeReservatorio - // - SetupNumeric(this.fldCapacidadeReservatorio, "Capacidade", "L", 0M, 0M, 1000M, 1M, 1); - this.fldCapacidadeReservatorio.Margin = new System.Windows.Forms.Padding(2, 2, 3, 3); - // - // fldReservatorioMin - // - SetupNumeric(this.fldReservatorioMin, "Mínimo", "%", 0M, 0M, 100M, 1M, 0); - this.fldReservatorioMin.Margin = new System.Windows.Forms.Padding(3, 2, 2, 3); - // - // fldReservatorioCritico - // - SetupNumeric(this.fldReservatorioCritico, "Mínimo crítico", "%", 0M, 0M, 100M, 1M, 0); - this.fldReservatorioCritico.Margin = new System.Windows.Forms.Padding(2, 2, 2, 2); - // - // lblReservatorio - // - this.lblReservatorio.Location = new System.Drawing.Point(0, 0); - this.lblReservatorio.Name = "lblReservatorio"; - this.lblReservatorio.Size = new System.Drawing.Size(100, 23); - this.lblReservatorio.TabIndex = 0; + this.btnTestarComunicacao.Text = "TESTAR REDE"; // // frmAjustes // @@ -798,28 +1017,18 @@ namespace AgroBase.Forms.IHM this.pnlRedes.ResumeLayout(false); this.redesLayout.ResumeLayout(false); this.rightLayout.ResumeLayout(false); + this.pnlGeometria.ResumeLayout(false); + this.geometriaLayout.ResumeLayout(false); + this.pnlBateria.ResumeLayout(false); + this.bateriaLayout.ResumeLayout(false); + this.pnlReservatorio.ResumeLayout(false); + this.reservatorioLayout.ResumeLayout(false); this.pnlFooter.ResumeLayout(false); this.footerLayout.ResumeLayout(false); - this.geometriaLayout.ResumeLayout(false); - this.bateriaLayout.ResumeLayout(false); - this.reservatorioLayout.ResumeLayout(false); this.ResumeLayout(false); } - private static void SetupNumeric(AgroBase.Forms.IHM.Operacao.Parametros.Controls.HmiCompactNumericField field, string title, string unit, decimal value, decimal minimum, decimal maximum, decimal increment, int decimalPlaces) - { - field.Dock = DockStyle.Fill; - field.MinimumSize = new System.Drawing.Size(0, 48); - field.Titulo = title; - field.Unidade = unit; - field.Minimum = minimum; - field.Maximum = maximum; - field.Increment = increment; - field.DecimalPlaces = decimalPlaces; - field.Value = value; - } - #endregion private System.Windows.Forms.TableLayoutPanel rootLayout; diff --git a/AgroBase/AgroBase/Forms/IHM/frmAjustes.cs b/AgroBase/AgroBase/Forms/IHM/frmAjustes.cs index 4350a896a..d7fc18ce9 100644 --- a/AgroBase/AgroBase/Forms/IHM/frmAjustes.cs +++ b/AgroBase/AgroBase/Forms/IHM/frmAjustes.cs @@ -29,9 +29,6 @@ namespace AgroBase.Forms.IHM { InitializeComponent(); - ConfigurarAparencia(); - CorrigirLayoutInicial(); - VincularEventos(); } @@ -59,471 +56,7 @@ namespace AgroBase.Forms.IHM public void AtualizarDadosTela() { - - } - - - private void ConfigurarAparencia() - { - SuspendLayout(); - - try - { - ConfigurarSecao( - pnlGeometria, - geometriaLayout, - lblGeometria, - "▌ GEOMETRIA", - HmiTheme.Manual, - new Padding(0, 0, 0, 4)); - - ConfigurarSecao( - pnlBateria, - bateriaLayout, - lblBateria, - "▌ BATERIA", - HmiTheme.Success, - new Padding(0, 0, 0, 4)); - - ConfigurarSecao( - pnlReservatorio, - reservatorioLayout, - lblReservatorio, - "▌ RESERVATÓRIO", - HmiTheme.Warning, - Padding.Empty); - - ConfigurarBotaoRodape( - btnRestaurar, - "RESTAURAR", - "↻", - HmiTheme.TextMuted); - - ConfigurarBotaoRodape( - btnSalvar, - "SALVAR", - "✓", - HmiTheme.Success); - - ConfigurarBotaoRodape( - btnTestarComunicacao, - "TESTAR REDE", - "◉", - HmiTheme.Info); - - ConfigurarBotaoHeader( - btnVoltar, - "VOLTAR", - "←", - HmiTheme.Info); - - btnVoltar.Dock = DockStyle.Fill; - btnVoltar.Margin = new Padding(0, 4, 8, 4); - - ConfigurarBotaoSecao( - btnAtualizarCameras, - "ATUALIZAR", - "↻", - HmiTheme.Info, - 142); - - btnAtualizarCameras.Dock = DockStyle.Left; - btnAtualizarCameras.Width = 150; - btnAtualizarCameras.Margin = - new Padding(0, 2, 0, 0); - } - finally - { - ResumeLayout(true); - } - } - private void ConfigurarSecao(HmiRoundedPanel painel, TableLayoutPanel layout, Label titulo, string textoTitulo, Color corDestaque, Padding margem) - { - painel.SuspendLayout(); - layout.SuspendLayout(); - - try - { - painel.Dock = DockStyle.Fill; - painel.FillColor = HmiTheme.Surface; - painel.BorderColor = corDestaque; - painel.BorderThickness = 1; - painel.CornerRadius = 10; - painel.AccentColor = corDestaque; - painel.ShowAccent = false; - - painel.Margin = margem; - painel.Padding = new Padding(10, 6, 10, 6); - - layout.Dock = DockStyle.Fill; - layout.BackColor = Color.Transparent; - layout.Margin = Padding.Empty; - layout.Padding = Padding.Empty; - - titulo.Dock = DockStyle.Fill; - titulo.AutoSize = false; - titulo.BackColor = Color.Transparent; - titulo.ForeColor = corDestaque; - - titulo.Font = new Font("Segoe UI", 9F, FontStyle.Bold); - - titulo.Text = textoTitulo; - titulo.TextAlign = ContentAlignment.MiddleLeft; - titulo.Margin = Padding.Empty; - titulo.Padding = Padding.Empty; - - if (!layout.Controls.Contains(titulo)) - layout.Controls.Add(titulo, 0, 0); - - if (!painel.Controls.Contains(layout)) - { - painel.Controls.Clear(); - painel.Controls.Add(layout); - } - - layout.BringToFront(); - } - finally - { - layout.ResumeLayout(true); - painel.ResumeLayout(true); - } - } - private void ConfigurarBotaoRodape(HmiSidebarButton botao, string texto, string icone, Color corDestaque) - { - botao.Dock = DockStyle.Fill; - - botao.Text = texto; - botao.IconText = icone; - - botao.AccentColor = corDestaque; - botao.BorderColor = MisturarCores(HmiTheme.Border, corDestaque, 0.55F); - - botao.FillColor = HmiTheme.SurfaceRaised; - botao.CornerRadius = 9; - - botao.Margin = new Padding(5, 2, 0, 2); - botao.Padding = Padding.Empty; - - botao.Cursor = Cursors.Hand; - } - private void ConfigurarBotaoHeader(HmiSidebarButton botao, string texto, string icone, Color corDestaque) - { - botao.SuspendLayout(); - - try - { - botao.Text = texto; - botao.IconText = icone; - - botao.AccentColor = corDestaque; - - botao.BorderColor = MisturarCores( - HmiTheme.Border, - corDestaque, - 0.55F); - - botao.FillColor = - HmiTheme.SurfaceRaised; - - botao.CornerRadius = 9; - - botao.Dock = DockStyle.Fill; - - /* - * Essencial: o botão antigo exigia 130 px, - * mas a coluna do header tem aproximadamente 112 px. - */ - botao.MinimumSize = - new Size(96, 36); - - botao.MaximumSize = - new Size(112, 44); - - botao.Margin = - new Padding(0, 3, 10, 3); - - botao.Padding = - Padding.Empty; - - botao.Cursor = - Cursors.Hand; - } - finally - { - botao.ResumeLayout(true); - } - } - private void ConfigurarBotaoSecao(HmiSidebarButton botao, string texto, string icone, Color corDestaque, int largura) - { - botao.SuspendLayout(); - - try - { - botao.Text = texto; - botao.IconText = icone; - - botao.AccentColor = - corDestaque; - - botao.BorderColor = - MisturarCores( - HmiTheme.Border, - corDestaque, - 0.45F); - - botao.FillColor = - HmiTheme.SurfaceRaised; - - botao.CornerRadius = 8; - - botao.Dock = - DockStyle.Left; - - botao.MinimumSize = - new Size(110, 32); - - botao.MaximumSize = - new Size(largura, 34); - - botao.Width = largura; - botao.Height = 33; - - botao.Margin = - new Padding(0, 2, 0, 0); - - botao.Padding = - Padding.Empty; - - botao.Cursor = - Cursors.Hand; - } - finally - { - botao.ResumeLayout(true); - } - } - private static Color MisturarCores(Color corBase, Color corDestaque, float pesoDestaque) - { - pesoDestaque = Math.Max(0F, Math.Min(1F, pesoDestaque)); - - float pesoBase = 1F - pesoDestaque; - - return Color.FromArgb( - (int)(corBase.R * pesoBase + corDestaque.R * pesoDestaque), - (int)(corBase.G * pesoBase + corDestaque.G * pesoDestaque), - (int)( corBase.B * pesoBase + corDestaque.B * pesoDestaque) - ); - } - private void CorrigirLayoutInicial() - { - SuspendLayout(); - rootLayout.SuspendLayout(); - contentLayout.SuspendLayout(); - - try - { - // ===================================================== - // HEADER - // ===================================================== - - headerLayout.ColumnStyles.Clear(); - headerLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 112F)); - headerLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); - headerLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Absolute, 165F)); - - headerTextLayout.Margin = new Padding(10, 0, 5, 0); - lblTitulo.Padding = Padding.Empty; - lblSubtitulo.Padding = Padding.Empty; - - // ===================================================== - // COLUNAS PRINCIPAIS - // ===================================================== - - contentLayout.ColumnStyles.Clear(); - - contentLayout.ColumnStyles.Add( - new ColumnStyle( - SizeType.Percent, - 50F - ) - ); - - contentLayout.ColumnStyles.Add( - new ColumnStyle( - SizeType.Percent, - 50F - ) - ); - - leftLayout.Dock = DockStyle.Fill; - rightLayout.Dock = DockStyle.Fill; - - leftLayout.MinimumSize = Size.Empty; - rightLayout.MinimumSize = Size.Empty; - - // ===================================================== - // CÂMERAS - // ===================================================== - - /*cameraFrontal.MinimumSize = - Size.Empty; - - cameraFrontal.Height = 86; - - cameraErvas.MinimumSize = - Size.Empty; - - cameraErvas.Height = 86; - - camerasLayout.RowStyles.Clear(); - - camerasLayout.RowStyles.Add( - new RowStyle( - SizeType.Absolute, - 24F - ) - ); - - camerasLayout.RowStyles.Add( - new RowStyle( - SizeType.Absolute, - 88F - ) - ); - - camerasLayout.RowStyles.Add( - new RowStyle( - SizeType.Absolute, - 88F - ) - ); - - camerasLayout.RowStyles.Add( - new RowStyle( - SizeType.Percent, - 100F - ) - );*/ - - // ===================================================== - // REDES - // ===================================================== - - redeHaLow.MinimumSize = - Size.Empty; - - redeCan.MinimumSize = - Size.Empty; - - redeHaLow.Height = 67; - redeCan.Height = 67; - - redesLayout.RowStyles.Clear(); - - redesLayout.RowStyles.Add( - new RowStyle( - SizeType.Absolute, - 24F - ) - ); - - redesLayout.RowStyles.Add( - new RowStyle( - SizeType.Percent, - 50F - ) - ); - - redesLayout.RowStyles.Add( - new RowStyle( - SizeType.Percent, - 50F - ) - ); - - // ===================================================== - // PAINÉIS DA DIREITA - // ===================================================== - - ConfigurarPainelDireito( - pnlGeometria, - geometriaLayout - ); - - ConfigurarPainelDireito( - pnlBateria, - bateriaLayout - ); - - ConfigurarPainelDireito( - pnlReservatorio, - reservatorioLayout - ); - - // ===================================================== - // FOOTER - // ===================================================== - - btnRestaurar.Text = - "RESTAURAR"; - - btnRestaurar.IconText = - "↻"; - - btnSalvar.Text = - "SALVAR"; - - btnSalvar.IconText = - "✓"; - - btnTestarComunicacao.Text = - "TESTAR REDE"; - - btnTestarComunicacao.IconText = - "◉"; - - btnRestaurar.Margin = - new Padding(5, 2, 0, 2); - - btnSalvar.Margin = - new Padding(5, 2, 0, 2); - - btnTestarComunicacao.Margin = - new Padding(5, 2, 0, 2); - - pnlGeometria.BringToFront(); - pnlBateria.BringToFront(); - pnlReservatorio.BringToFront(); - - contentLayout.PerformLayout(); - rootLayout.PerformLayout(); - } - finally - { - contentLayout.ResumeLayout(true); - rootLayout.ResumeLayout(true); - ResumeLayout(true); - } - } - - private static void ConfigurarPainelDireito(HmiRoundedPanel painel, TableLayoutPanel layout) - { - painel.Dock = DockStyle.Fill; - painel.Visible = true; - painel.MinimumSize = Size.Empty; - - layout.Dock = DockStyle.Fill; - layout.Visible = true; - layout.MinimumSize = Size.Empty; - - if (!painel.Controls.Contains(layout)) - { - painel.Controls.Clear(); - painel.Controls.Add(layout); - } - - layout.BringToFront(); + lblRover.Text = $"ROVER {VariaveisEquipamento.Parametros.serial_number}\r\nConfiguração local"; } diff --git a/AgroBase/AgroBase/Forms/IHM/frmDiagnosticos.Designer.cs b/AgroBase/AgroBase/Forms/IHM/frmDiagnosticos.Designer.cs index 6ca65b8a4..ba9b0afb2 100644 --- a/AgroBase/AgroBase/Forms/IHM/frmDiagnosticos.Designer.cs +++ b/AgroBase/AgroBase/Forms/IHM/frmDiagnosticos.Designer.cs @@ -32,57 +32,90 @@ this.lblCriticos = new System.Windows.Forms.Label(); this.contentLayout = new System.Windows.Forms.TableLayoutPanel(); this.pnlMapa = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); + this.badgeTRJ = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeIPB = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeCAN = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeLEDAT = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeLEDMN = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeLEDOP = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeBOTLAV = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeRLCOUT = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeRLCIN = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeSEN = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeNPC = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeGPS = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeBAT = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeSNR = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeIMU = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeATU = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeCAM = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeMASRS = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeFLXLN = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeBMBAGT = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeBMBLN = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgePRSLN = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeMAGDIR = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeMAGESQ = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeB07 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeB06 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeB05 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeB04 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeB03 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeB02 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeB01 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeFRODT = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeMAGDT = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeTMPDT = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeMOVDT = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeDIRDT = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeFRODF = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeMAGDF = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeTMPDF = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeMOVDF = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeDIRDF = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeFROET = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeMAGET = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeTMPET = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeMOVET = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeDIRET = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeFROEF = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeMAGEF = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeTMPEF = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeMOVEF = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeDIREF = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeAB3V = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeAB24V = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeAB19V = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeAB12V = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeAB7V2 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeAB5V = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); + this.badgeAB36V = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); this.lblMapaTitulo = new System.Windows.Forms.Label(); this.pnlImpedimentoMapa = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.lblImpedimentoMapa = new System.Windows.Forms.Label(); - this.picRover = new System.Windows.Forms.PictureBox(); - this.badgeBat = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB36 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB24 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB19 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB12 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB7 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB5 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB3 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeDir = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeMov = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeTmp = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeMag = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeImu = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeGps = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeSen = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeNpc = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeCan = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeLan = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeCls = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeCle = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgePrs = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeAtu = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeAgit = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeFlx = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeCam = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB01 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB02 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB03 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB04 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB05 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB06 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); - this.badgeB07 = new AgroBase.Forms.IHM.Controls.HmiModuleBadge(); this.pnlLegenda = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); - this.lblLegenda = new System.Windows.Forms.Label(); + this.lblLegenda = new AgroBase.Forms.IHM.Controls.HmiStatusLegend(); + this.picRover = new System.Windows.Forms.PictureBox(); this.rightLayout = new System.Windows.Forms.TableLayoutPanel(); this.pnlSelecionado = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.selectedLayout = new System.Windows.Forms.TableLayoutPanel(); this.lblSelecionadoTitulo = new System.Windows.Forms.Label(); this.lblSelecionadoSubtitulo = new System.Windows.Forms.Label(); this.infoGrid = new System.Windows.Forms.TableLayoutPanel(); + this.lblCan = new System.Windows.Forms.Label(); + this.lblLatencia = new System.Windows.Forms.Label(); + this.lblIniciado = new System.Windows.Forms.Label(); + this.lblSaude = new System.Windows.Forms.Label(); + this.lblStatus = new System.Windows.Forms.Label(); + this.lblModulo = new System.Windows.Forms.Label(); + this.lblID = new System.Windows.Forms.Label(); + this.lblSCode = new System.Windows.Forms.Label(); this.lblImpedimentoModulo = new System.Windows.Forms.Label(); this.pnlAcoesPrimarias = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.actionsLayout = new System.Windows.Forms.TableLayoutPanel(); this.chkMandatorio = new System.Windows.Forms.CheckBox(); this.chkEmUso = new System.Windows.Forms.CheckBox(); this.btnSalvarModulo = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); - this.btnIgnorarFalha = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); this.pnlDetalhes = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); this.detailsLayout = new System.Windows.Forms.TableLayoutPanel(); this.tabsLayout = new System.Windows.Forms.TableLayoutPanel(); @@ -90,38 +123,8 @@ this.tabAcompanhamento = new AgroBase.Forms.IHM.Controls.HmiDiagnosticTabButton(); this.tabOpcoes = new AgroBase.Forms.IHM.Controls.HmiDiagnosticTabButton(); this.tabLogs = new AgroBase.Forms.IHM.Controls.HmiDiagnosticTabButton(); - this.metricsLayout = new System.Windows.Forms.TableLayoutPanel(); - this.metricFrontal = new AgroBase.Forms.IHM.Controls.HmiMetricTile(); - this.metricLateral = new AgroBase.Forms.IHM.Controls.HmiMetricTile(); - this.metricRisk = new AgroBase.Forms.IHM.Controls.HmiMetricTile(); - this.metricAssistencia = new AgroBase.Forms.IHM.Controls.HmiMetricTile(); this.detailBodyLayout = new System.Windows.Forms.TableLayoutPanel(); - this.pnlGrafico = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); - this.lblGrafico = new System.Windows.Forms.Label(); - this.pnlEventos = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); - this.lstEventos = new System.Windows.Forms.ListBox(); this.lblConteudoAba = new System.Windows.Forms.Label(); - this.pnlAcoesModulo = new AgroBase.Forms.IHM.Controls.HmiRoundedPanel(); - this.moduleActionsLayout = new System.Windows.Forms.TableLayoutPanel(); - this.btnAcao1 = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); - this.btnAcao2 = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); - this.btnAcao3 = new AgroBase.Forms.IHM.Controls.HmiSidebarButton(); - this.lblModulo = new System.Windows.Forms.Label(); - this.lblModuloValor = new System.Windows.Forms.Label(); - this.lblLabel = new System.Windows.Forms.Label(); - this.lblLabelValor = new System.Windows.Forms.Label(); - this.lblStatus = new System.Windows.Forms.Label(); - this.lblStatusValor = new System.Windows.Forms.Label(); - this.lblSaude = new System.Windows.Forms.Label(); - this.lblSaudeValor = new System.Windows.Forms.Label(); - this.lblIniciado = new System.Windows.Forms.Label(); - this.lblIniciadoValor = new System.Windows.Forms.Label(); - this.lblCan = new System.Windows.Forms.Label(); - this.lblCanValor = new System.Windows.Forms.Label(); - this.lblLatencia = new System.Windows.Forms.Label(); - this.lblLatenciaValor = new System.Windows.Forms.Label(); - this.lblIdVisual = new System.Windows.Forms.Label(); - this.lblIdVisualValor = new System.Windows.Forms.Label(); this.rootLayout.SuspendLayout(); this.pnlHeader.SuspendLayout(); this.headerLayout.SuspendLayout(); @@ -131,22 +134,17 @@ this.contentLayout.SuspendLayout(); this.pnlMapa.SuspendLayout(); this.pnlImpedimentoMapa.SuspendLayout(); - ((System.ComponentModel.ISupportInitialize)(this.picRover)).BeginInit(); this.pnlLegenda.SuspendLayout(); + ((System.ComponentModel.ISupportInitialize)(this.picRover)).BeginInit(); this.rightLayout.SuspendLayout(); this.pnlSelecionado.SuspendLayout(); this.selectedLayout.SuspendLayout(); + this.infoGrid.SuspendLayout(); this.pnlAcoesPrimarias.SuspendLayout(); this.actionsLayout.SuspendLayout(); this.pnlDetalhes.SuspendLayout(); this.detailsLayout.SuspendLayout(); this.tabsLayout.SuspendLayout(); - this.metricsLayout.SuspendLayout(); - this.detailBodyLayout.SuspendLayout(); - this.pnlGrafico.SuspendLayout(); - this.pnlEventos.SuspendLayout(); - this.pnlAcoesModulo.SuspendLayout(); - this.moduleActionsLayout.SuspendLayout(); this.SuspendLayout(); // // rootLayout @@ -352,42 +350,68 @@ this.pnlMapa.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); this.pnlMapa.BackColor = System.Drawing.Color.Transparent; this.pnlMapa.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); + this.pnlMapa.Controls.Add(this.badgeTRJ); + this.pnlMapa.Controls.Add(this.badgeIPB); + this.pnlMapa.Controls.Add(this.badgeCAN); + this.pnlMapa.Controls.Add(this.badgeLEDAT); + this.pnlMapa.Controls.Add(this.badgeLEDMN); + this.pnlMapa.Controls.Add(this.badgeLEDOP); + this.pnlMapa.Controls.Add(this.badgeBOTLAV); + this.pnlMapa.Controls.Add(this.badgeRLCOUT); + this.pnlMapa.Controls.Add(this.badgeRLCIN); + this.pnlMapa.Controls.Add(this.badgeSEN); + this.pnlMapa.Controls.Add(this.badgeNPC); + this.pnlMapa.Controls.Add(this.badgeGPS); + this.pnlMapa.Controls.Add(this.badgeBAT); + this.pnlMapa.Controls.Add(this.badgeSNR); + this.pnlMapa.Controls.Add(this.badgeIMU); + this.pnlMapa.Controls.Add(this.badgeATU); + this.pnlMapa.Controls.Add(this.badgeCAM); + this.pnlMapa.Controls.Add(this.badgeMASRS); + this.pnlMapa.Controls.Add(this.badgeFLXLN); + this.pnlMapa.Controls.Add(this.badgeBMBAGT); + this.pnlMapa.Controls.Add(this.badgeBMBLN); + this.pnlMapa.Controls.Add(this.badgePRSLN); + this.pnlMapa.Controls.Add(this.badgeMAGDIR); + this.pnlMapa.Controls.Add(this.badgeMAGESQ); + this.pnlMapa.Controls.Add(this.badgeB07); + this.pnlMapa.Controls.Add(this.badgeB06); + this.pnlMapa.Controls.Add(this.badgeB05); + this.pnlMapa.Controls.Add(this.badgeB04); + this.pnlMapa.Controls.Add(this.badgeB03); + this.pnlMapa.Controls.Add(this.badgeB02); + this.pnlMapa.Controls.Add(this.badgeB01); + this.pnlMapa.Controls.Add(this.badgeFRODT); + this.pnlMapa.Controls.Add(this.badgeMAGDT); + this.pnlMapa.Controls.Add(this.badgeTMPDT); + this.pnlMapa.Controls.Add(this.badgeMOVDT); + this.pnlMapa.Controls.Add(this.badgeDIRDT); + this.pnlMapa.Controls.Add(this.badgeFRODF); + this.pnlMapa.Controls.Add(this.badgeMAGDF); + this.pnlMapa.Controls.Add(this.badgeTMPDF); + this.pnlMapa.Controls.Add(this.badgeMOVDF); + this.pnlMapa.Controls.Add(this.badgeDIRDF); + this.pnlMapa.Controls.Add(this.badgeFROET); + this.pnlMapa.Controls.Add(this.badgeMAGET); + this.pnlMapa.Controls.Add(this.badgeTMPET); + this.pnlMapa.Controls.Add(this.badgeMOVET); + this.pnlMapa.Controls.Add(this.badgeDIRET); + this.pnlMapa.Controls.Add(this.badgeFROEF); + this.pnlMapa.Controls.Add(this.badgeMAGEF); + this.pnlMapa.Controls.Add(this.badgeTMPEF); + this.pnlMapa.Controls.Add(this.badgeMOVEF); + this.pnlMapa.Controls.Add(this.badgeDIREF); + this.pnlMapa.Controls.Add(this.badgeAB3V); + this.pnlMapa.Controls.Add(this.badgeAB24V); + this.pnlMapa.Controls.Add(this.badgeAB19V); + this.pnlMapa.Controls.Add(this.badgeAB12V); + this.pnlMapa.Controls.Add(this.badgeAB7V2); + this.pnlMapa.Controls.Add(this.badgeAB5V); + this.pnlMapa.Controls.Add(this.badgeAB36V); this.pnlMapa.Controls.Add(this.lblMapaTitulo); this.pnlMapa.Controls.Add(this.pnlImpedimentoMapa); - this.pnlMapa.Controls.Add(this.picRover); - this.pnlMapa.Controls.Add(this.badgeBat); - this.pnlMapa.Controls.Add(this.badgeB36); - this.pnlMapa.Controls.Add(this.badgeB24); - this.pnlMapa.Controls.Add(this.badgeB19); - this.pnlMapa.Controls.Add(this.badgeB12); - this.pnlMapa.Controls.Add(this.badgeB7); - this.pnlMapa.Controls.Add(this.badgeB5); - this.pnlMapa.Controls.Add(this.badgeB3); - this.pnlMapa.Controls.Add(this.badgeDir); - this.pnlMapa.Controls.Add(this.badgeMov); - this.pnlMapa.Controls.Add(this.badgeTmp); - this.pnlMapa.Controls.Add(this.badgeMag); - this.pnlMapa.Controls.Add(this.badgeImu); - this.pnlMapa.Controls.Add(this.badgeGps); - this.pnlMapa.Controls.Add(this.badgeSen); - this.pnlMapa.Controls.Add(this.badgeNpc); - this.pnlMapa.Controls.Add(this.badgeCan); - this.pnlMapa.Controls.Add(this.badgeLan); - this.pnlMapa.Controls.Add(this.badgeCls); - this.pnlMapa.Controls.Add(this.badgeCle); - this.pnlMapa.Controls.Add(this.badgePrs); - this.pnlMapa.Controls.Add(this.badgeAtu); - this.pnlMapa.Controls.Add(this.badgeAgit); - this.pnlMapa.Controls.Add(this.badgeFlx); - this.pnlMapa.Controls.Add(this.badgeCam); - this.pnlMapa.Controls.Add(this.badgeB01); - this.pnlMapa.Controls.Add(this.badgeB02); - this.pnlMapa.Controls.Add(this.badgeB03); - this.pnlMapa.Controls.Add(this.badgeB04); - this.pnlMapa.Controls.Add(this.badgeB05); - this.pnlMapa.Controls.Add(this.badgeB06); - this.pnlMapa.Controls.Add(this.badgeB07); this.pnlMapa.Controls.Add(this.pnlLegenda); + this.pnlMapa.Controls.Add(this.picRover); this.pnlMapa.CornerRadius = 10; this.pnlMapa.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlMapa.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); @@ -399,6 +423,1050 @@ this.pnlMapa.Size = new System.Drawing.Size(403, 521); this.pnlMapa.TabIndex = 0; // + // badgeTRJ + // + this.badgeTRJ.BackColor = System.Drawing.Color.Transparent; + this.badgeTRJ.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeTRJ.EmUso = false; + this.badgeTRJ.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeTRJ.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeTRJ.Location = new System.Drawing.Point(346, 256); + this.badgeTRJ.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeTRJ.ModuleCode = AgroBase.Models.Enums.T_Code.Trj; + this.badgeTRJ.ModuleID = "TRAJ"; + this.badgeTRJ.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeTRJ.Name = "badgeTRJ"; + this.badgeTRJ.Size = new System.Drawing.Size(53, 20); + this.badgeTRJ.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeTRJ.TabIndex = 93; + this.badgeTRJ.Text = "TRAJ"; + // + // badgeIPB + // + this.badgeIPB.BackColor = System.Drawing.Color.Transparent; + this.badgeIPB.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeIPB.EmUso = false; + this.badgeIPB.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeIPB.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeIPB.Location = new System.Drawing.Point(346, 232); + this.badgeIPB.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeIPB.ModuleCode = AgroBase.Models.Enums.T_Code.Ipb; + this.badgeIPB.ModuleID = "IPB"; + this.badgeIPB.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeIPB.Name = "badgeIPB"; + this.badgeIPB.Size = new System.Drawing.Size(53, 20); + this.badgeIPB.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeIPB.TabIndex = 92; + this.badgeIPB.Text = "LAN"; + // + // badgeCAN + // + this.badgeCAN.BackColor = System.Drawing.Color.Transparent; + this.badgeCAN.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeCAN.EmUso = false; + this.badgeCAN.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeCAN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeCAN.Location = new System.Drawing.Point(346, 208); + this.badgeCAN.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeCAN.ModuleCode = AgroBase.Models.Enums.T_Code.Can; + this.badgeCAN.ModuleID = "CAN"; + this.badgeCAN.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeCAN.Name = "badgeCAN"; + this.badgeCAN.Size = new System.Drawing.Size(53, 20); + this.badgeCAN.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeCAN.TabIndex = 91; + this.badgeCAN.Text = "CAN"; + // + // badgeLEDAT + // + this.badgeLEDAT.BackColor = System.Drawing.Color.Transparent; + this.badgeLEDAT.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeLEDAT.EmUso = false; + this.badgeLEDAT.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeLEDAT.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeLEDAT.Location = new System.Drawing.Point(10, 256); + this.badgeLEDAT.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeLEDAT.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeLEDAT.ModuleID = "LEDAT"; + this.badgeLEDAT.ModuleSubCode = AgroBase.Models.Enums.S_Code.sLED; + this.badgeLEDAT.Name = "badgeLEDAT"; + this.badgeLEDAT.Size = new System.Drawing.Size(53, 20); + this.badgeLEDAT.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeLEDAT.TabIndex = 90; + this.badgeLEDAT.Text = "AT"; + // + // badgeLEDMN + // + this.badgeLEDMN.BackColor = System.Drawing.Color.Transparent; + this.badgeLEDMN.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeLEDMN.EmUso = false; + this.badgeLEDMN.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeLEDMN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeLEDMN.Location = new System.Drawing.Point(10, 232); + this.badgeLEDMN.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeLEDMN.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeLEDMN.ModuleID = "LEDMN"; + this.badgeLEDMN.ModuleSubCode = AgroBase.Models.Enums.S_Code.sLED; + this.badgeLEDMN.Name = "badgeLEDMN"; + this.badgeLEDMN.Size = new System.Drawing.Size(53, 20); + this.badgeLEDMN.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeLEDMN.TabIndex = 89; + this.badgeLEDMN.Text = "MN"; + // + // badgeLEDOP + // + this.badgeLEDOP.BackColor = System.Drawing.Color.Transparent; + this.badgeLEDOP.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeLEDOP.EmUso = false; + this.badgeLEDOP.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeLEDOP.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeLEDOP.Location = new System.Drawing.Point(10, 208); + this.badgeLEDOP.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeLEDOP.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeLEDOP.ModuleID = "LEDOP"; + this.badgeLEDOP.ModuleSubCode = AgroBase.Models.Enums.S_Code.sLED; + this.badgeLEDOP.Name = "badgeLEDOP"; + this.badgeLEDOP.Size = new System.Drawing.Size(53, 20); + this.badgeLEDOP.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeLEDOP.TabIndex = 88; + this.badgeLEDOP.Text = "OP"; + // + // badgeBOTLAV + // + this.badgeBOTLAV.BackColor = System.Drawing.Color.Transparent; + this.badgeBOTLAV.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeBOTLAV.EmUso = false; + this.badgeBOTLAV.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeBOTLAV.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeBOTLAV.Location = new System.Drawing.Point(346, 438); + this.badgeBOTLAV.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeBOTLAV.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeBOTLAV.ModuleID = "BOTLAV"; + this.badgeBOTLAV.ModuleSubCode = AgroBase.Models.Enums.S_Code.sBOT; + this.badgeBOTLAV.Name = "badgeBOTLAV"; + this.badgeBOTLAV.Size = new System.Drawing.Size(53, 20); + this.badgeBOTLAV.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeBOTLAV.TabIndex = 87; + this.badgeBOTLAV.Text = "LAV"; + // + // badgeRLCOUT + // + this.badgeRLCOUT.BackColor = System.Drawing.Color.Transparent; + this.badgeRLCOUT.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeRLCOUT.EmUso = false; + this.badgeRLCOUT.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeRLCOUT.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeRLCOUT.Location = new System.Drawing.Point(116, 256); + this.badgeRLCOUT.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeRLCOUT.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeRLCOUT.ModuleID = "RLCOUT"; + this.badgeRLCOUT.ModuleSubCode = AgroBase.Models.Enums.S_Code.sRLE; + this.badgeRLCOUT.Name = "badgeRLCOUT"; + this.badgeRLCOUT.Size = new System.Drawing.Size(53, 20); + this.badgeRLCOUT.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeRLCOUT.TabIndex = 86; + this.badgeRLCOUT.Text = "CLS"; + // + // badgeRLCIN + // + this.badgeRLCIN.BackColor = System.Drawing.Color.Transparent; + this.badgeRLCIN.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeRLCIN.EmUso = false; + this.badgeRLCIN.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeRLCIN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeRLCIN.Location = new System.Drawing.Point(232, 256); + this.badgeRLCIN.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeRLCIN.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeRLCIN.ModuleID = "RLCIN"; + this.badgeRLCIN.ModuleSubCode = AgroBase.Models.Enums.S_Code.sRLE; + this.badgeRLCIN.Name = "badgeRLCIN"; + this.badgeRLCIN.Size = new System.Drawing.Size(53, 20); + this.badgeRLCIN.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeRLCIN.TabIndex = 85; + this.badgeRLCIN.Text = "CLE"; + // + // badgeSEN + // + this.badgeSEN.BackColor = System.Drawing.Color.Transparent; + this.badgeSEN.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeSEN.EmUso = false; + this.badgeSEN.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeSEN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeSEN.Location = new System.Drawing.Point(175, 256); + this.badgeSEN.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeSEN.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeSEN.ModuleID = "SEN"; + this.badgeSEN.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeSEN.Name = "badgeSEN"; + this.badgeSEN.Size = new System.Drawing.Size(53, 20); + this.badgeSEN.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeSEN.TabIndex = 84; + this.badgeSEN.Text = "SEN"; + // + // badgeNPC + // + this.badgeNPC.BackColor = System.Drawing.Color.Transparent; + this.badgeNPC.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeNPC.EmUso = false; + this.badgeNPC.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeNPC.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeNPC.Location = new System.Drawing.Point(175, 232); + this.badgeNPC.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeNPC.ModuleCode = AgroBase.Models.Enums.T_Code.Npc; + this.badgeNPC.ModuleID = "NPC"; + this.badgeNPC.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeNPC.Name = "badgeNPC"; + this.badgeNPC.Size = new System.Drawing.Size(53, 20); + this.badgeNPC.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeNPC.TabIndex = 83; + this.badgeNPC.Text = "NPC"; + // + // badgeGPS + // + this.badgeGPS.BackColor = System.Drawing.Color.Transparent; + this.badgeGPS.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeGPS.EmUso = false; + this.badgeGPS.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeGPS.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeGPS.Location = new System.Drawing.Point(175, 208); + this.badgeGPS.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeGPS.ModuleCode = AgroBase.Models.Enums.T_Code.Gps; + this.badgeGPS.ModuleID = "GPS"; + this.badgeGPS.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeGPS.Name = "badgeGPS"; + this.badgeGPS.Size = new System.Drawing.Size(53, 20); + this.badgeGPS.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeGPS.TabIndex = 82; + this.badgeGPS.Text = "GPS"; + // + // badgeBAT + // + this.badgeBAT.BackColor = System.Drawing.Color.Transparent; + this.badgeBAT.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeBAT.EmUso = false; + this.badgeBAT.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeBAT.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeBAT.Location = new System.Drawing.Point(175, 120); + this.badgeBAT.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeBAT.ModuleCode = AgroBase.Models.Enums.T_Code.Bat; + this.badgeBAT.ModuleID = "BAT"; + this.badgeBAT.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeBAT.Name = "badgeBAT"; + this.badgeBAT.Size = new System.Drawing.Size(53, 20); + this.badgeBAT.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeBAT.TabIndex = 81; + this.badgeBAT.Text = "BAT"; + // + // badgeSNR + // + this.badgeSNR.BackColor = System.Drawing.Color.Transparent; + this.badgeSNR.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeSNR.EmUso = false; + this.badgeSNR.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeSNR.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeSNR.Location = new System.Drawing.Point(175, 144); + this.badgeSNR.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeSNR.ModuleCode = AgroBase.Models.Enums.T_Code.Snr; + this.badgeSNR.ModuleID = "SNR"; + this.badgeSNR.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeSNR.Name = "badgeSNR"; + this.badgeSNR.Size = new System.Drawing.Size(53, 20); + this.badgeSNR.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeSNR.TabIndex = 80; + this.badgeSNR.Text = "SNR"; + // + // badgeIMU + // + this.badgeIMU.BackColor = System.Drawing.Color.Transparent; + this.badgeIMU.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeIMU.EmUso = false; + this.badgeIMU.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeIMU.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeIMU.Location = new System.Drawing.Point(175, 168); + this.badgeIMU.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeIMU.ModuleCode = AgroBase.Models.Enums.T_Code.Imu; + this.badgeIMU.ModuleID = "IMU"; + this.badgeIMU.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeIMU.Name = "badgeIMU"; + this.badgeIMU.Size = new System.Drawing.Size(53, 20); + this.badgeIMU.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeIMU.TabIndex = 79; + this.badgeIMU.Text = "IMU"; + // + // badgeATU + // + this.badgeATU.BackColor = System.Drawing.Color.Transparent; + this.badgeATU.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeATU.EmUso = false; + this.badgeATU.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeATU.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeATU.Location = new System.Drawing.Point(175, 364); + this.badgeATU.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeATU.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeATU.ModuleID = "ATU"; + this.badgeATU.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeATU.Name = "badgeATU"; + this.badgeATU.Size = new System.Drawing.Size(53, 20); + this.badgeATU.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeATU.TabIndex = 78; + this.badgeATU.Text = "ATU"; + // + // badgeCAM + // + this.badgeCAM.BackColor = System.Drawing.Color.Transparent; + this.badgeCAM.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeCAM.EmUso = false; + this.badgeCAM.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeCAM.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeCAM.Location = new System.Drawing.Point(175, 340); + this.badgeCAM.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeCAM.ModuleCode = AgroBase.Models.Enums.T_Code.Cam; + this.badgeCAM.ModuleID = "CAM"; + this.badgeCAM.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeCAM.Name = "badgeCAM"; + this.badgeCAM.Size = new System.Drawing.Size(53, 20); + this.badgeCAM.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeCAM.TabIndex = 77; + this.badgeCAM.Text = "CAM"; + // + // badgeMASRS + // + this.badgeMASRS.BackColor = System.Drawing.Color.Transparent; + this.badgeMASRS.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeMASRS.EmUso = false; + this.badgeMASRS.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeMASRS.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeMASRS.Location = new System.Drawing.Point(175, 388); + this.badgeMASRS.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeMASRS.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeMASRS.ModuleID = "MASRS"; + this.badgeMASRS.ModuleSubCode = AgroBase.Models.Enums.S_Code.sMAS; + this.badgeMASRS.Name = "badgeMASRS"; + this.badgeMASRS.Size = new System.Drawing.Size(53, 20); + this.badgeMASRS.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeMASRS.TabIndex = 76; + this.badgeMASRS.Text = "MAS"; + // + // badgeFLXLN + // + this.badgeFLXLN.BackColor = System.Drawing.Color.Transparent; + this.badgeFLXLN.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeFLXLN.EmUso = false; + this.badgeFLXLN.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeFLXLN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeFLXLN.Location = new System.Drawing.Point(175, 412); + this.badgeFLXLN.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeFLXLN.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeFLXLN.ModuleID = "FLXLN"; + this.badgeFLXLN.ModuleSubCode = AgroBase.Models.Enums.S_Code.sFLX; + this.badgeFLXLN.Name = "badgeFLXLN"; + this.badgeFLXLN.Size = new System.Drawing.Size(53, 20); + this.badgeFLXLN.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeFLXLN.TabIndex = 75; + this.badgeFLXLN.Text = "FLX"; + // + // badgeBMBAGT + // + this.badgeBMBAGT.BackColor = System.Drawing.Color.Transparent; + this.badgeBMBAGT.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeBMBAGT.EmUso = false; + this.badgeBMBAGT.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeBMBAGT.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeBMBAGT.Location = new System.Drawing.Point(232, 412); + this.badgeBMBAGT.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeBMBAGT.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeBMBAGT.ModuleID = "BMBAGT"; + this.badgeBMBAGT.ModuleSubCode = AgroBase.Models.Enums.S_Code.sBMB; + this.badgeBMBAGT.Name = "badgeBMBAGT"; + this.badgeBMBAGT.Size = new System.Drawing.Size(53, 20); + this.badgeBMBAGT.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeBMBAGT.TabIndex = 74; + this.badgeBMBAGT.Text = "AGT"; + // + // badgeBMBLN + // + this.badgeBMBLN.BackColor = System.Drawing.Color.Transparent; + this.badgeBMBLN.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeBMBLN.EmUso = false; + this.badgeBMBLN.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeBMBLN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeBMBLN.Location = new System.Drawing.Point(118, 412); + this.badgeBMBLN.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeBMBLN.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeBMBLN.ModuleID = "BMBLN"; + this.badgeBMBLN.ModuleSubCode = AgroBase.Models.Enums.S_Code.sBMB; + this.badgeBMBLN.Name = "badgeBMBLN"; + this.badgeBMBLN.Size = new System.Drawing.Size(53, 20); + this.badgeBMBLN.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeBMBLN.TabIndex = 73; + this.badgeBMBLN.Text = "BMB"; + // + // badgePRSLN + // + this.badgePRSLN.BackColor = System.Drawing.Color.Transparent; + this.badgePRSLN.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgePRSLN.EmUso = false; + this.badgePRSLN.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgePRSLN.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgePRSLN.Location = new System.Drawing.Point(175, 438); + this.badgePRSLN.MinimumSize = new System.Drawing.Size(42, 20); + this.badgePRSLN.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgePRSLN.ModuleID = "PRSLN"; + this.badgePRSLN.ModuleSubCode = AgroBase.Models.Enums.S_Code.sPRS; + this.badgePRSLN.Name = "badgePRSLN"; + this.badgePRSLN.Size = new System.Drawing.Size(53, 20); + this.badgePRSLN.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgePRSLN.TabIndex = 72; + this.badgePRSLN.Text = "PRSLN"; + // + // badgeMAGDIR + // + this.badgeMAGDIR.BackColor = System.Drawing.Color.Transparent; + this.badgeMAGDIR.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeMAGDIR.EmUso = false; + this.badgeMAGDIR.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeMAGDIR.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeMAGDIR.Location = new System.Drawing.Point(263, 438); + this.badgeMAGDIR.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeMAGDIR.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeMAGDIR.ModuleID = "MAGDIR"; + this.badgeMAGDIR.ModuleSubCode = AgroBase.Models.Enums.S_Code.sMAG; + this.badgeMAGDIR.Name = "badgeMAGDIR"; + this.badgeMAGDIR.Size = new System.Drawing.Size(53, 20); + this.badgeMAGDIR.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeMAGDIR.TabIndex = 71; + this.badgeMAGDIR.Text = "MAG"; + // + // badgeMAGESQ + // + this.badgeMAGESQ.BackColor = System.Drawing.Color.Transparent; + this.badgeMAGESQ.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeMAGESQ.EmUso = false; + this.badgeMAGESQ.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeMAGESQ.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeMAGESQ.Location = new System.Drawing.Point(87, 438); + this.badgeMAGESQ.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeMAGESQ.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeMAGESQ.ModuleID = "MAGESQ"; + this.badgeMAGESQ.ModuleSubCode = AgroBase.Models.Enums.S_Code.sMAG; + this.badgeMAGESQ.Name = "badgeMAGESQ"; + this.badgeMAGESQ.Size = new System.Drawing.Size(53, 20); + this.badgeMAGESQ.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeMAGESQ.TabIndex = 70; + this.badgeMAGESQ.Text = "MAG"; + // + // badgeB07 + // + this.badgeB07.BackColor = System.Drawing.Color.Transparent; + this.badgeB07.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeB07.EmUso = false; + this.badgeB07.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeB07.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeB07.Location = new System.Drawing.Point(346, 464); + this.badgeB07.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeB07.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeB07.ModuleID = "B07"; + this.badgeB07.ModuleSubCode = AgroBase.Models.Enums.S_Code.sBIC; + this.badgeB07.Name = "badgeB07"; + this.badgeB07.Size = new System.Drawing.Size(53, 20); + this.badgeB07.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeB07.TabIndex = 69; + this.badgeB07.Text = "B07"; + // + // badgeB06 + // + this.badgeB06.BackColor = System.Drawing.Color.Transparent; + this.badgeB06.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeB06.EmUso = false; + this.badgeB06.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeB06.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeB06.Location = new System.Drawing.Point(289, 464); + this.badgeB06.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeB06.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeB06.ModuleID = "B06"; + this.badgeB06.ModuleSubCode = AgroBase.Models.Enums.S_Code.sBIC; + this.badgeB06.Name = "badgeB06"; + this.badgeB06.Size = new System.Drawing.Size(53, 20); + this.badgeB06.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeB06.TabIndex = 68; + this.badgeB06.Text = "B06"; + // + // badgeB05 + // + this.badgeB05.BackColor = System.Drawing.Color.Transparent; + this.badgeB05.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeB05.EmUso = false; + this.badgeB05.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeB05.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeB05.Location = new System.Drawing.Point(232, 464); + this.badgeB05.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeB05.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeB05.ModuleID = "B05"; + this.badgeB05.ModuleSubCode = AgroBase.Models.Enums.S_Code.sBIC; + this.badgeB05.Name = "badgeB05"; + this.badgeB05.Size = new System.Drawing.Size(53, 20); + this.badgeB05.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeB05.TabIndex = 67; + this.badgeB05.Text = "B05"; + // + // badgeB04 + // + this.badgeB04.BackColor = System.Drawing.Color.Transparent; + this.badgeB04.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeB04.EmUso = false; + this.badgeB04.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeB04.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeB04.Location = new System.Drawing.Point(175, 464); + this.badgeB04.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeB04.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeB04.ModuleID = "B04"; + this.badgeB04.ModuleSubCode = AgroBase.Models.Enums.S_Code.sBIC; + this.badgeB04.Name = "badgeB04"; + this.badgeB04.Size = new System.Drawing.Size(53, 20); + this.badgeB04.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeB04.TabIndex = 66; + this.badgeB04.Text = "B04"; + // + // badgeB03 + // + this.badgeB03.BackColor = System.Drawing.Color.Transparent; + this.badgeB03.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeB03.EmUso = false; + this.badgeB03.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeB03.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeB03.Location = new System.Drawing.Point(118, 464); + this.badgeB03.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeB03.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeB03.ModuleID = "B03"; + this.badgeB03.ModuleSubCode = AgroBase.Models.Enums.S_Code.sBIC; + this.badgeB03.Name = "badgeB03"; + this.badgeB03.Size = new System.Drawing.Size(53, 20); + this.badgeB03.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeB03.TabIndex = 65; + this.badgeB03.Text = "B03"; + // + // badgeB02 + // + this.badgeB02.BackColor = System.Drawing.Color.Transparent; + this.badgeB02.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeB02.EmUso = false; + this.badgeB02.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeB02.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeB02.Location = new System.Drawing.Point(61, 464); + this.badgeB02.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeB02.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeB02.ModuleID = "B02"; + this.badgeB02.ModuleSubCode = AgroBase.Models.Enums.S_Code.sBIC; + this.badgeB02.Name = "badgeB02"; + this.badgeB02.Size = new System.Drawing.Size(53, 20); + this.badgeB02.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeB02.TabIndex = 64; + this.badgeB02.Text = "B02"; + // + // badgeB01 + // + this.badgeB01.BackColor = System.Drawing.Color.Transparent; + this.badgeB01.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeB01.EmUso = false; + this.badgeB01.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeB01.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeB01.Location = new System.Drawing.Point(4, 464); + this.badgeB01.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeB01.ModuleCode = AgroBase.Models.Enums.T_Code.Atu; + this.badgeB01.ModuleID = "B01"; + this.badgeB01.ModuleSubCode = AgroBase.Models.Enums.S_Code.sBIC; + this.badgeB01.Name = "badgeB01"; + this.badgeB01.Size = new System.Drawing.Size(53, 20); + this.badgeB01.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeB01.TabIndex = 63; + this.badgeB01.Text = "B01"; + // + // badgeFRODT + // + this.badgeFRODT.BackColor = System.Drawing.Color.Transparent; + this.badgeFRODT.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeFRODT.EmUso = false; + this.badgeFRODT.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeFRODT.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeFRODT.Location = new System.Drawing.Point(340, 325); + this.badgeFRODT.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeFRODT.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeFRODT.ModuleID = "FRODT"; + this.badgeFRODT.ModuleSubCode = AgroBase.Models.Enums.S_Code.sFRO; + this.badgeFRODT.Name = "badgeFRODT"; + this.badgeFRODT.Size = new System.Drawing.Size(53, 20); + this.badgeFRODT.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeFRODT.TabIndex = 62; + this.badgeFRODT.Text = "FRO"; + // + // badgeMAGDT + // + this.badgeMAGDT.BackColor = System.Drawing.Color.Transparent; + this.badgeMAGDT.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeMAGDT.EmUso = false; + this.badgeMAGDT.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeMAGDT.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeMAGDT.Location = new System.Drawing.Point(340, 351); + this.badgeMAGDT.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeMAGDT.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeMAGDT.ModuleID = "MAGDT"; + this.badgeMAGDT.ModuleSubCode = AgroBase.Models.Enums.S_Code.sMAG; + this.badgeMAGDT.Name = "badgeMAGDT"; + this.badgeMAGDT.Size = new System.Drawing.Size(53, 20); + this.badgeMAGDT.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeMAGDT.TabIndex = 61; + this.badgeMAGDT.Text = "MAG"; + // + // badgeTMPDT + // + this.badgeTMPDT.BackColor = System.Drawing.Color.Transparent; + this.badgeTMPDT.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeTMPDT.EmUso = false; + this.badgeTMPDT.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeTMPDT.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeTMPDT.Location = new System.Drawing.Point(283, 351); + this.badgeTMPDT.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeTMPDT.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeTMPDT.ModuleID = "TMPDT"; + this.badgeTMPDT.ModuleSubCode = AgroBase.Models.Enums.S_Code.sNTC; + this.badgeTMPDT.Name = "badgeTMPDT"; + this.badgeTMPDT.Size = new System.Drawing.Size(53, 20); + this.badgeTMPDT.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeTMPDT.TabIndex = 60; + this.badgeTMPDT.Text = "TMP"; + // + // badgeMOVDT + // + this.badgeMOVDT.BackColor = System.Drawing.Color.Transparent; + this.badgeMOVDT.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeMOVDT.EmUso = false; + this.badgeMOVDT.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeMOVDT.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeMOVDT.Location = new System.Drawing.Point(283, 325); + this.badgeMOVDT.MinimumSize = new System.Drawing.Size(38, 20); + this.badgeMOVDT.ModuleCode = AgroBase.Models.Enums.T_Code.Mov; + this.badgeMOVDT.ModuleID = "DT"; + this.badgeMOVDT.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeMOVDT.Name = "badgeMOVDT"; + this.badgeMOVDT.Size = new System.Drawing.Size(53, 20); + this.badgeMOVDT.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeMOVDT.TabIndex = 59; + this.badgeMOVDT.Text = "MOV"; + // + // badgeDIRDT + // + this.badgeDIRDT.BackColor = System.Drawing.Color.Transparent; + this.badgeDIRDT.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeDIRDT.EmUso = false; + this.badgeDIRDT.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeDIRDT.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeDIRDT.Location = new System.Drawing.Point(283, 299); + this.badgeDIRDT.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeDIRDT.ModuleCode = AgroBase.Models.Enums.T_Code.Dir; + this.badgeDIRDT.ModuleID = "DT"; + this.badgeDIRDT.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeDIRDT.Name = "badgeDIRDT"; + this.badgeDIRDT.Size = new System.Drawing.Size(53, 20); + this.badgeDIRDT.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeDIRDT.TabIndex = 58; + this.badgeDIRDT.Text = "DIR"; + // + // badgeFRODF + // + this.badgeFRODF.BackColor = System.Drawing.Color.Transparent; + this.badgeFRODF.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeFRODF.EmUso = false; + this.badgeFRODF.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeFRODF.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeFRODF.Location = new System.Drawing.Point(340, 139); + this.badgeFRODF.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeFRODF.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeFRODF.ModuleID = "FRODF"; + this.badgeFRODF.ModuleSubCode = AgroBase.Models.Enums.S_Code.sFRO; + this.badgeFRODF.Name = "badgeFRODF"; + this.badgeFRODF.Size = new System.Drawing.Size(53, 20); + this.badgeFRODF.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeFRODF.TabIndex = 57; + this.badgeFRODF.Text = "FRO"; + // + // badgeMAGDF + // + this.badgeMAGDF.BackColor = System.Drawing.Color.Transparent; + this.badgeMAGDF.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeMAGDF.EmUso = false; + this.badgeMAGDF.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeMAGDF.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeMAGDF.Location = new System.Drawing.Point(340, 165); + this.badgeMAGDF.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeMAGDF.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeMAGDF.ModuleID = "MAGDF"; + this.badgeMAGDF.ModuleSubCode = AgroBase.Models.Enums.S_Code.sMAG; + this.badgeMAGDF.Name = "badgeMAGDF"; + this.badgeMAGDF.Size = new System.Drawing.Size(53, 20); + this.badgeMAGDF.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeMAGDF.TabIndex = 56; + this.badgeMAGDF.Text = "MAG"; + // + // badgeTMPDF + // + this.badgeTMPDF.BackColor = System.Drawing.Color.Transparent; + this.badgeTMPDF.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeTMPDF.EmUso = false; + this.badgeTMPDF.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeTMPDF.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeTMPDF.Location = new System.Drawing.Point(283, 165); + this.badgeTMPDF.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeTMPDF.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeTMPDF.ModuleID = "TMPDF"; + this.badgeTMPDF.ModuleSubCode = AgroBase.Models.Enums.S_Code.sNTC; + this.badgeTMPDF.Name = "badgeTMPDF"; + this.badgeTMPDF.Size = new System.Drawing.Size(53, 20); + this.badgeTMPDF.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeTMPDF.TabIndex = 55; + this.badgeTMPDF.Text = "TMP"; + // + // badgeMOVDF + // + this.badgeMOVDF.BackColor = System.Drawing.Color.Transparent; + this.badgeMOVDF.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeMOVDF.EmUso = false; + this.badgeMOVDF.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeMOVDF.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeMOVDF.Location = new System.Drawing.Point(283, 139); + this.badgeMOVDF.MinimumSize = new System.Drawing.Size(38, 20); + this.badgeMOVDF.ModuleCode = AgroBase.Models.Enums.T_Code.Mov; + this.badgeMOVDF.ModuleID = "DF"; + this.badgeMOVDF.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeMOVDF.Name = "badgeMOVDF"; + this.badgeMOVDF.Size = new System.Drawing.Size(53, 20); + this.badgeMOVDF.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeMOVDF.TabIndex = 54; + this.badgeMOVDF.Text = "MOV"; + // + // badgeDIRDF + // + this.badgeDIRDF.BackColor = System.Drawing.Color.Transparent; + this.badgeDIRDF.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeDIRDF.EmUso = false; + this.badgeDIRDF.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeDIRDF.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeDIRDF.Location = new System.Drawing.Point(283, 113); + this.badgeDIRDF.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeDIRDF.ModuleCode = AgroBase.Models.Enums.T_Code.Dir; + this.badgeDIRDF.ModuleID = "DF"; + this.badgeDIRDF.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeDIRDF.Name = "badgeDIRDF"; + this.badgeDIRDF.Size = new System.Drawing.Size(53, 20); + this.badgeDIRDF.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeDIRDF.TabIndex = 53; + this.badgeDIRDF.Text = "DIR"; + // + // badgeFROET + // + this.badgeFROET.BackColor = System.Drawing.Color.Transparent; + this.badgeFROET.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeFROET.EmUso = false; + this.badgeFROET.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeFROET.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeFROET.Location = new System.Drawing.Point(10, 325); + this.badgeFROET.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeFROET.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeFROET.ModuleID = "FROET"; + this.badgeFROET.ModuleSubCode = AgroBase.Models.Enums.S_Code.sFRO; + this.badgeFROET.Name = "badgeFROET"; + this.badgeFROET.Size = new System.Drawing.Size(53, 20); + this.badgeFROET.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeFROET.TabIndex = 52; + this.badgeFROET.Text = "FRO"; + // + // badgeMAGET + // + this.badgeMAGET.BackColor = System.Drawing.Color.Transparent; + this.badgeMAGET.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeMAGET.EmUso = false; + this.badgeMAGET.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeMAGET.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeMAGET.Location = new System.Drawing.Point(10, 351); + this.badgeMAGET.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeMAGET.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeMAGET.ModuleID = "MAGET"; + this.badgeMAGET.ModuleSubCode = AgroBase.Models.Enums.S_Code.sMAG; + this.badgeMAGET.Name = "badgeMAGET"; + this.badgeMAGET.Size = new System.Drawing.Size(53, 20); + this.badgeMAGET.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeMAGET.TabIndex = 51; + this.badgeMAGET.Text = "MAG"; + // + // badgeTMPET + // + this.badgeTMPET.BackColor = System.Drawing.Color.Transparent; + this.badgeTMPET.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeTMPET.EmUso = false; + this.badgeTMPET.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeTMPET.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeTMPET.Location = new System.Drawing.Point(67, 351); + this.badgeTMPET.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeTMPET.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeTMPET.ModuleID = "TMPET"; + this.badgeTMPET.ModuleSubCode = AgroBase.Models.Enums.S_Code.sNTC; + this.badgeTMPET.Name = "badgeTMPET"; + this.badgeTMPET.Size = new System.Drawing.Size(53, 20); + this.badgeTMPET.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeTMPET.TabIndex = 50; + this.badgeTMPET.Text = "TMP"; + // + // badgeMOVET + // + this.badgeMOVET.BackColor = System.Drawing.Color.Transparent; + this.badgeMOVET.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeMOVET.EmUso = false; + this.badgeMOVET.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeMOVET.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeMOVET.Location = new System.Drawing.Point(67, 325); + this.badgeMOVET.MinimumSize = new System.Drawing.Size(38, 20); + this.badgeMOVET.ModuleCode = AgroBase.Models.Enums.T_Code.Mov; + this.badgeMOVET.ModuleID = "ET"; + this.badgeMOVET.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeMOVET.Name = "badgeMOVET"; + this.badgeMOVET.Size = new System.Drawing.Size(53, 20); + this.badgeMOVET.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeMOVET.TabIndex = 49; + this.badgeMOVET.Text = "MOV"; + // + // badgeDIRET + // + this.badgeDIRET.BackColor = System.Drawing.Color.Transparent; + this.badgeDIRET.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeDIRET.EmUso = false; + this.badgeDIRET.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeDIRET.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeDIRET.Location = new System.Drawing.Point(67, 299); + this.badgeDIRET.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeDIRET.ModuleCode = AgroBase.Models.Enums.T_Code.Dir; + this.badgeDIRET.ModuleID = "ET"; + this.badgeDIRET.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeDIRET.Name = "badgeDIRET"; + this.badgeDIRET.Size = new System.Drawing.Size(53, 20); + this.badgeDIRET.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeDIRET.TabIndex = 48; + this.badgeDIRET.Text = "DIR"; + // + // badgeFROEF + // + this.badgeFROEF.BackColor = System.Drawing.Color.Transparent; + this.badgeFROEF.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeFROEF.EmUso = false; + this.badgeFROEF.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeFROEF.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeFROEF.Location = new System.Drawing.Point(10, 139); + this.badgeFROEF.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeFROEF.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeFROEF.ModuleID = "FROEF"; + this.badgeFROEF.ModuleSubCode = AgroBase.Models.Enums.S_Code.sFRO; + this.badgeFROEF.Name = "badgeFROEF"; + this.badgeFROEF.Size = new System.Drawing.Size(53, 20); + this.badgeFROEF.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeFROEF.TabIndex = 47; + this.badgeFROEF.Text = "FRO"; + // + // badgeMAGEF + // + this.badgeMAGEF.BackColor = System.Drawing.Color.Transparent; + this.badgeMAGEF.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeMAGEF.EmUso = false; + this.badgeMAGEF.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeMAGEF.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeMAGEF.Location = new System.Drawing.Point(10, 165); + this.badgeMAGEF.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeMAGEF.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeMAGEF.ModuleID = "MAGEF"; + this.badgeMAGEF.ModuleSubCode = AgroBase.Models.Enums.S_Code.sMAG; + this.badgeMAGEF.Name = "badgeMAGEF"; + this.badgeMAGEF.Size = new System.Drawing.Size(53, 20); + this.badgeMAGEF.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeMAGEF.TabIndex = 46; + this.badgeMAGEF.Text = "MAG"; + // + // badgeTMPEF + // + this.badgeTMPEF.BackColor = System.Drawing.Color.Transparent; + this.badgeTMPEF.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeTMPEF.EmUso = false; + this.badgeTMPEF.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeTMPEF.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeTMPEF.Location = new System.Drawing.Point(67, 165); + this.badgeTMPEF.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeTMPEF.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeTMPEF.ModuleID = "TMPEF"; + this.badgeTMPEF.ModuleSubCode = AgroBase.Models.Enums.S_Code.sNTC; + this.badgeTMPEF.Name = "badgeTMPEF"; + this.badgeTMPEF.Size = new System.Drawing.Size(53, 20); + this.badgeTMPEF.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeTMPEF.TabIndex = 45; + this.badgeTMPEF.Text = "TMP"; + // + // badgeMOVEF + // + this.badgeMOVEF.BackColor = System.Drawing.Color.Transparent; + this.badgeMOVEF.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeMOVEF.EmUso = false; + this.badgeMOVEF.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeMOVEF.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeMOVEF.Location = new System.Drawing.Point(67, 139); + this.badgeMOVEF.MinimumSize = new System.Drawing.Size(38, 20); + this.badgeMOVEF.ModuleCode = AgroBase.Models.Enums.T_Code.Mov; + this.badgeMOVEF.ModuleID = "EF"; + this.badgeMOVEF.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeMOVEF.Name = "badgeMOVEF"; + this.badgeMOVEF.Size = new System.Drawing.Size(53, 20); + this.badgeMOVEF.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeMOVEF.TabIndex = 44; + this.badgeMOVEF.Text = "MOV"; + // + // badgeDIREF + // + this.badgeDIREF.BackColor = System.Drawing.Color.Transparent; + this.badgeDIREF.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeDIREF.EmUso = false; + this.badgeDIREF.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeDIREF.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeDIREF.Location = new System.Drawing.Point(67, 113); + this.badgeDIREF.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeDIREF.ModuleCode = AgroBase.Models.Enums.T_Code.Dir; + this.badgeDIREF.ModuleID = "EF"; + this.badgeDIREF.ModuleSubCode = AgroBase.Models.Enums.S_Code.sVZO; + this.badgeDIREF.Name = "badgeDIREF"; + this.badgeDIREF.Size = new System.Drawing.Size(53, 20); + this.badgeDIREF.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeDIREF.TabIndex = 43; + this.badgeDIREF.Text = "DIR"; + // + // badgeAB3V + // + this.badgeAB3V.BackColor = System.Drawing.Color.Transparent; + this.badgeAB3V.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeAB3V.EmUso = false; + this.badgeAB3V.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeAB3V.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeAB3V.Location = new System.Drawing.Point(4, 77); + this.badgeAB3V.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeAB3V.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeAB3V.ModuleID = "AB3V"; + this.badgeAB3V.ModuleSubCode = AgroBase.Models.Enums.S_Code.sCOR; + this.badgeAB3V.Name = "badgeAB3V"; + this.badgeAB3V.Size = new System.Drawing.Size(53, 20); + this.badgeAB3V.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeAB3V.TabIndex = 42; + this.badgeAB3V.Text = "AB3V"; + // + // badgeAB24V + // + this.badgeAB24V.BackColor = System.Drawing.Color.Transparent; + this.badgeAB24V.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeAB24V.EmUso = false; + this.badgeAB24V.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeAB24V.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeAB24V.Location = new System.Drawing.Point(289, 77); + this.badgeAB24V.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeAB24V.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeAB24V.ModuleID = "AB24V"; + this.badgeAB24V.ModuleSubCode = AgroBase.Models.Enums.S_Code.sCOR; + this.badgeAB24V.Name = "badgeAB24V"; + this.badgeAB24V.Size = new System.Drawing.Size(53, 20); + this.badgeAB24V.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeAB24V.TabIndex = 41; + this.badgeAB24V.Text = "AB24V"; + // + // badgeAB19V + // + this.badgeAB19V.BackColor = System.Drawing.Color.Transparent; + this.badgeAB19V.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeAB19V.EmUso = false; + this.badgeAB19V.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeAB19V.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeAB19V.Location = new System.Drawing.Point(232, 77); + this.badgeAB19V.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeAB19V.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeAB19V.ModuleID = "AB19V"; + this.badgeAB19V.ModuleSubCode = AgroBase.Models.Enums.S_Code.sCOR; + this.badgeAB19V.Name = "badgeAB19V"; + this.badgeAB19V.Size = new System.Drawing.Size(53, 20); + this.badgeAB19V.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeAB19V.TabIndex = 40; + this.badgeAB19V.Text = "AB19V"; + // + // badgeAB12V + // + this.badgeAB12V.BackColor = System.Drawing.Color.Transparent; + this.badgeAB12V.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeAB12V.EmUso = false; + this.badgeAB12V.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeAB12V.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeAB12V.Location = new System.Drawing.Point(175, 77); + this.badgeAB12V.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeAB12V.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeAB12V.ModuleID = "AB12V"; + this.badgeAB12V.ModuleSubCode = AgroBase.Models.Enums.S_Code.sCOR; + this.badgeAB12V.Name = "badgeAB12V"; + this.badgeAB12V.Size = new System.Drawing.Size(53, 20); + this.badgeAB12V.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeAB12V.TabIndex = 39; + this.badgeAB12V.Text = "AB12V"; + // + // badgeAB7V2 + // + this.badgeAB7V2.BackColor = System.Drawing.Color.Transparent; + this.badgeAB7V2.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeAB7V2.EmUso = false; + this.badgeAB7V2.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeAB7V2.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeAB7V2.Location = new System.Drawing.Point(118, 77); + this.badgeAB7V2.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeAB7V2.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeAB7V2.ModuleID = "AB7V2"; + this.badgeAB7V2.ModuleSubCode = AgroBase.Models.Enums.S_Code.sCOR; + this.badgeAB7V2.Name = "badgeAB7V2"; + this.badgeAB7V2.Size = new System.Drawing.Size(53, 20); + this.badgeAB7V2.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeAB7V2.TabIndex = 38; + this.badgeAB7V2.Text = "AB7V2"; + // + // badgeAB5V + // + this.badgeAB5V.BackColor = System.Drawing.Color.Transparent; + this.badgeAB5V.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeAB5V.EmUso = false; + this.badgeAB5V.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeAB5V.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeAB5V.Location = new System.Drawing.Point(61, 77); + this.badgeAB5V.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeAB5V.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeAB5V.ModuleID = "AB5V"; + this.badgeAB5V.ModuleSubCode = AgroBase.Models.Enums.S_Code.sCOR; + this.badgeAB5V.Name = "badgeAB5V"; + this.badgeAB5V.Size = new System.Drawing.Size(53, 20); + this.badgeAB5V.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeAB5V.TabIndex = 37; + this.badgeAB5V.Text = "AB5V"; + // + // badgeAB36V + // + this.badgeAB36V.BackColor = System.Drawing.Color.Transparent; + this.badgeAB36V.Cursor = System.Windows.Forms.Cursors.Hand; + this.badgeAB36V.EmUso = false; + this.badgeAB36V.Font = new System.Drawing.Font("Verdana", 6F, System.Drawing.FontStyle.Bold, System.Drawing.GraphicsUnit.Point, ((byte)(0))); + this.badgeAB36V.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); + this.badgeAB36V.Location = new System.Drawing.Point(346, 77); + this.badgeAB36V.MinimumSize = new System.Drawing.Size(42, 20); + this.badgeAB36V.ModuleCode = AgroBase.Models.Enums.T_Code.Sen; + this.badgeAB36V.ModuleID = "AB36V"; + this.badgeAB36V.ModuleSubCode = AgroBase.Models.Enums.S_Code.sCOR; + this.badgeAB36V.Name = "badgeAB36V"; + this.badgeAB36V.Size = new System.Drawing.Size(53, 20); + this.badgeAB36V.State = AgroBase.Models.Enums.StatusModulo.Desconectado; + this.badgeAB36V.TabIndex = 36; + this.badgeAB36V.Text = "AB36V"; + // // lblMapaTitulo // this.lblMapaTitulo.BackColor = System.Drawing.Color.Transparent; @@ -418,11 +1486,11 @@ this.pnlImpedimentoMapa.Controls.Add(this.lblImpedimentoMapa); this.pnlImpedimentoMapa.CornerRadius = 7; this.pnlImpedimentoMapa.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(40)))), ((int)(((byte)(35)))), ((int)(((byte)(14))))); - this.pnlImpedimentoMapa.Location = new System.Drawing.Point(12, 35); + this.pnlImpedimentoMapa.Location = new System.Drawing.Point(12, 30); this.pnlImpedimentoMapa.MinimumSize = new System.Drawing.Size(30, 30); this.pnlImpedimentoMapa.Name = "pnlImpedimentoMapa"; - this.pnlImpedimentoMapa.Padding = new System.Windows.Forms.Padding(8); - this.pnlImpedimentoMapa.Size = new System.Drawing.Size(382, 35); + this.pnlImpedimentoMapa.Padding = new System.Windows.Forms.Padding(2); + this.pnlImpedimentoMapa.Size = new System.Drawing.Size(382, 40); this.pnlImpedimentoMapa.TabIndex = 1; // // lblImpedimentoMapa @@ -430,474 +1498,15 @@ this.lblImpedimentoMapa.AutoEllipsis = true; this.lblImpedimentoMapa.BackColor = System.Drawing.Color.Transparent; this.lblImpedimentoMapa.Dock = System.Windows.Forms.DockStyle.Fill; - this.lblImpedimentoMapa.Font = new System.Drawing.Font("Segoe UI", 7.7F, System.Drawing.FontStyle.Bold); + this.lblImpedimentoMapa.Font = new System.Drawing.Font("Segoe UI", 6.7F, System.Drawing.FontStyle.Bold); this.lblImpedimentoMapa.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); - this.lblImpedimentoMapa.Location = new System.Drawing.Point(8, 8); + this.lblImpedimentoMapa.Location = new System.Drawing.Point(2, 2); this.lblImpedimentoMapa.Name = "lblImpedimentoMapa"; - this.lblImpedimentoMapa.Size = new System.Drawing.Size(366, 19); + this.lblImpedimentoMapa.Size = new System.Drawing.Size(378, 36); this.lblImpedimentoMapa.TabIndex = 0; - this.lblImpedimentoMapa.Text = "⚠ Impedimento atual: leitura instável do IMU"; + this.lblImpedimentoMapa.Text = "Impedimento: Nenhum"; this.lblImpedimentoMapa.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // - // picRover - // - this.picRover.BackColor = System.Drawing.Color.Transparent; - this.picRover.Image = global::AgroBase.Properties.Resources.robo_superior; - this.picRover.Location = new System.Drawing.Point(77, 76); - this.picRover.Name = "picRover"; - this.picRover.Size = new System.Drawing.Size(244, 385); - this.picRover.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; - this.picRover.TabIndex = 2; - this.picRover.TabStop = false; - // - // badgeBat - // - this.badgeBat.BackColor = System.Drawing.Color.Transparent; - this.badgeBat.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeBat.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeBat.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeBat.Location = new System.Drawing.Point(0, 0); - this.badgeBat.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeBat.ModuleCode = "MOD"; - this.badgeBat.Name = "badgeBat"; - this.badgeBat.Size = new System.Drawing.Size(45, 27); - this.badgeBat.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeBat.TabIndex = 3; - // - // badgeB36 - // - this.badgeB36.BackColor = System.Drawing.Color.Transparent; - this.badgeB36.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB36.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB36.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB36.Location = new System.Drawing.Point(0, 0); - this.badgeB36.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB36.ModuleCode = "MOD"; - this.badgeB36.Name = "badgeB36"; - this.badgeB36.Size = new System.Drawing.Size(45, 27); - this.badgeB36.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB36.TabIndex = 4; - // - // badgeB24 - // - this.badgeB24.BackColor = System.Drawing.Color.Transparent; - this.badgeB24.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB24.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB24.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB24.Location = new System.Drawing.Point(0, 0); - this.badgeB24.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB24.ModuleCode = "MOD"; - this.badgeB24.Name = "badgeB24"; - this.badgeB24.Size = new System.Drawing.Size(45, 27); - this.badgeB24.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB24.TabIndex = 5; - // - // badgeB19 - // - this.badgeB19.BackColor = System.Drawing.Color.Transparent; - this.badgeB19.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB19.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB19.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB19.Location = new System.Drawing.Point(0, 0); - this.badgeB19.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB19.ModuleCode = "MOD"; - this.badgeB19.Name = "badgeB19"; - this.badgeB19.Size = new System.Drawing.Size(45, 27); - this.badgeB19.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB19.TabIndex = 6; - // - // badgeB12 - // - this.badgeB12.BackColor = System.Drawing.Color.Transparent; - this.badgeB12.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB12.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB12.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB12.Location = new System.Drawing.Point(0, 0); - this.badgeB12.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB12.ModuleCode = "MOD"; - this.badgeB12.Name = "badgeB12"; - this.badgeB12.Size = new System.Drawing.Size(45, 27); - this.badgeB12.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB12.TabIndex = 7; - // - // badgeB7 - // - this.badgeB7.BackColor = System.Drawing.Color.Transparent; - this.badgeB7.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB7.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB7.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB7.Location = new System.Drawing.Point(0, 0); - this.badgeB7.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB7.ModuleCode = "MOD"; - this.badgeB7.Name = "badgeB7"; - this.badgeB7.Size = new System.Drawing.Size(45, 27); - this.badgeB7.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB7.TabIndex = 8; - // - // badgeB5 - // - this.badgeB5.BackColor = System.Drawing.Color.Transparent; - this.badgeB5.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB5.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB5.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB5.Location = new System.Drawing.Point(0, 0); - this.badgeB5.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB5.ModuleCode = "MOD"; - this.badgeB5.Name = "badgeB5"; - this.badgeB5.Size = new System.Drawing.Size(45, 27); - this.badgeB5.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB5.TabIndex = 9; - // - // badgeB3 - // - this.badgeB3.BackColor = System.Drawing.Color.Transparent; - this.badgeB3.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB3.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB3.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB3.Location = new System.Drawing.Point(0, 0); - this.badgeB3.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB3.ModuleCode = "MOD"; - this.badgeB3.Name = "badgeB3"; - this.badgeB3.Size = new System.Drawing.Size(45, 27); - this.badgeB3.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB3.TabIndex = 10; - // - // badgeDir - // - this.badgeDir.BackColor = System.Drawing.Color.Transparent; - this.badgeDir.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeDir.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeDir.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeDir.Location = new System.Drawing.Point(0, 0); - this.badgeDir.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeDir.ModuleCode = "MOD"; - this.badgeDir.Name = "badgeDir"; - this.badgeDir.Size = new System.Drawing.Size(45, 27); - this.badgeDir.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeDir.TabIndex = 11; - // - // badgeMov - // - this.badgeMov.BackColor = System.Drawing.Color.Transparent; - this.badgeMov.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeMov.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeMov.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeMov.Location = new System.Drawing.Point(0, 0); - this.badgeMov.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeMov.ModuleCode = "MOD"; - this.badgeMov.Name = "badgeMov"; - this.badgeMov.Size = new System.Drawing.Size(45, 27); - this.badgeMov.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeMov.TabIndex = 12; - // - // badgeTmp - // - this.badgeTmp.BackColor = System.Drawing.Color.Transparent; - this.badgeTmp.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeTmp.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeTmp.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeTmp.Location = new System.Drawing.Point(0, 0); - this.badgeTmp.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeTmp.ModuleCode = "MOD"; - this.badgeTmp.Name = "badgeTmp"; - this.badgeTmp.Size = new System.Drawing.Size(45, 27); - this.badgeTmp.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeTmp.TabIndex = 13; - // - // badgeMag - // - this.badgeMag.BackColor = System.Drawing.Color.Transparent; - this.badgeMag.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeMag.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeMag.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeMag.Location = new System.Drawing.Point(0, 0); - this.badgeMag.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeMag.ModuleCode = "MOD"; - this.badgeMag.Name = "badgeMag"; - this.badgeMag.Size = new System.Drawing.Size(45, 27); - this.badgeMag.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeMag.TabIndex = 14; - // - // badgeImu - // - this.badgeImu.BackColor = System.Drawing.Color.Transparent; - this.badgeImu.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeImu.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeImu.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeImu.Location = new System.Drawing.Point(0, 0); - this.badgeImu.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeImu.ModuleCode = "MOD"; - this.badgeImu.Name = "badgeImu"; - this.badgeImu.Size = new System.Drawing.Size(45, 27); - this.badgeImu.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeImu.TabIndex = 15; - // - // badgeGps - // - this.badgeGps.BackColor = System.Drawing.Color.Transparent; - this.badgeGps.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeGps.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeGps.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeGps.Location = new System.Drawing.Point(0, 0); - this.badgeGps.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeGps.ModuleCode = "MOD"; - this.badgeGps.Name = "badgeGps"; - this.badgeGps.Size = new System.Drawing.Size(45, 27); - this.badgeGps.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeGps.TabIndex = 16; - // - // badgeSen - // - this.badgeSen.BackColor = System.Drawing.Color.Transparent; - this.badgeSen.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeSen.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeSen.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeSen.Location = new System.Drawing.Point(0, 0); - this.badgeSen.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeSen.ModuleCode = "MOD"; - this.badgeSen.Name = "badgeSen"; - this.badgeSen.Size = new System.Drawing.Size(45, 27); - this.badgeSen.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeSen.TabIndex = 17; - // - // badgeNpc - // - this.badgeNpc.BackColor = System.Drawing.Color.Transparent; - this.badgeNpc.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeNpc.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeNpc.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeNpc.Location = new System.Drawing.Point(0, 0); - this.badgeNpc.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeNpc.ModuleCode = "MOD"; - this.badgeNpc.Name = "badgeNpc"; - this.badgeNpc.Size = new System.Drawing.Size(45, 27); - this.badgeNpc.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeNpc.TabIndex = 18; - // - // badgeCan - // - this.badgeCan.BackColor = System.Drawing.Color.Transparent; - this.badgeCan.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeCan.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeCan.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeCan.Location = new System.Drawing.Point(0, 0); - this.badgeCan.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeCan.ModuleCode = "MOD"; - this.badgeCan.Name = "badgeCan"; - this.badgeCan.Size = new System.Drawing.Size(45, 27); - this.badgeCan.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeCan.TabIndex = 19; - // - // badgeLan - // - this.badgeLan.BackColor = System.Drawing.Color.Transparent; - this.badgeLan.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeLan.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeLan.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeLan.Location = new System.Drawing.Point(0, 0); - this.badgeLan.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeLan.ModuleCode = "MOD"; - this.badgeLan.Name = "badgeLan"; - this.badgeLan.Size = new System.Drawing.Size(45, 27); - this.badgeLan.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeLan.TabIndex = 20; - // - // badgeCls - // - this.badgeCls.BackColor = System.Drawing.Color.Transparent; - this.badgeCls.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeCls.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeCls.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeCls.Location = new System.Drawing.Point(0, 0); - this.badgeCls.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeCls.ModuleCode = "MOD"; - this.badgeCls.Name = "badgeCls"; - this.badgeCls.Size = new System.Drawing.Size(45, 27); - this.badgeCls.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeCls.TabIndex = 21; - // - // badgeCle - // - this.badgeCle.BackColor = System.Drawing.Color.Transparent; - this.badgeCle.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeCle.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeCle.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeCle.Location = new System.Drawing.Point(0, 0); - this.badgeCle.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeCle.ModuleCode = "MOD"; - this.badgeCle.Name = "badgeCle"; - this.badgeCle.Size = new System.Drawing.Size(45, 27); - this.badgeCle.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeCle.TabIndex = 22; - // - // badgePrs - // - this.badgePrs.BackColor = System.Drawing.Color.Transparent; - this.badgePrs.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgePrs.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgePrs.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgePrs.Location = new System.Drawing.Point(0, 0); - this.badgePrs.MinimumSize = new System.Drawing.Size(42, 26); - this.badgePrs.ModuleCode = "MOD"; - this.badgePrs.Name = "badgePrs"; - this.badgePrs.Size = new System.Drawing.Size(45, 27); - this.badgePrs.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgePrs.TabIndex = 23; - // - // badgeAtu - // - this.badgeAtu.BackColor = System.Drawing.Color.Transparent; - this.badgeAtu.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeAtu.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeAtu.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeAtu.Location = new System.Drawing.Point(0, 0); - this.badgeAtu.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeAtu.ModuleCode = "MOD"; - this.badgeAtu.Name = "badgeAtu"; - this.badgeAtu.Size = new System.Drawing.Size(45, 27); - this.badgeAtu.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeAtu.TabIndex = 24; - // - // badgeAgit - // - this.badgeAgit.BackColor = System.Drawing.Color.Transparent; - this.badgeAgit.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeAgit.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeAgit.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeAgit.Location = new System.Drawing.Point(0, 0); - this.badgeAgit.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeAgit.ModuleCode = "MOD"; - this.badgeAgit.Name = "badgeAgit"; - this.badgeAgit.Size = new System.Drawing.Size(45, 27); - this.badgeAgit.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeAgit.TabIndex = 25; - // - // badgeFlx - // - this.badgeFlx.BackColor = System.Drawing.Color.Transparent; - this.badgeFlx.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeFlx.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeFlx.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeFlx.Location = new System.Drawing.Point(0, 0); - this.badgeFlx.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeFlx.ModuleCode = "MOD"; - this.badgeFlx.Name = "badgeFlx"; - this.badgeFlx.Size = new System.Drawing.Size(45, 27); - this.badgeFlx.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeFlx.TabIndex = 26; - // - // badgeCam - // - this.badgeCam.BackColor = System.Drawing.Color.Transparent; - this.badgeCam.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeCam.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeCam.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeCam.Location = new System.Drawing.Point(0, 0); - this.badgeCam.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeCam.ModuleCode = "MOD"; - this.badgeCam.Name = "badgeCam"; - this.badgeCam.Size = new System.Drawing.Size(45, 27); - this.badgeCam.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeCam.TabIndex = 27; - // - // badgeB01 - // - this.badgeB01.BackColor = System.Drawing.Color.Transparent; - this.badgeB01.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB01.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB01.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB01.Location = new System.Drawing.Point(0, 0); - this.badgeB01.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB01.ModuleCode = "MOD"; - this.badgeB01.Name = "badgeB01"; - this.badgeB01.Size = new System.Drawing.Size(45, 27); - this.badgeB01.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB01.TabIndex = 28; - // - // badgeB02 - // - this.badgeB02.BackColor = System.Drawing.Color.Transparent; - this.badgeB02.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB02.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB02.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB02.Location = new System.Drawing.Point(0, 0); - this.badgeB02.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB02.ModuleCode = "MOD"; - this.badgeB02.Name = "badgeB02"; - this.badgeB02.Size = new System.Drawing.Size(45, 27); - this.badgeB02.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB02.TabIndex = 29; - // - // badgeB03 - // - this.badgeB03.BackColor = System.Drawing.Color.Transparent; - this.badgeB03.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB03.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB03.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB03.Location = new System.Drawing.Point(0, 0); - this.badgeB03.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB03.ModuleCode = "MOD"; - this.badgeB03.Name = "badgeB03"; - this.badgeB03.Size = new System.Drawing.Size(45, 27); - this.badgeB03.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB03.TabIndex = 30; - // - // badgeB04 - // - this.badgeB04.BackColor = System.Drawing.Color.Transparent; - this.badgeB04.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB04.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB04.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB04.Location = new System.Drawing.Point(0, 0); - this.badgeB04.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB04.ModuleCode = "MOD"; - this.badgeB04.Name = "badgeB04"; - this.badgeB04.Size = new System.Drawing.Size(45, 27); - this.badgeB04.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB04.TabIndex = 31; - // - // badgeB05 - // - this.badgeB05.BackColor = System.Drawing.Color.Transparent; - this.badgeB05.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB05.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB05.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB05.Location = new System.Drawing.Point(0, 0); - this.badgeB05.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB05.ModuleCode = "MOD"; - this.badgeB05.Name = "badgeB05"; - this.badgeB05.Size = new System.Drawing.Size(45, 27); - this.badgeB05.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB05.TabIndex = 32; - // - // badgeB06 - // - this.badgeB06.BackColor = System.Drawing.Color.Transparent; - this.badgeB06.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB06.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB06.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB06.Location = new System.Drawing.Point(0, 0); - this.badgeB06.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB06.ModuleCode = "MOD"; - this.badgeB06.Name = "badgeB06"; - this.badgeB06.Size = new System.Drawing.Size(45, 27); - this.badgeB06.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB06.TabIndex = 33; - // - // badgeB07 - // - this.badgeB07.BackColor = System.Drawing.Color.Transparent; - this.badgeB07.Cursor = System.Windows.Forms.Cursors.Hand; - this.badgeB07.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); - this.badgeB07.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.badgeB07.Location = new System.Drawing.Point(0, 0); - this.badgeB07.MinimumSize = new System.Drawing.Size(42, 26); - this.badgeB07.ModuleCode = "MOD"; - this.badgeB07.Name = "badgeB07"; - this.badgeB07.Size = new System.Drawing.Size(45, 27); - this.badgeB07.State = AgroBase.Forms.IHM.Controls.HmiModuleState.Operante; - this.badgeB07.TabIndex = 34; - // // pnlLegenda // this.pnlLegenda.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); @@ -906,11 +1515,11 @@ this.pnlLegenda.Controls.Add(this.lblLegenda); this.pnlLegenda.CornerRadius = 7; this.pnlLegenda.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.pnlLegenda.Location = new System.Drawing.Point(12, 478); + this.pnlLegenda.Location = new System.Drawing.Point(12, 491); this.pnlLegenda.MinimumSize = new System.Drawing.Size(30, 30); this.pnlLegenda.Name = "pnlLegenda"; this.pnlLegenda.Padding = new System.Windows.Forms.Padding(8); - this.pnlLegenda.Size = new System.Drawing.Size(382, 43); + this.pnlLegenda.Size = new System.Drawing.Size(382, 30); this.pnlLegenda.TabIndex = 35; // // lblLegenda @@ -918,13 +1527,21 @@ this.lblLegenda.BackColor = System.Drawing.Color.Transparent; this.lblLegenda.Dock = System.Windows.Forms.DockStyle.Fill; this.lblLegenda.Font = new System.Drawing.Font("Segoe UI", 8F); - this.lblLegenda.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); this.lblLegenda.Location = new System.Drawing.Point(8, 8); this.lblLegenda.Name = "lblLegenda"; - this.lblLegenda.Size = new System.Drawing.Size(366, 27); + this.lblLegenda.Size = new System.Drawing.Size(366, 14); this.lblLegenda.TabIndex = 0; - this.lblLegenda.Text = "● Operante ● Alerta ● Falha ● Desconectado"; - this.lblLegenda.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; + // + // picRover + // + this.picRover.BackColor = System.Drawing.Color.Transparent; + this.picRover.Image = global::AgroBase.Properties.Resources.robo_superior; + this.picRover.Location = new System.Drawing.Point(15, 76); + this.picRover.Name = "picRover"; + this.picRover.Size = new System.Drawing.Size(379, 409); + this.picRover.SizeMode = System.Windows.Forms.PictureBoxSizeMode.Zoom; + this.picRover.TabIndex = 2; + this.picRover.TabStop = false; // // rightLayout // @@ -940,7 +1557,7 @@ this.rightLayout.Name = "rightLayout"; this.rightLayout.RowCount = 3; this.rightLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 160F)); - this.rightLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 92F)); + this.rightLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 60F)); this.rightLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.rightLayout.Size = new System.Drawing.Size(373, 521); this.rightLayout.TabIndex = 1; @@ -976,9 +1593,10 @@ this.selectedLayout.Name = "selectedLayout"; this.selectedLayout.RowCount = 4; this.selectedLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.selectedLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 17F)); + this.selectedLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 14F)); this.selectedLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); - this.selectedLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 31F)); + this.selectedLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 54F)); + this.selectedLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.selectedLayout.Size = new System.Drawing.Size(357, 140); this.selectedLayout.TabIndex = 0; // @@ -1002,42 +1620,147 @@ this.lblSelecionadoSubtitulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); this.lblSelecionadoSubtitulo.Location = new System.Drawing.Point(3, 20); this.lblSelecionadoSubtitulo.Name = "lblSelecionadoSubtitulo"; - this.lblSelecionadoSubtitulo.Size = new System.Drawing.Size(351, 17); + this.lblSelecionadoSubtitulo.Size = new System.Drawing.Size(351, 14); this.lblSelecionadoSubtitulo.TabIndex = 1; this.lblSelecionadoSubtitulo.Text = "Detalhes e ajustes locais"; // // infoGrid // this.infoGrid.BackColor = System.Drawing.Color.Transparent; - this.infoGrid.ColumnCount = 6; - this.infoGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66F)); - this.infoGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66F)); - this.infoGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66F)); - this.infoGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66F)); - this.infoGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.66F)); - this.infoGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 16.7F)); + this.infoGrid.ColumnCount = 3; + this.infoGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F)); + this.infoGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F)); + this.infoGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 34F)); + this.infoGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.infoGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.infoGrid.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.infoGrid.Controls.Add(this.lblCan, 0, 2); + this.infoGrid.Controls.Add(this.lblLatencia, 0, 2); + this.infoGrid.Controls.Add(this.lblIniciado, 0, 1); + this.infoGrid.Controls.Add(this.lblSaude, 0, 1); + this.infoGrid.Controls.Add(this.lblStatus, 0, 1); + this.infoGrid.Controls.Add(this.lblModulo, 0, 0); + this.infoGrid.Controls.Add(this.lblID, 0, 0); + this.infoGrid.Controls.Add(this.lblSCode, 0, 0); this.infoGrid.Dock = System.Windows.Forms.DockStyle.Fill; - this.infoGrid.Location = new System.Drawing.Point(3, 40); + this.infoGrid.Location = new System.Drawing.Point(3, 37); this.infoGrid.Name = "infoGrid"; this.infoGrid.RowCount = 3; this.infoGrid.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); this.infoGrid.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); this.infoGrid.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 33.34F)); - this.infoGrid.Size = new System.Drawing.Size(351, 66); + this.infoGrid.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.infoGrid.Size = new System.Drawing.Size(351, 46); this.infoGrid.TabIndex = 2; // + // lblCan + // + this.lblCan.BackColor = System.Drawing.Color.Transparent; + this.lblCan.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblCan.Font = new System.Drawing.Font("Segoe UI", 7.5F); + this.lblCan.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblCan.Location = new System.Drawing.Point(3, 30); + this.lblCan.Name = "lblCan"; + this.lblCan.Size = new System.Drawing.Size(109, 16); + this.lblCan.TabIndex = 10; + this.lblCan.Text = "CAN: -"; + // + // lblLatencia + // + this.lblLatencia.BackColor = System.Drawing.Color.Transparent; + this.lblLatencia.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblLatencia.Font = new System.Drawing.Font("Segoe UI", 7.5F); + this.lblLatencia.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblLatencia.Location = new System.Drawing.Point(118, 30); + this.lblLatencia.Name = "lblLatencia"; + this.lblLatencia.Size = new System.Drawing.Size(109, 16); + this.lblLatencia.TabIndex = 9; + this.lblLatencia.Text = "Latência: -"; + // + // lblIniciado + // + this.lblIniciado.BackColor = System.Drawing.Color.Transparent; + this.lblIniciado.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblIniciado.Font = new System.Drawing.Font("Segoe UI", 7.5F); + this.lblIniciado.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblIniciado.Location = new System.Drawing.Point(118, 15); + this.lblIniciado.Name = "lblIniciado"; + this.lblIniciado.Size = new System.Drawing.Size(109, 15); + this.lblIniciado.TabIndex = 7; + this.lblIniciado.Text = "Iniciado: -"; + // + // lblSaude + // + this.lblSaude.BackColor = System.Drawing.Color.Transparent; + this.lblSaude.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblSaude.Font = new System.Drawing.Font("Segoe UI", 7.5F); + this.lblSaude.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblSaude.Location = new System.Drawing.Point(233, 15); + this.lblSaude.Name = "lblSaude"; + this.lblSaude.Size = new System.Drawing.Size(115, 15); + this.lblSaude.TabIndex = 6; + this.lblSaude.Text = "Saúde: -"; + // + // lblStatus + // + this.lblStatus.BackColor = System.Drawing.Color.Transparent; + this.lblStatus.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblStatus.Font = new System.Drawing.Font("Segoe UI", 7.5F); + this.lblStatus.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblStatus.Location = new System.Drawing.Point(3, 15); + this.lblStatus.Name = "lblStatus"; + this.lblStatus.Size = new System.Drawing.Size(109, 15); + this.lblStatus.TabIndex = 5; + this.lblStatus.Text = "Status: -"; + // + // lblModulo + // + this.lblModulo.BackColor = System.Drawing.Color.Transparent; + this.lblModulo.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblModulo.Font = new System.Drawing.Font("Segoe UI", 7.5F); + this.lblModulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblModulo.Location = new System.Drawing.Point(3, 0); + this.lblModulo.Name = "lblModulo"; + this.lblModulo.Size = new System.Drawing.Size(109, 15); + this.lblModulo.TabIndex = 4; + this.lblModulo.Text = "Módulo: -"; + // + // lblID + // + this.lblID.BackColor = System.Drawing.Color.Transparent; + this.lblID.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblID.Font = new System.Drawing.Font("Segoe UI", 7.5F); + this.lblID.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblID.Location = new System.Drawing.Point(118, 0); + this.lblID.Name = "lblID"; + this.lblID.Size = new System.Drawing.Size(109, 15); + this.lblID.TabIndex = 3; + this.lblID.Text = "ID: -"; + // + // lblSCode + // + this.lblSCode.BackColor = System.Drawing.Color.Transparent; + this.lblSCode.Dock = System.Windows.Forms.DockStyle.Fill; + this.lblSCode.Font = new System.Drawing.Font("Segoe UI", 7.5F); + this.lblSCode.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); + this.lblSCode.Location = new System.Drawing.Point(233, 0); + this.lblSCode.Name = "lblSCode"; + this.lblSCode.Size = new System.Drawing.Size(115, 15); + this.lblSCode.TabIndex = 2; + this.lblSCode.Text = "SCode: -"; + // // lblImpedimentoModulo // this.lblImpedimentoModulo.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); this.lblImpedimentoModulo.Dock = System.Windows.Forms.DockStyle.Fill; this.lblImpedimentoModulo.Font = new System.Drawing.Font("Segoe UI", 8F, System.Drawing.FontStyle.Bold); this.lblImpedimentoModulo.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(244)))), ((int)(((byte)(181)))), ((int)(((byte)(68))))); - this.lblImpedimentoModulo.Location = new System.Drawing.Point(3, 109); + this.lblImpedimentoModulo.Location = new System.Drawing.Point(3, 86); this.lblImpedimentoModulo.Name = "lblImpedimentoModulo"; this.lblImpedimentoModulo.Padding = new System.Windows.Forms.Padding(7, 0, 0, 0); - this.lblImpedimentoModulo.Size = new System.Drawing.Size(351, 31); + this.lblImpedimentoModulo.Size = new System.Drawing.Size(351, 54); this.lblImpedimentoModulo.TabIndex = 3; - this.lblImpedimentoModulo.Text = "Impedimento: Inclinação inconsistente"; + this.lblImpedimentoModulo.Text = "Impedimento: Nenhum"; this.lblImpedimentoModulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // pnlAcoesPrimarias @@ -1054,27 +1777,25 @@ this.pnlAcoesPrimarias.MinimumSize = new System.Drawing.Size(30, 30); this.pnlAcoesPrimarias.Name = "pnlAcoesPrimarias"; this.pnlAcoesPrimarias.Padding = new System.Windows.Forms.Padding(8); - this.pnlAcoesPrimarias.Size = new System.Drawing.Size(373, 88); + this.pnlAcoesPrimarias.Size = new System.Drawing.Size(373, 56); this.pnlAcoesPrimarias.TabIndex = 1; // // actionsLayout // this.actionsLayout.BackColor = System.Drawing.Color.Transparent; this.actionsLayout.ColumnCount = 3; - this.actionsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 27F)); - this.actionsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 23F)); - this.actionsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 50F)); + this.actionsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F)); + this.actionsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33F)); + this.actionsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 34F)); this.actionsLayout.Controls.Add(this.chkMandatorio, 0, 0); this.actionsLayout.Controls.Add(this.chkEmUso, 1, 0); this.actionsLayout.Controls.Add(this.btnSalvarModulo, 2, 0); - this.actionsLayout.Controls.Add(this.btnIgnorarFalha, 0, 1); this.actionsLayout.Dock = System.Windows.Forms.DockStyle.Fill; this.actionsLayout.Location = new System.Drawing.Point(8, 8); this.actionsLayout.Name = "actionsLayout"; - this.actionsLayout.RowCount = 2; - this.actionsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.actionsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 50F)); - this.actionsLayout.Size = new System.Drawing.Size(357, 72); + this.actionsLayout.RowCount = 1; + this.actionsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.actionsLayout.Size = new System.Drawing.Size(357, 40); this.actionsLayout.TabIndex = 0; // // chkMandatorio @@ -1087,7 +1808,7 @@ this.chkMandatorio.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); this.chkMandatorio.Location = new System.Drawing.Point(3, 3); this.chkMandatorio.Name = "chkMandatorio"; - this.chkMandatorio.Size = new System.Drawing.Size(90, 30); + this.chkMandatorio.Size = new System.Drawing.Size(111, 34); this.chkMandatorio.TabIndex = 0; this.chkMandatorio.Text = "Mandatório"; this.chkMandatorio.UseVisualStyleBackColor = false; @@ -1100,9 +1821,9 @@ this.chkEmUso.Dock = System.Windows.Forms.DockStyle.Fill; this.chkEmUso.Font = new System.Drawing.Font("Segoe UI", 8.5F); this.chkEmUso.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(241)))), ((int)(((byte)(245)))), ((int)(((byte)(247))))); - this.chkEmUso.Location = new System.Drawing.Point(99, 3); + this.chkEmUso.Location = new System.Drawing.Point(120, 3); this.chkEmUso.Name = "chkEmUso"; - this.chkEmUso.Size = new System.Drawing.Size(76, 30); + this.chkEmUso.Size = new System.Drawing.Size(111, 34); this.chkEmUso.TabIndex = 1; this.chkEmUso.Text = "Em uso"; this.chkEmUso.UseVisualStyleBackColor = false; @@ -1110,33 +1831,19 @@ // btnSalvarModulo // this.btnSalvarModulo.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); + this.btnSalvarModulo.Anchor = ((System.Windows.Forms.AnchorStyles)((System.Windows.Forms.AnchorStyles.Top | System.Windows.Forms.AnchorStyles.Right))); this.btnSalvarModulo.BackColor = System.Drawing.Color.Transparent; this.btnSalvarModulo.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); this.btnSalvarModulo.Cursor = System.Windows.Forms.Cursors.Hand; this.btnSalvarModulo.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); this.btnSalvarModulo.IconText = "●"; - this.btnSalvarModulo.Location = new System.Drawing.Point(178, 2); + this.btnSalvarModulo.Location = new System.Drawing.Point(234, 2); this.btnSalvarModulo.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); - this.btnSalvarModulo.MinimumSize = new System.Drawing.Size(130, 36); + this.btnSalvarModulo.MinimumSize = new System.Drawing.Size(100, 36); this.btnSalvarModulo.Name = "btnSalvarModulo"; - this.btnSalvarModulo.Size = new System.Drawing.Size(150, 36); + this.btnSalvarModulo.Size = new System.Drawing.Size(123, 36); this.btnSalvarModulo.TabIndex = 2; - // - // btnIgnorarFalha - // - this.btnIgnorarFalha.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); - this.btnIgnorarFalha.BackColor = System.Drawing.Color.Transparent; - this.btnIgnorarFalha.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); - this.actionsLayout.SetColumnSpan(this.btnIgnorarFalha, 3); - this.btnIgnorarFalha.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnIgnorarFalha.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.btnIgnorarFalha.IconText = "●"; - this.btnIgnorarFalha.Location = new System.Drawing.Point(0, 38); - this.btnIgnorarFalha.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); - this.btnIgnorarFalha.MinimumSize = new System.Drawing.Size(130, 36); - this.btnIgnorarFalha.Name = "btnIgnorarFalha"; - this.btnIgnorarFalha.Size = new System.Drawing.Size(150, 36); - this.btnIgnorarFalha.TabIndex = 3; + this.btnSalvarModulo.Text = "SALVAR"; // // pnlDetalhes // @@ -1147,12 +1854,12 @@ this.pnlDetalhes.CornerRadius = 10; this.pnlDetalhes.Dock = System.Windows.Forms.DockStyle.Fill; this.pnlDetalhes.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(24)))), ((int)(((byte)(29)))), ((int)(((byte)(33))))); - this.pnlDetalhes.Location = new System.Drawing.Point(0, 252); + this.pnlDetalhes.Location = new System.Drawing.Point(0, 220); this.pnlDetalhes.Margin = new System.Windows.Forms.Padding(0); this.pnlDetalhes.MinimumSize = new System.Drawing.Size(30, 30); this.pnlDetalhes.Name = "pnlDetalhes"; this.pnlDetalhes.Padding = new System.Windows.Forms.Padding(8); - this.pnlDetalhes.Size = new System.Drawing.Size(373, 269); + this.pnlDetalhes.Size = new System.Drawing.Size(373, 301); this.pnlDetalhes.TabIndex = 2; // // detailsLayout @@ -1161,20 +1868,18 @@ this.detailsLayout.ColumnCount = 1; this.detailsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.detailsLayout.Controls.Add(this.tabsLayout, 0, 0); - this.detailsLayout.Controls.Add(this.metricsLayout, 0, 1); - this.detailsLayout.Controls.Add(this.detailBodyLayout, 0, 2); - this.detailsLayout.Controls.Add(this.lblConteudoAba, 0, 3); - this.detailsLayout.Controls.Add(this.pnlAcoesModulo, 0, 4); + this.detailsLayout.Controls.Add(this.detailBodyLayout, 0, 1); + this.detailsLayout.Controls.Add(this.lblConteudoAba, 0, 2); this.detailsLayout.Dock = System.Windows.Forms.DockStyle.Fill; this.detailsLayout.Location = new System.Drawing.Point(8, 8); this.detailsLayout.Name = "detailsLayout"; - this.detailsLayout.RowCount = 5; + this.detailsLayout.RowCount = 3; this.detailsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 34F)); - this.detailsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 56F)); this.detailsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Percent, 100F)); this.detailsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 22F)); - this.detailsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 54F)); - this.detailsLayout.Size = new System.Drawing.Size(357, 253); + this.detailsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.detailsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); + this.detailsLayout.Size = new System.Drawing.Size(357, 285); this.detailsLayout.TabIndex = 0; // // tabsLayout @@ -1268,362 +1973,31 @@ this.tabLogs.Text = "Logs"; this.tabLogs.UseVisualStyleBackColor = false; // - // metricsLayout - // - this.metricsLayout.BackColor = System.Drawing.Color.Transparent; - this.metricsLayout.ColumnCount = 4; - this.metricsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.metricsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.metricsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.metricsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 25F)); - this.metricsLayout.Controls.Add(this.metricFrontal, 0, 0); - this.metricsLayout.Controls.Add(this.metricLateral, 1, 0); - this.metricsLayout.Controls.Add(this.metricRisk, 2, 0); - this.metricsLayout.Controls.Add(this.metricAssistencia, 3, 0); - this.metricsLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.metricsLayout.Location = new System.Drawing.Point(3, 37); - this.metricsLayout.Name = "metricsLayout"; - this.metricsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.metricsLayout.Size = new System.Drawing.Size(351, 50); - this.metricsLayout.TabIndex = 1; - // - // metricFrontal - // - this.metricFrontal.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.metricFrontal.Caption = "Frontal"; - this.metricFrontal.Dock = System.Windows.Forms.DockStyle.Fill; - this.metricFrontal.Location = new System.Drawing.Point(3, 3); - this.metricFrontal.Name = "metricFrontal"; - this.metricFrontal.Padding = new System.Windows.Forms.Padding(6, 3, 6, 3); - this.metricFrontal.Size = new System.Drawing.Size(81, 44); - this.metricFrontal.TabIndex = 0; - this.metricFrontal.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); - this.metricFrontal.ValueText = "18,4°"; - // - // metricLateral - // - this.metricLateral.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.metricLateral.Caption = "Lateral"; - this.metricLateral.Dock = System.Windows.Forms.DockStyle.Fill; - this.metricLateral.Location = new System.Drawing.Point(90, 3); - this.metricLateral.Name = "metricLateral"; - this.metricLateral.Padding = new System.Windows.Forms.Padding(6, 3, 6, 3); - this.metricLateral.Size = new System.Drawing.Size(81, 44); - this.metricLateral.TabIndex = 1; - this.metricLateral.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); - this.metricLateral.ValueText = "4,8°"; - // - // metricRisk - // - this.metricRisk.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.metricRisk.Caption = "Risk level"; - this.metricRisk.Dock = System.Windows.Forms.DockStyle.Fill; - this.metricRisk.Location = new System.Drawing.Point(177, 3); - this.metricRisk.Name = "metricRisk"; - this.metricRisk.Padding = new System.Windows.Forms.Padding(6, 3, 6, 3); - this.metricRisk.Size = new System.Drawing.Size(81, 44); - this.metricRisk.TabIndex = 2; - this.metricRisk.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); - this.metricRisk.ValueText = "2"; - // - // metricAssistencia - // - this.metricAssistencia.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.metricAssistencia.Caption = "Assistência"; - this.metricAssistencia.Dock = System.Windows.Forms.DockStyle.Fill; - this.metricAssistencia.Location = new System.Drawing.Point(264, 3); - this.metricAssistencia.Name = "metricAssistencia"; - this.metricAssistencia.Padding = new System.Windows.Forms.Padding(6, 3, 6, 3); - this.metricAssistencia.Size = new System.Drawing.Size(84, 44); - this.metricAssistencia.TabIndex = 3; - this.metricAssistencia.ValueColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); - this.metricAssistencia.ValueText = "ATIVA"; - // // detailBodyLayout // this.detailBodyLayout.BackColor = System.Drawing.Color.Transparent; - this.detailBodyLayout.ColumnCount = 2; - this.detailBodyLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 55F)); - this.detailBodyLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 45F)); - this.detailBodyLayout.Controls.Add(this.pnlGrafico, 0, 0); - this.detailBodyLayout.Controls.Add(this.pnlEventos, 1, 0); + this.detailBodyLayout.ColumnCount = 1; + this.detailBodyLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 100F)); + this.detailBodyLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Absolute, 20F)); this.detailBodyLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.detailBodyLayout.Location = new System.Drawing.Point(3, 93); + this.detailBodyLayout.Location = new System.Drawing.Point(3, 37); this.detailBodyLayout.Name = "detailBodyLayout"; - this.detailBodyLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.detailBodyLayout.Size = new System.Drawing.Size(351, 81); + this.detailBodyLayout.Size = new System.Drawing.Size(351, 223); this.detailBodyLayout.TabIndex = 2; // - // pnlGrafico - // - this.pnlGrafico.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); - this.pnlGrafico.BackColor = System.Drawing.Color.Transparent; - this.pnlGrafico.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); - this.pnlGrafico.Controls.Add(this.lblGrafico); - this.pnlGrafico.CornerRadius = 7; - this.pnlGrafico.Dock = System.Windows.Forms.DockStyle.Fill; - this.pnlGrafico.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.pnlGrafico.Location = new System.Drawing.Point(0, 3); - this.pnlGrafico.Margin = new System.Windows.Forms.Padding(0, 3, 3, 3); - this.pnlGrafico.MinimumSize = new System.Drawing.Size(30, 30); - this.pnlGrafico.Name = "pnlGrafico"; - this.pnlGrafico.Padding = new System.Windows.Forms.Padding(8); - this.pnlGrafico.Size = new System.Drawing.Size(190, 75); - this.pnlGrafico.TabIndex = 0; - // - // lblGrafico - // - this.lblGrafico.BackColor = System.Drawing.Color.Transparent; - this.lblGrafico.Dock = System.Windows.Forms.DockStyle.Fill; - this.lblGrafico.Font = new System.Drawing.Font("Consolas", 8F); - this.lblGrafico.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(61)))), ((int)(((byte)(165)))), ((int)(((byte)(255))))); - this.lblGrafico.Location = new System.Drawing.Point(8, 8); - this.lblGrafico.Name = "lblGrafico"; - this.lblGrafico.Size = new System.Drawing.Size(174, 59); - this.lblGrafico.TabIndex = 0; - this.lblGrafico.Text = "ACOMPANHAMENTO DO IMU\r\n\r\n30° ┤ ╭─╮\r\n15° ┤╭──╯ ╰─╮\r\n 0° ┼╯ ╰──\r\n-15°┤"; - this.lblGrafico.TextAlign = System.Drawing.ContentAlignment.MiddleCenter; - // - // pnlEventos - // - this.pnlEventos.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); - this.pnlEventos.BackColor = System.Drawing.Color.Transparent; - this.pnlEventos.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); - this.pnlEventos.Controls.Add(this.lstEventos); - this.pnlEventos.CornerRadius = 7; - this.pnlEventos.Dock = System.Windows.Forms.DockStyle.Fill; - this.pnlEventos.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.pnlEventos.Location = new System.Drawing.Point(196, 3); - this.pnlEventos.Margin = new System.Windows.Forms.Padding(3, 3, 0, 3); - this.pnlEventos.MinimumSize = new System.Drawing.Size(30, 30); - this.pnlEventos.Name = "pnlEventos"; - this.pnlEventos.Padding = new System.Windows.Forms.Padding(6); - this.pnlEventos.Size = new System.Drawing.Size(155, 75); - this.pnlEventos.TabIndex = 1; - // - // lstEventos - // - this.lstEventos.BackColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.lstEventos.BorderStyle = System.Windows.Forms.BorderStyle.None; - this.lstEventos.Dock = System.Windows.Forms.DockStyle.Fill; - this.lstEventos.Font = new System.Drawing.Font("Segoe UI", 7F); - this.lstEventos.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); - this.lstEventos.ItemHeight = 12; - this.lstEventos.Items.AddRange(new object[] { - "⚠ Inclinação instável 10:24", - "⚠ Variação acima 10:23", - "✕ Falha momentânea 10:21", - "ⓘ Leitura normalizada 10:19", - "✓ Módulo iniciado 10:18"}); - this.lstEventos.Location = new System.Drawing.Point(6, 6); - this.lstEventos.Name = "lstEventos"; - this.lstEventos.Size = new System.Drawing.Size(143, 63); - this.lstEventos.TabIndex = 0; - // // lblConteudoAba // this.lblConteudoAba.BackColor = System.Drawing.Color.Transparent; this.lblConteudoAba.Dock = System.Windows.Forms.DockStyle.Fill; this.lblConteudoAba.Font = new System.Drawing.Font("Segoe UI", 7.3F); this.lblConteudoAba.ForeColor = System.Drawing.Color.FromArgb(((int)(((byte)(164)))), ((int)(((byte)(174)))), ((int)(((byte)(181))))); - this.lblConteudoAba.Location = new System.Drawing.Point(3, 177); + this.lblConteudoAba.Location = new System.Drawing.Point(3, 263); this.lblConteudoAba.Name = "lblConteudoAba"; this.lblConteudoAba.Size = new System.Drawing.Size(351, 22); this.lblConteudoAba.TabIndex = 3; this.lblConteudoAba.Text = "Acompanhamento e histórico em tempo real"; this.lblConteudoAba.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // - // pnlAcoesModulo - // - this.pnlAcoesModulo.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); - this.pnlAcoesModulo.BackColor = System.Drawing.Color.Transparent; - this.pnlAcoesModulo.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); - this.pnlAcoesModulo.Controls.Add(this.moduleActionsLayout); - this.pnlAcoesModulo.CornerRadius = 7; - this.pnlAcoesModulo.Dock = System.Windows.Forms.DockStyle.Fill; - this.pnlAcoesModulo.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.pnlAcoesModulo.Location = new System.Drawing.Point(0, 199); - this.pnlAcoesModulo.Margin = new System.Windows.Forms.Padding(0); - this.pnlAcoesModulo.MinimumSize = new System.Drawing.Size(30, 30); - this.pnlAcoesModulo.Name = "pnlAcoesModulo"; - this.pnlAcoesModulo.Padding = new System.Windows.Forms.Padding(6); - this.pnlAcoesModulo.Size = new System.Drawing.Size(357, 54); - this.pnlAcoesModulo.TabIndex = 4; - // - // moduleActionsLayout - // - this.moduleActionsLayout.BackColor = System.Drawing.Color.Transparent; - this.moduleActionsLayout.ColumnCount = 3; - this.moduleActionsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); - this.moduleActionsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.33F)); - this.moduleActionsLayout.ColumnStyles.Add(new System.Windows.Forms.ColumnStyle(System.Windows.Forms.SizeType.Percent, 33.34F)); - this.moduleActionsLayout.Controls.Add(this.btnAcao1, 0, 0); - this.moduleActionsLayout.Controls.Add(this.btnAcao2, 1, 0); - this.moduleActionsLayout.Controls.Add(this.btnAcao3, 2, 0); - this.moduleActionsLayout.Dock = System.Windows.Forms.DockStyle.Fill; - this.moduleActionsLayout.Location = new System.Drawing.Point(6, 6); - this.moduleActionsLayout.Name = "moduleActionsLayout"; - this.moduleActionsLayout.RowStyles.Add(new System.Windows.Forms.RowStyle(System.Windows.Forms.SizeType.Absolute, 20F)); - this.moduleActionsLayout.Size = new System.Drawing.Size(345, 42); - this.moduleActionsLayout.TabIndex = 0; - // - // btnAcao1 - // - this.btnAcao1.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); - this.btnAcao1.BackColor = System.Drawing.Color.Transparent; - this.btnAcao1.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); - this.btnAcao1.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnAcao1.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.btnAcao1.IconText = "●"; - this.btnAcao1.Location = new System.Drawing.Point(0, 2); - this.btnAcao1.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); - this.btnAcao1.MinimumSize = new System.Drawing.Size(130, 36); - this.btnAcao1.Name = "btnAcao1"; - this.btnAcao1.Size = new System.Drawing.Size(130, 38); - this.btnAcao1.TabIndex = 0; - // - // btnAcao2 - // - this.btnAcao2.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); - this.btnAcao2.BackColor = System.Drawing.Color.Transparent; - this.btnAcao2.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); - this.btnAcao2.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnAcao2.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.btnAcao2.IconText = "●"; - this.btnAcao2.Location = new System.Drawing.Point(114, 2); - this.btnAcao2.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); - this.btnAcao2.MinimumSize = new System.Drawing.Size(130, 36); - this.btnAcao2.Name = "btnAcao2"; - this.btnAcao2.Size = new System.Drawing.Size(130, 38); - this.btnAcao2.TabIndex = 1; - // - // btnAcao3 - // - this.btnAcao3.AccentColor = System.Drawing.Color.FromArgb(((int)(((byte)(72)))), ((int)(((byte)(210)))), ((int)(((byte)(122))))); - this.btnAcao3.BackColor = System.Drawing.Color.Transparent; - this.btnAcao3.BorderColor = System.Drawing.Color.FromArgb(((int)(((byte)(53)))), ((int)(((byte)(63)))), ((int)(((byte)(69))))); - this.btnAcao3.Cursor = System.Windows.Forms.Cursors.Hand; - this.btnAcao3.FillColor = System.Drawing.Color.FromArgb(((int)(((byte)(30)))), ((int)(((byte)(36)))), ((int)(((byte)(41))))); - this.btnAcao3.IconText = "●"; - this.btnAcao3.Location = new System.Drawing.Point(228, 2); - this.btnAcao3.Margin = new System.Windows.Forms.Padding(0, 2, 0, 2); - this.btnAcao3.MinimumSize = new System.Drawing.Size(130, 36); - this.btnAcao3.Name = "btnAcao3"; - this.btnAcao3.Size = new System.Drawing.Size(130, 38); - this.btnAcao3.TabIndex = 2; - // - // lblModulo - // - this.lblModulo.Location = new System.Drawing.Point(0, 0); - this.lblModulo.Name = "lblModulo"; - this.lblModulo.Size = new System.Drawing.Size(100, 23); - this.lblModulo.TabIndex = 0; - // - // lblModuloValor - // - this.lblModuloValor.Location = new System.Drawing.Point(0, 0); - this.lblModuloValor.Name = "lblModuloValor"; - this.lblModuloValor.Size = new System.Drawing.Size(100, 23); - this.lblModuloValor.TabIndex = 0; - // - // lblLabel - // - this.lblLabel.Location = new System.Drawing.Point(0, 0); - this.lblLabel.Name = "lblLabel"; - this.lblLabel.Size = new System.Drawing.Size(100, 23); - this.lblLabel.TabIndex = 0; - // - // lblLabelValor - // - this.lblLabelValor.Location = new System.Drawing.Point(0, 0); - this.lblLabelValor.Name = "lblLabelValor"; - this.lblLabelValor.Size = new System.Drawing.Size(100, 23); - this.lblLabelValor.TabIndex = 0; - // - // lblStatus - // - this.lblStatus.Location = new System.Drawing.Point(0, 0); - this.lblStatus.Name = "lblStatus"; - this.lblStatus.Size = new System.Drawing.Size(100, 23); - this.lblStatus.TabIndex = 0; - // - // lblStatusValor - // - this.lblStatusValor.Location = new System.Drawing.Point(0, 0); - this.lblStatusValor.Name = "lblStatusValor"; - this.lblStatusValor.Size = new System.Drawing.Size(100, 23); - this.lblStatusValor.TabIndex = 0; - // - // lblSaude - // - this.lblSaude.Location = new System.Drawing.Point(0, 0); - this.lblSaude.Name = "lblSaude"; - this.lblSaude.Size = new System.Drawing.Size(100, 23); - this.lblSaude.TabIndex = 0; - // - // lblSaudeValor - // - this.lblSaudeValor.Location = new System.Drawing.Point(0, 0); - this.lblSaudeValor.Name = "lblSaudeValor"; - this.lblSaudeValor.Size = new System.Drawing.Size(100, 23); - this.lblSaudeValor.TabIndex = 0; - // - // lblIniciado - // - this.lblIniciado.Location = new System.Drawing.Point(0, 0); - this.lblIniciado.Name = "lblIniciado"; - this.lblIniciado.Size = new System.Drawing.Size(100, 23); - this.lblIniciado.TabIndex = 0; - // - // lblIniciadoValor - // - this.lblIniciadoValor.Location = new System.Drawing.Point(0, 0); - this.lblIniciadoValor.Name = "lblIniciadoValor"; - this.lblIniciadoValor.Size = new System.Drawing.Size(100, 23); - this.lblIniciadoValor.TabIndex = 0; - // - // lblCan - // - this.lblCan.Location = new System.Drawing.Point(0, 0); - this.lblCan.Name = "lblCan"; - this.lblCan.Size = new System.Drawing.Size(100, 23); - this.lblCan.TabIndex = 0; - // - // lblCanValor - // - this.lblCanValor.Location = new System.Drawing.Point(0, 0); - this.lblCanValor.Name = "lblCanValor"; - this.lblCanValor.Size = new System.Drawing.Size(100, 23); - this.lblCanValor.TabIndex = 0; - // - // lblLatencia - // - this.lblLatencia.Location = new System.Drawing.Point(0, 0); - this.lblLatencia.Name = "lblLatencia"; - this.lblLatencia.Size = new System.Drawing.Size(100, 23); - this.lblLatencia.TabIndex = 0; - // - // lblLatenciaValor - // - this.lblLatenciaValor.Location = new System.Drawing.Point(0, 0); - this.lblLatenciaValor.Name = "lblLatenciaValor"; - this.lblLatenciaValor.Size = new System.Drawing.Size(100, 23); - this.lblLatenciaValor.TabIndex = 0; - // - // lblIdVisual - // - this.lblIdVisual.Location = new System.Drawing.Point(0, 0); - this.lblIdVisual.Name = "lblIdVisual"; - this.lblIdVisual.Size = new System.Drawing.Size(100, 23); - this.lblIdVisual.TabIndex = 0; - // - // lblIdVisualValor - // - this.lblIdVisualValor.Location = new System.Drawing.Point(0, 0); - this.lblIdVisualValor.Name = "lblIdVisualValor"; - this.lblIdVisualValor.Size = new System.Drawing.Size(100, 23); - this.lblIdVisualValor.TabIndex = 0; - // // frmDiagnosticos // this.AutoScaleMode = System.Windows.Forms.AutoScaleMode.None; @@ -1645,171 +2019,21 @@ this.contentLayout.ResumeLayout(false); this.pnlMapa.ResumeLayout(false); this.pnlImpedimentoMapa.ResumeLayout(false); - ((System.ComponentModel.ISupportInitialize)(this.picRover)).EndInit(); this.pnlLegenda.ResumeLayout(false); + ((System.ComponentModel.ISupportInitialize)(this.picRover)).EndInit(); this.rightLayout.ResumeLayout(false); this.pnlSelecionado.ResumeLayout(false); this.selectedLayout.ResumeLayout(false); + this.infoGrid.ResumeLayout(false); this.pnlAcoesPrimarias.ResumeLayout(false); this.actionsLayout.ResumeLayout(false); this.pnlDetalhes.ResumeLayout(false); this.detailsLayout.ResumeLayout(false); this.tabsLayout.ResumeLayout(false); - this.metricsLayout.ResumeLayout(false); - this.detailBodyLayout.ResumeLayout(false); - this.pnlGrafico.ResumeLayout(false); - this.pnlEventos.ResumeLayout(false); - this.pnlAcoesModulo.ResumeLayout(false); - this.moduleActionsLayout.ResumeLayout(false); this.ResumeLayout(false); } - private static void SetupBadge( - AgroBase.Forms.IHM.Controls.HmiModuleBadge badge, - string code, - int x, - int y, - AgroBase.Forms.IHM.Controls.HmiModuleState state) - { - badge.Location = - new System.Drawing.Point( - x, - y); - - badge.ModuleCode = - code; - - badge.Name = - "badge" + code; - - badge.Size = - new System.Drawing.Size( - 45, - 27); - - badge.State = - state; - } - - private static void AddInfoPair( - System.Windows.Forms.TableLayoutPanel grid, - System.Windows.Forms.Label caption, - System.Windows.Forms.Label value, - string captionText, - string valueText, - int column, - int row, - int span) - { - System.Windows.Forms.Panel panel = - new System.Windows.Forms.Panel(); - - panel.BackColor = - AgroBase.Forms.IHM.Controls.HmiTheme.SurfaceRaised; - - panel.Dock = - System.Windows.Forms.DockStyle.Fill; - - panel.Margin = - new System.Windows.Forms.Padding(2); - - panel.Padding = - new System.Windows.Forms.Padding( - 6, - 0, - 6, - 0); - - caption.AutoSize = true; - caption.BackColor = - System.Drawing.Color.Transparent; - - caption.Dock = - System.Windows.Forms.DockStyle.Left; - - caption.Font = - new System.Drawing.Font( - "Segoe UI", - 7F); - - caption.ForeColor = - AgroBase.Forms.IHM.Controls.HmiTheme.TextMuted; - - caption.Text = - captionText; - - caption.TextAlign = - System.Drawing.ContentAlignment.MiddleLeft; - - value.AutoSize = false; - value.BackColor = - System.Drawing.Color.Transparent; - - value.Dock = - System.Windows.Forms.DockStyle.Fill; - - value.Font = - new System.Drawing.Font( - "Segoe UI", - 8F, - System.Drawing.FontStyle.Bold); - - value.ForeColor = - AgroBase.Forms.IHM.Controls.HmiTheme.Warning; - - value.Text = - valueText; - - value.TextAlign = - System.Drawing.ContentAlignment.MiddleRight; - - panel.Controls.Add(value); - panel.Controls.Add(caption); - - grid.Controls.Add( - panel, - column, - row); - - grid.SetColumnSpan( - panel, - span); - } - - private static void SetupActionButton( - AgroBase.Forms.IHM.Controls.HmiSidebarButton button, - string text, - string icon, - System.Drawing.Color accent) - { - button.AccentColor = - accent; - - button.BorderColor = - accent; - - button.Dock = - System.Windows.Forms.DockStyle.Fill; - - button.FillColor = - AgroBase.Forms.IHM.Controls.HmiTheme.SurfaceRaised; - - button.IconText = - icon; - - button.Margin = - new System.Windows.Forms.Padding(3); - - button.MinimumSize = - new System.Drawing.Size( - 70, - 34); - - button.Text = - text; - } - #endregion private System.Windows.Forms.TableLayoutPanel rootLayout; @@ -1831,40 +2055,7 @@ private System.Windows.Forms.Label lblImpedimentoMapa; private System.Windows.Forms.PictureBox picRover; private AgroBase.Forms.IHM.Controls.HmiRoundedPanel pnlLegenda; - private System.Windows.Forms.Label lblLegenda; - - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeBat; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB36; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB24; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB19; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB12; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB7; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB5; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB3; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeDir; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeMov; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeTmp; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeMag; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeImu; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeGps; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeSen; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeNpc; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeCan; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeLan; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeCls; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeCle; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgePrs; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeAtu; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeAgit; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeFlx; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeCam; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB01; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB02; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB03; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB04; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB05; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB06; - private AgroBase.Forms.IHM.Controls.HmiModuleBadge badgeB07; + private AgroBase.Forms.IHM.Controls.HmiStatusLegend lblLegenda; private System.Windows.Forms.TableLayoutPanel rightLayout; private AgroBase.Forms.IHM.Controls.HmiRoundedPanel pnlSelecionado; @@ -1873,22 +2064,6 @@ private System.Windows.Forms.Label lblSelecionadoSubtitulo; private System.Windows.Forms.TableLayoutPanel infoGrid; - private System.Windows.Forms.Label lblModulo; - private System.Windows.Forms.Label lblModuloValor; - private System.Windows.Forms.Label lblLabel; - private System.Windows.Forms.Label lblLabelValor; - private System.Windows.Forms.Label lblStatus; - private System.Windows.Forms.Label lblStatusValor; - private System.Windows.Forms.Label lblSaude; - private System.Windows.Forms.Label lblSaudeValor; - private System.Windows.Forms.Label lblIniciado; - private System.Windows.Forms.Label lblIniciadoValor; - private System.Windows.Forms.Label lblCan; - private System.Windows.Forms.Label lblCanValor; - private System.Windows.Forms.Label lblLatencia; - private System.Windows.Forms.Label lblLatenciaValor; - private System.Windows.Forms.Label lblIdVisual; - private System.Windows.Forms.Label lblIdVisualValor; private System.Windows.Forms.Label lblImpedimentoModulo; private AgroBase.Forms.IHM.Controls.HmiRoundedPanel pnlAcoesPrimarias; @@ -1896,7 +2071,6 @@ private System.Windows.Forms.CheckBox chkMandatorio; private System.Windows.Forms.CheckBox chkEmUso; private AgroBase.Forms.IHM.Controls.HmiSidebarButton btnSalvarModulo; - private AgroBase.Forms.IHM.Controls.HmiSidebarButton btnIgnorarFalha; private AgroBase.Forms.IHM.Controls.HmiRoundedPanel pnlDetalhes; private System.Windows.Forms.TableLayoutPanel detailsLayout; @@ -1906,23 +2080,73 @@ private AgroBase.Forms.IHM.Controls.HmiDiagnosticTabButton tabOpcoes; private AgroBase.Forms.IHM.Controls.HmiDiagnosticTabButton tabLogs; - private System.Windows.Forms.TableLayoutPanel metricsLayout; - private AgroBase.Forms.IHM.Controls.HmiMetricTile metricFrontal; - private AgroBase.Forms.IHM.Controls.HmiMetricTile metricLateral; - private AgroBase.Forms.IHM.Controls.HmiMetricTile metricRisk; - private AgroBase.Forms.IHM.Controls.HmiMetricTile metricAssistencia; - private System.Windows.Forms.TableLayoutPanel detailBodyLayout; - private AgroBase.Forms.IHM.Controls.HmiRoundedPanel pnlGrafico; - private System.Windows.Forms.Label lblGrafico; - private AgroBase.Forms.IHM.Controls.HmiRoundedPanel pnlEventos; - private System.Windows.Forms.ListBox lstEventos; private System.Windows.Forms.Label lblConteudoAba; - - private AgroBase.Forms.IHM.Controls.HmiRoundedPanel pnlAcoesModulo; - private System.Windows.Forms.TableLayoutPanel moduleActionsLayout; - private AgroBase.Forms.IHM.Controls.HmiSidebarButton btnAcao1; - private AgroBase.Forms.IHM.Controls.HmiSidebarButton btnAcao2; - private AgroBase.Forms.IHM.Controls.HmiSidebarButton btnAcao3; + private Controls.HmiModuleBadge badgeAB3V; + private Controls.HmiModuleBadge badgeAB24V; + private Controls.HmiModuleBadge badgeAB19V; + private Controls.HmiModuleBadge badgeAB12V; + private Controls.HmiModuleBadge badgeAB7V2; + private Controls.HmiModuleBadge badgeAB5V; + private Controls.HmiModuleBadge badgeAB36V; + private Controls.HmiModuleBadge badgeDIREF; + private Controls.HmiModuleBadge badgeMOVEF; + private Controls.HmiModuleBadge badgeMAGEF; + private Controls.HmiModuleBadge badgeTMPEF; + private Controls.HmiModuleBadge badgeFROEF; + private Controls.HmiModuleBadge badgeFRODT; + private Controls.HmiModuleBadge badgeMAGDT; + private Controls.HmiModuleBadge badgeTMPDT; + private Controls.HmiModuleBadge badgeMOVDT; + private Controls.HmiModuleBadge badgeDIRDT; + private Controls.HmiModuleBadge badgeFRODF; + private Controls.HmiModuleBadge badgeMAGDF; + private Controls.HmiModuleBadge badgeTMPDF; + private Controls.HmiModuleBadge badgeMOVDF; + private Controls.HmiModuleBadge badgeDIRDF; + private Controls.HmiModuleBadge badgeFROET; + private Controls.HmiModuleBadge badgeMAGET; + private Controls.HmiModuleBadge badgeTMPET; + private Controls.HmiModuleBadge badgeMOVET; + private Controls.HmiModuleBadge badgeDIRET; + private Controls.HmiModuleBadge badgeMAGESQ; + private Controls.HmiModuleBadge badgeB07; + private Controls.HmiModuleBadge badgeB06; + private Controls.HmiModuleBadge badgeB05; + private Controls.HmiModuleBadge badgeB04; + private Controls.HmiModuleBadge badgeB03; + private Controls.HmiModuleBadge badgeB02; + private Controls.HmiModuleBadge badgeB01; + private Controls.HmiModuleBadge badgeBMBAGT; + private Controls.HmiModuleBadge badgeBMBLN; + private Controls.HmiModuleBadge badgePRSLN; + private Controls.HmiModuleBadge badgeMAGDIR; + private Controls.HmiModuleBadge badgeMASRS; + private Controls.HmiModuleBadge badgeFLXLN; + private Controls.HmiModuleBadge badgeSEN; + private Controls.HmiModuleBadge badgeNPC; + private Controls.HmiModuleBadge badgeGPS; + private Controls.HmiModuleBadge badgeBAT; + private Controls.HmiModuleBadge badgeSNR; + private Controls.HmiModuleBadge badgeIMU; + private Controls.HmiModuleBadge badgeATU; + private Controls.HmiModuleBadge badgeCAM; + private Controls.HmiModuleBadge badgeRLCIN; + private Controls.HmiModuleBadge badgeRLCOUT; + private Controls.HmiModuleBadge badgeBOTLAV; + private Controls.HmiModuleBadge badgeLEDAT; + private Controls.HmiModuleBadge badgeLEDMN; + private Controls.HmiModuleBadge badgeLEDOP; + private Controls.HmiModuleBadge badgeTRJ; + private Controls.HmiModuleBadge badgeIPB; + private Controls.HmiModuleBadge badgeCAN; + private System.Windows.Forms.Label lblCan; + private System.Windows.Forms.Label lblLatencia; + private System.Windows.Forms.Label lblIniciado; + private System.Windows.Forms.Label lblSaude; + private System.Windows.Forms.Label lblStatus; + private System.Windows.Forms.Label lblModulo; + private System.Windows.Forms.Label lblSCode; + private System.Windows.Forms.Label lblID; } } diff --git a/AgroBase/AgroBase/Forms/IHM/frmDiagnosticos.cs b/AgroBase/AgroBase/Forms/IHM/frmDiagnosticos.cs index 013bd52c3..c4ead2e83 100644 --- a/AgroBase/AgroBase/Forms/IHM/frmDiagnosticos.cs +++ b/AgroBase/AgroBase/Forms/IHM/frmDiagnosticos.cs @@ -1,33 +1,142 @@ using AgroBase.Forms.IHM.Controls; using AgroBase.Models; +using AgroBase.Models.Operacoes; +using AgroBase.Models.Operadores; +using AgroBase.Services; +using Newtonsoft.Json.Linq; using System; using System.Collections.Generic; +using System.Collections.ObjectModel; using System.Drawing; +using System.Linq; using System.Windows.Forms; +using System.Windows.Forms.DataVisualization.Charting; +using static AgroBase.Models.Enums; namespace AgroBase.Forms.IHM { public partial class frmDiagnosticos : Form, ITelaNavegavel { + public class DiagnosticoGraficoSerieViewModel + { + private string _label; + public string Label + { + get => _label; + set => _label = value; + } + + private string _unidade; + public string Unidade + { + get => _unidade; + set => _unidade = value; + } + + public ObservableCollection Valores { get; } = new ObservableCollection(); + } + + public ObservableCollection SeriesGrafico { get; } = new ObservableCollection(); + public ObservableCollection LabelsGrafico { get; } = new ObservableCollection(); + private string _ultimoIdGrafico = ""; + + private enum AbaDiagnostico + { + Condicoes, + Acompanhamento, + Opcoes, + Logs + } + + private AbaDiagnostico _abaAtual = AbaDiagnostico.Acompanhamento; + + private HmiBufferedListView _lstCondicoes; + private HmiBufferedListView _lstLogs; + private Chart _graficoAcompanhamento; + private FlowLayoutPanel _pnlOpcoes; + private Label _lblSemOpcoes; + + + private OperacaoModel op => Variaveis.OperacaoEmAndamento; + public event EventHandler VoltarSolicitado; private readonly List _badges = new List(); - private readonly Dictionary _estadoOriginalBadges = new Dictionary(); + private HmiModuleBadge _badgeSelecionada => _badges.FirstOrDefault(x => x.Selecionado); + - public frmDiagnosticos() { InitializeComponent(); - RegistrarBadges(); + ConfigurarConteudoAbas(); + OrganizarCamadasMapa(); ConfigurarEstadoInicial(); VincularEventos(); + + ExibirAba(AbaDiagnostico.Acompanhamento, "Acompanhamento e histórico em tempo real"); } - public void AtualizarDadosTela() + private void ConfigurarEstadoInicial() { + tabCondicoes.Selected = false; + tabAcompanhamento.Selected = true; + tabOpcoes.Selected = false; + tabLogs.Selected = false; + RegistrarBadges(); + } + + private void RegistrarBadges() + { + foreach (var badge in pnlMapa.Controls.OfType()) + { + _badges.Add(badge); + } + } + + private void VincularEventos() + { + btnVoltar.Click += btnVoltar_Click; + btnSalvarModulo.Click += BtnSalvarModulo_Click; + + tabCondicoes.Click += delegate + { + ExibirAba(AbaDiagnostico.Condicoes, "Condições operacionais do módulo"); + }; + + tabAcompanhamento.Click += delegate + { + ExibirAba(AbaDiagnostico.Acompanhamento, "Acompanhamento e histórico em tempo real"); + }; + + tabOpcoes.Click += delegate + { + ExibirAba(AbaDiagnostico.Opcoes, "Ações locais disponíveis para o módulo"); + }; + + tabLogs.Click += delegate + { + ExibirAba(AbaDiagnostico.Logs, "Logs recentes do módulo"); + }; + + chkEmUso.CheckedChanged += delegate + { + if (_badgeSelecionada == null) + return; + _badgeSelecionada.EmUso = chkEmUso.Checked; + }; + + chkMandatorio.CheckedChanged += delegate + { + if (_badgeSelecionada == null) + return; + _badgeSelecionada.Mandatorio = chkMandatorio.Checked; + }; + + foreach (HmiModuleBadge badge in _badges) + badge.Click += Badge_Click; } private void OrganizarCamadasMapa() @@ -47,106 +156,400 @@ namespace AgroBase.Forms.IHM } } - private void RegistrarBadges() + private void ConfigurarConteudoAbas() { - _badges.Clear(); - _estadoOriginalBadges.Clear(); + detailBodyLayout.SuspendLayout(); - RegistrarBadge(badgeBat); - RegistrarBadge(badgeB36); - RegistrarBadge(badgeB24); - RegistrarBadge(badgeB19); - RegistrarBadge(badgeB12); - RegistrarBadge(badgeB7); - RegistrarBadge(badgeB5); - RegistrarBadge(badgeB3); + detailBodyLayout.Controls.Clear(); + detailBodyLayout.RowCount = 1; + detailBodyLayout.ColumnCount = 1; - RegistrarBadge(badgeDir); - RegistrarBadge(badgeMov); - RegistrarBadge(badgeTmp); - RegistrarBadge(badgeMag); - RegistrarBadge(badgeImu); - RegistrarBadge(badgeGps); + detailBodyLayout.RowStyles.Clear(); + detailBodyLayout.RowStyles.Add(new RowStyle(SizeType.Percent, 100F)); - RegistrarBadge(badgeSen); - RegistrarBadge(badgeNpc); - RegistrarBadge(badgeCan); - RegistrarBadge(badgeLan); - RegistrarBadge(badgeCls); - RegistrarBadge(badgeCle); - RegistrarBadge(badgePrs); - RegistrarBadge(badgeAtu); - RegistrarBadge(badgeAgit); - RegistrarBadge(badgeFlx); - RegistrarBadge(badgeCam); + detailBodyLayout.ColumnStyles.Clear(); + detailBodyLayout.ColumnStyles.Add(new ColumnStyle(SizeType.Percent, 100F)); - RegistrarBadge(badgeB01); - RegistrarBadge(badgeB02); - RegistrarBadge(badgeB03); - RegistrarBadge(badgeB04); - RegistrarBadge(badgeB05); - RegistrarBadge(badgeB06); - RegistrarBadge(badgeB07); + _lstCondicoes = CriarListaDiagnostico(); + _lstCondicoes.Name = "lstCondicoes"; + + _lstLogs = CriarListaDiagnostico(); + _lstLogs.Name = "lstLogs"; + + _graficoAcompanhamento = CriarGraficoAcompanhamento(); + + _pnlOpcoes = new FlowLayoutPanel(); + _pnlOpcoes.Name = "pnlOpcoes"; + _pnlOpcoes.Dock = DockStyle.Fill; + _pnlOpcoes.BackColor = Color.Transparent; + _pnlOpcoes.FlowDirection = FlowDirection.TopDown; + _pnlOpcoes.WrapContents = false; + _pnlOpcoes.AutoScroll = true; + _pnlOpcoes.Padding = new Padding(4); + + _lblSemOpcoes = new Label(); + _lblSemOpcoes.AutoSize = false; + _lblSemOpcoes.Size = new Size(320, 45); + _lblSemOpcoes.Font = new Font("Segoe UI", 8F); + _lblSemOpcoes.ForeColor = HmiTheme.TextMuted; + _lblSemOpcoes.TextAlign = ContentAlignment.MiddleCenter; + _lblSemOpcoes.Text = "Nenhuma opção local disponível para este módulo."; + + _pnlOpcoes.Controls.Add(_lblSemOpcoes); + + /* + * Todos ocupam a mesma célula. + * Apenas um ficará visível por vez. + */ + detailBodyLayout.Controls.Add(_lstCondicoes, 0, 0); + detailBodyLayout.Controls.Add(_graficoAcompanhamento, 0, 0); + detailBodyLayout.Controls.Add(_pnlOpcoes, 0, 0); + detailBodyLayout.Controls.Add(_lstLogs, 0, 0); + + detailBodyLayout.ResumeLayout(true); } - private void RegistrarBadge(HmiModuleBadge badge) + private HmiBufferedListView CriarListaDiagnostico() { - if (badge == null) + HmiBufferedListView lista = new HmiBufferedListView(); + + lista.Dock = DockStyle.Fill; + lista.View = View.Details; + lista.FullRowSelect = true; + lista.GridLines = false; + lista.HeaderStyle = ColumnHeaderStyle.None; + lista.MultiSelect = false; + lista.HideSelection = false; + + lista.BackColor = Color.FromArgb(20, 25, 29); + + lista.ForeColor = HmiTheme.Text; + + lista.BorderStyle = BorderStyle.FixedSingle; + + lista.Font = new Font("Segoe UI", 7.8F); + + lista.Columns.Add("Descrição", 320, HorizontalAlignment.Left); + + lista.Resize += delegate + { + if (lista.Columns.Count > 0) + { + lista.Columns[0].Width = Math.Max(50, lista.ClientSize.Width - 4); + } + }; + + return lista; + } + + private Chart CriarGraficoAcompanhamento() + { + Chart chart = new Chart(); + + chart.Name = "graficoAcompanhamento"; + chart.Dock = DockStyle.Fill; + chart.BackColor = Color.FromArgb(20, 25, 29); + chart.BorderlineWidth = 0; + + ChartArea area = new ChartArea("Principal"); + + area.BackColor = Color.FromArgb(20, 25, 29); + + area.AxisX.LabelStyle.ForeColor = HmiTheme.TextMuted; + area.AxisY.LabelStyle.ForeColor = HmiTheme.TextMuted; + area.AxisX.LineColor = HmiTheme.Border; + area.AxisY.LineColor = HmiTheme.Border; + area.AxisX.MajorGrid.LineColor = Color.FromArgb(38, 46, 52); + area.AxisY.MajorGrid.LineColor = Color.FromArgb(38, 46, 52); + area.AxisX.LabelStyle.Font = new Font("Segoe UI", 6.5F); + area.AxisY.LabelStyle.Font = new Font("Segoe UI", 6.5F); + area.AxisX.IntervalAutoMode = IntervalAutoMode.VariableCount; + area.AxisX.IsMarginVisible = false; + chart.ChartAreas.Add(area); + + Legend legenda = new Legend("Legenda"); + legenda.Docking = Docking.Top; + legenda.Alignment = StringAlignment.Center; + legenda.BackColor = Color.Transparent; + legenda.ForeColor = HmiTheme.Text; + legenda.Font = new Font("Segoe UI", 6.5F); + + chart.Legends.Add(legenda); + + return chart; + } + + + public void AtualizarDadosTela() + { + string impedimento = op?.Sensoriamento?.Operacao?.ErroOperacaoLiberada ?? "Nenhum"; + impedimento = impedimento.Replace("\n\n", "; "); + lblImpedimentoMapa.Text = $"Impedimento: {impedimento}"; + + foreach (var badge in _badges) + { + AtualizarStatusBadge(badge); + } + + AtualizarDadosModSelecionado(); + } + + private void AtualizarStatusBadge(HmiModuleBadge badge) + { + if (op?.Parametros?.ModulosMandatorios == null) return; - _badges.Add(badge); - _estadoOriginalBadges[badge] = badge.State; + StatusModulo status = StatusModulo.Desconectado; + bool mandatorio = false; + bool em_uso = false; + + OperacaoModulosMandatoriosModel mod = op?.Parametros?.ModulosMandatorios?.FirstOrDefault(x => x.Dispositivo == badge.ModuleCode); + + var mods_saude = op?.Sensoriamento?.OperadorSaude?.ModulosSaude; + var _saude = mods_saude?.FirstOrDefault(x => x.modulo == badge.ModuleCode); + if (_saude != null) + { + if (badge.ModuleSubCode == S_Code.sVZO) + { + status = _saude.status; + mandatorio = mod?.Mandatorio ?? false; + em_uso = mod?.Utilizar ?? false; + } + else + { + var _ind = _saude.saude_individual?.FirstOrDefault(x => x.id == badge.ModuleID); + if (_ind != null) + { + status = _ind.status; + } + + (bool mandatorio, bool emUso) modInd; + if (mod != null && mod.ComponentesEmUso != null && mod.ComponentesEmUso.TryGetValue(badge.ModuleID, out modInd)) + { + mandatorio = modInd.mandatorio; + em_uso = modInd.emUso; + } + } + } + + badge.State = status; + + if (!badge.Equals(_badgeSelecionada)) + { + badge.Mandatorio = mandatorio; + badge.EmUso = em_uso; + } } - private void ConfigurarEstadoInicial() + private void AtualizarDadosModSelecionado() { - tabCondicoes.Selected = false; - tabAcompanhamento.Selected = true; - tabOpcoes.Selected = false; - tabLogs.Selected = false; + if (_badgeSelecionada == null) + return; - metricFrontal.ValueColor = HmiTheme.Info; - metricLateral.ValueColor = HmiTheme.Info; - metricRisk.ValueColor = HmiTheme.Warning; - metricAssistencia.ValueColor = HmiTheme.Success; + var badge = _badgeSelecionada; - SelecionarModulo(badgeImu); + var parametros = op?.Parametros; + var sensoriamento = op?.Sensoriamento; + var mods_saude = sensoriamento?.OperadorSaude?.ModulosSaude; + + bool badge_principal = badge.ModuleSubCode == S_Code.sVZO && !SerialService.DispositivosMultiplos.Contains(badge.ModuleCode); + StatusModulo status = badge.State; + bool mandatorio = badge.Mandatorio; + bool em_uso = badge.EmUso; + + List motivos = new List(); + List condicoes = new List(); + double saude = 0.0; + bool iniciado = ObterIniciado(badge, parametros); + double can = CalcularLatenciaCan(badge.ModuleCode, sensoriamento, badge.ModuleID); + double latencia = 0.0; + + var _saude = mods_saude?.FirstOrDefault(x => x.modulo == badge.ModuleCode); + if (_saude != null) + { + if (badge_principal) + { + saude = _saude.saude; + motivos.AddRange(_saude.motivos); + condicoes.AddRange(_saude.condicoes_operacionais); + } + else + { + var _ind = _saude.saude_individual?.FirstOrDefault(x => x.label == badge.ModuleID); + if (_ind != null) + { + saude = _ind.saude; + motivos.AddRange(_ind.motivos); + condicoes.AddRange(_ind.condicoes_operacionais); + } + } + } + + string impedimento = motivos.Any() ? string.Join(", ", motivos) : "Nenhum"; + lblImpedimentoModulo.Text = $"Impedimento: {impedimento}"; + + lblModulo.Text = $"Módulo: {badge.ModuleCode}"; + lblID.Text = $"ID: {badge.ModuleID}"; + lblSCode.Text = $"SCode: {badge.ModuleSubCode}"; + + lblStatus.Text = $"Status: {status}"; + lblSaude.Text = $"Saúde: {saude:F0}%"; + lblIniciado.Text = $"Iniciado: " + (iniciado ? "SIM" : "NÃO"); + + lblCan.Text = $"CAN: {can:F0} ms"; + lblLatencia.Text = $"Latência: {latencia:F0} ms"; + + chkMandatorio.Checked = mandatorio; + chkEmUso.Checked = em_uso; + + badge.CondicoesOperacionais.Clear(); + foreach (var cond in condicoes) + badge.CondicoesOperacionais.Add($"{cond.descricao} (Valor: {cond.valor}, Severidade: {cond.severidade:0}%)"); + + badge.Logs.Clear(); + var logs = parametros?.DadosLeitura?.Logs?.Where(x => x.Dispositivo == badge.ModuleCode); + if (!badge_principal) + logs = logs?.Where(x => x.ID == badge.ModuleID); + else + logs = logs?.Where(x => x.ID == null); + + if (logs != null) + { + foreach (var log in logs) + badge.Logs.Add($"{log.Momento:HH:mm:ss.fff} - {log.Mensagem}"); + } + + AtualizarGraficoModuloSelecionado(parametros); + AtualizarConteudoAbaAtual(); } - private void VincularEventos() + private double CalcularLatenciaCan(T_Code modulo, OperacaoSensoriamentoConjuntoModel dados, string mod_id = null) { - btnVoltar.Click += btnVoltar_Click; + DateTime ucr = DateTime.MinValue; + if (modulo == T_Code.Bat) + ucr = dados?.Bateria?.Momento ?? DateTime.MinValue; + else if (modulo == T_Code.Sen) + ucr = dados?.Sensoriamento?.UltimoComandoRespondido ?? DateTime.MinValue; + else if (modulo == T_Code.Atu) + ucr = dados?.Atuador?.UltimoComandoRespondido ?? DateTime.MinValue; + else if (modulo == T_Code.Mov) + ucr = dados?.Movimentacao?.Modulos?.FirstOrDefault(x => x.Modulo_ID == mod_id)?.UltimoComandoRespondido ?? DateTime.MinValue; + else if (modulo == T_Code.Dir) + ucr = dados?.Direcional?.Modulos?.FirstOrDefault(x => x.Modulo_ID == mod_id)?.UltimoComandoRespondido ?? DateTime.MinValue; + else + ucr = dados?.Momento ?? DateTime.MinValue; - tabCondicoes.Click += delegate + DateTime momento = dados?.Momento ?? DateTime.MinValue; + double canLatencia = (ucr - momento).TotalMilliseconds; + + return canLatencia; + } + + private bool ObterIniciado(HmiModuleBadge badge, OperacaoParametrosModel dados) + { + var rover = dados?.DadosLeitura; + if (rover == null) + return false; + + switch (badge.ModuleCode) { - SelecionarAba( - tabCondicoes, - "Condições operacionais do módulo"); - }; + case T_Code.Mov: + return rover.Movimentacao?.Modulos?.FirstOrDefault(x => x.Modulo_ID == badge.ModuleID)?.Inicializado ?? false; - tabAcompanhamento.Click += delegate + case T_Code.Dir: + return rover.Direcional?.Modulos?.FirstOrDefault(x => x.Modulo_ID == badge.ModuleID)?.Inicializado ?? false; + + case T_Code.Atu: + if (string.IsNullOrWhiteSpace(badge.ModuleID)) + return rover.Atuador?.Iniciado ?? false; + + switch (badge.ModuleSubCode) + { + case S_Code.sBIC: + return rover.Atuador?.Bicos?.FirstOrDefault(x => x.ID == badge.ModuleID)?.Inicializado ?? false; + + case S_Code.sBMB: + return rover.Atuador?.Bombas?.FirstOrDefault(x => x.ID == badge.ModuleID)?.Inicializado ?? false; + + //case S_Code.sSRV: + // return rover.Atuador?.Servos?.FirstOrDefault(x => x.ID == item.LabelModulo)?.Inicializado ?? false; + + default: + return rover.Atuador?.Sensores?.FirstOrDefault(x => x.ID == badge.ModuleID && x.Componente == badge.ModuleSubCode)?.Inicializado ?? false; + } + + case T_Code.Sen: + if (string.IsNullOrWhiteSpace(badge.ModuleID)) + return rover.Sensoriamento?.Iniciado ?? false; + + switch (badge.ModuleSubCode) + { + case S_Code.sLED: + return rover.Sensoriamento?.Sinaleiros?.FirstOrDefault(x => x.ID == badge.ModuleID)?.Inicializado ?? false; + + case S_Code.sRLE: + return rover.Sensoriamento?.Reles?.FirstOrDefault(x => x.ID == badge.ModuleID)?.Inicializado ?? false; + + case S_Code.sSRV: + return rover.Sensoriamento?.Servos?.FirstOrDefault(x => x.ID == badge.ModuleID)?.Inicializado ?? false; + + default: + return rover.Sensoriamento?.Sensores?.FirstOrDefault(x => x.ID == badge.ModuleID && x.Componente == badge.ModuleSubCode)?.Inicializado ?? false; + } + + case T_Code.Imu: + return rover.Imu?.Iniciado ?? false; + + case T_Code.Npc: + case T_Code.Ipb: + return dados.Alive; + + case T_Code.Can: + return rover.DispositivosMapeados?.Any(x => x.Dispositivo == T_Code.Can) ?? false; + + case T_Code.Cam: + case T_Code.Snr: + case T_Code.Lvx: + case T_Code.Gps: + return rover.DispositivosMapeados?.FirstOrDefault(x => x.Dispositivo == badge.ModuleCode)?.Saude > 0; + + case T_Code.Bat: + return rover.Bateria?.Iniciado ?? false; + + case T_Code.Trj: + return rover.Trajetoria?.QtdPontos > 0; + + default: + return false; + } + } + + + + private void BtnSalvarModulo_Click(object sender, EventArgs e) + { + if (_badgeSelecionada == null) + return; + + if (op?.Parametros?.ModulosMandatorios == null) + return; + + OperacaoModulosMandatoriosModel mod = op?.Parametros?.ModulosMandatorios?.FirstOrDefault(x => x.Dispositivo == _badgeSelecionada.ModuleCode); + if (mod == null) { - SelecionarAba( - tabAcompanhamento, - "Acompanhamento e histórico em tempo real"); - }; + mod = new OperacaoModulosMandatoriosModel() + { + Dispositivo = _badgeSelecionada.ModuleCode, + Utilizar = false, + Mandatorio = false, + Conectado = false, + ComponentesEmUso = new Dictionary() + }; + op.Parametros.ModulosMandatorios.Add(mod); + } - tabOpcoes.Click += delegate - { - SelecionarAba( - tabOpcoes, - "Ações locais disponíveis para o módulo"); - }; - - tabLogs.Click += delegate - { - SelecionarAba( - tabLogs, - "Logs recentes do módulo"); - }; - - foreach (HmiModuleBadge badge in _badges) - badge.Click += Badge_Click; + mod.Mandatorio = _badgeSelecionada.Mandatorio; + mod.Utilizar = _badgeSelecionada.EmUso; } private void btnVoltar_Click(object sender, EventArgs e) @@ -162,39 +565,388 @@ namespace AgroBase.Forms.IHM if (selecionado == null) return; - SelecionarModulo(selecionado); - } - - private void SelecionarModulo(HmiModuleBadge selecionado) - { foreach (HmiModuleBadge badge in _badges) { - HmiModuleState original; + badge.Selecionado = false; + } - if (_estadoOriginalBadges.TryGetValue(badge, out original)) + selecionado.Selecionado = true; + + LimparHistoricoGrafico(); + + AtualizarStatusBadge(selecionado); + AtualizarDadosModSelecionado(); + AtualizarConteudoAbaAtual(); + } + + private void ExibirAba(AbaDiagnostico aba, string descricao) + { + _abaAtual = aba; + + tabCondicoes.Selected = aba == AbaDiagnostico.Condicoes; + tabAcompanhamento.Selected = aba == AbaDiagnostico.Acompanhamento; + tabOpcoes.Selected = aba == AbaDiagnostico.Opcoes; + tabLogs.Selected = aba == AbaDiagnostico.Logs; + + _lstCondicoes.Visible = aba == AbaDiagnostico.Condicoes; + _graficoAcompanhamento.Visible = aba == AbaDiagnostico.Acompanhamento; + _pnlOpcoes.Visible = aba == AbaDiagnostico.Opcoes; + _lstLogs.Visible = aba == AbaDiagnostico.Logs; + + lblConteudoAba.Text = descricao; + + switch (aba) + { + case AbaDiagnostico.Condicoes: + _lstCondicoes.BringToFront(); + break; + + case AbaDiagnostico.Acompanhamento: + _graficoAcompanhamento.BringToFront(); + break; + + case AbaDiagnostico.Opcoes: + _pnlOpcoes.BringToFront(); + break; + + case AbaDiagnostico.Logs: + _lstLogs.BringToFront(); + break; + } + + AtualizarConteudoAbaAtual(); + } + + + + + + + + + private void AtualizarConteudoAbaAtual() + { + if (_badgeSelecionada == null) + { + LimparConteudoDiagnostico(); + return; + } + + switch (_abaAtual) + { + case AbaDiagnostico.Condicoes: + AtualizarListaCondicoes(); + break; + + case AbaDiagnostico.Acompanhamento: + AtualizarVisualGrafico(); + break; + + case AbaDiagnostico.Opcoes: + //AtualizarOpcoesModulo(); + break; + + case AbaDiagnostico.Logs: + AtualizarListaLogs(); + break; + } + } + + private void LimparConteudoDiagnostico() + { + if (_lstCondicoes != null) + _lstCondicoes.Items.Clear(); + + if (_lstLogs != null) + _lstLogs.Items.Clear(); + + if (_graficoAcompanhamento != null) + _graficoAcompanhamento.Series.Clear(); + } + + private void LimparHistoricoGrafico() + { + SeriesGrafico.Clear(); + LabelsGrafico.Clear(); + _ultimoIdGrafico = string.Empty; + + if (_graficoAcompanhamento != null) + _graficoAcompanhamento.Series.Clear(); + } + + private void AtualizarListaCondicoes() + { + List itens = new List(); + + if (_badgeSelecionada == null || _badgeSelecionada.CondicoesOperacionais == null || _badgeSelecionada.CondicoesOperacionais.Count == 0) + { + itens.Add("Nenhuma condição operacional registrada."); + } + else + { + itens.AddRange(_badgeSelecionada.CondicoesOperacionais); + } + + _lstCondicoes.SincronizarLista(itens); + } + + private void AtualizarListaLogs() + { + List itens = new List(); + + if (_badgeSelecionada == null || _badgeSelecionada.Logs == null || _badgeSelecionada.Logs.Count == 0) + { + itens.Add("Nenhum log recente para este módulo."); + } + else + { + int inicio = Math.Max(0, _badgeSelecionada.Logs.Count - 100); + + for (int i = inicio; i < _badgeSelecionada.Logs.Count; i++) { - badge.State = original; + itens.Add(_badgeSelecionada.Logs[i]); } } - selecionado.State = HmiModuleState.Selecionado; + bool estavaNoFinal = _lstLogs.EstaNoFinalDaLista(); - lblModuloValor.Text = selecionado.ModuleCode; + _lstLogs.SincronizarLista(itens); - lblLabelValor.Text = selecionado.ModuleCode; - - lblIdVisualValor.Text = selecionado.ModuleCode; + if (estavaNoFinal && _lstLogs.Items.Count > 0) + { + _lstLogs.EnsureVisible(_lstLogs.Items.Count - 1); + } } - private void SelecionarAba(HmiDiagnosticTabButton selecionada, string descricao) + private void AtualizarVisualGrafico() { - tabCondicoes.Selected = false; - tabAcompanhamento.Selected = false; - tabOpcoes.Selected = false; - tabLogs.Selected = false; + if (_graficoAcompanhamento == null) + return; - selecionada.Selected = true; - lblConteudoAba.Text = descricao; + _graficoAcompanhamento.SuspendLayout(); + + try + { + _graficoAcompanhamento.Series.Clear(); + + if (SeriesGrafico.Count == 0) + return; + + foreach (DiagnosticoGraficoSerieViewModel item in SeriesGrafico) + { + Series serie = new Series(item.Label); + + serie.ChartType = SeriesChartType.Line; + serie.ChartArea = "Principal"; + serie.Legend = "Legenda"; + serie.BorderWidth = 2; + serie.IsVisibleInLegend = true; + serie.LegendText = string.IsNullOrWhiteSpace(item.Unidade) ? item.Label : item.Label + " (" + item.Unidade + ")"; + serie.XValueType = ChartValueType.String; + int quantidade = Math.Min(item.Valores.Count, LabelsGrafico.Count); + int inicioValores = item.Valores.Count - quantidade; + int inicioLabels = LabelsGrafico.Count - quantidade; + + for (int i = 0; i < quantidade; i++) + { + string label = LabelsGrafico[inicioLabels + i]; + double valor = item.Valores[inicioValores + i]; + serie.Points.AddXY(label, valor); + } + + _graficoAcompanhamento.Series.Add(serie); + } + + _graficoAcompanhamento.Invalidate(); + } + finally + { + _graficoAcompanhamento.ResumeLayout(); + } } + + private void AtualizarGraficoModuloSelecionado(OperacaoParametrosModel parametros) + { + string idAtual = string.Empty; + + if (_badgeSelecionada != null) + { + idAtual = _badgeSelecionada.ModuleCode + "|" + _badgeSelecionada.ModuleSubCode + "|" + (_badgeSelecionada.ModuleID ?? string.Empty); + } + + if (_ultimoIdGrafico != idAtual) + { + SeriesGrafico.Clear(); + LabelsGrafico.Clear(); + _ultimoIdGrafico = idAtual; + } + + if (_badgeSelecionada == null || parametros?.DadosLeitura == null) + return; + + var rover = parametros?.DadosLeitura; + HmiModuleBadge item = _badgeSelecionada; + + if (rover == null) + return; + + rover.Atualizar(); + + DateTime? momento = rover.Momento; + if (momento.HasValue) + { + LabelsGrafico.Add(momento.Value.ToString("HH:mm:ss")); + while (LabelsGrafico.Count > 60) + LabelsGrafico.RemoveAt(0); + } + + void AddOrAppendSerie(string label, string unidade, double? valor) + { + if (!valor.HasValue) + return; + + var serie = SeriesGrafico.FirstOrDefault(x => x.Label == label && x.Unidade == unidade); + if (serie == null) + { + serie = new DiagnosticoGraficoSerieViewModel + { + Label = label, + Unidade = unidade + }; + SeriesGrafico.Add(serie); + } + + serie.Valores.Add(valor.Value); + + while (serie.Valores.Count > 60) + serie.Valores.RemoveAt(0); + } + + switch (item.ModuleCode) + { + case T_Code.Sen: + switch (item.ModuleSubCode) + { + case S_Code.sCOR: + var barramento = rover.Bateria?.Barramentos?.FirstOrDefault(x => x.ID == item.ModuleID); + AddOrAppendSerie("Corrente", "mA", barramento?.Corrente); + AddOrAppendSerie("Tensão", "V", barramento?.Tensao); + AddOrAppendSerie("Potência", "mW", barramento?.Potencia); + AddOrAppendSerie("Energia", "J", barramento?.Energia); + AddOrAppendSerie("Temperatura", "°C", barramento?.Temperatura); + break; + + case S_Code.sNTC: + var ntc = rover.Sensoriamento?.Sensores? + .FirstOrDefault(x => x.ID == item.ModuleID && x.Componente == item.ModuleSubCode)? + .Valores?[0]; + AddOrAppendSerie("Temperatura", "°C", ntc); + break; + + case S_Code.sRLE: + var rele = rover.Sensoriamento?.Reles?.FirstOrDefault(x => x.ID == item.ModuleID); + AddOrAppendSerie("Comando", "", rele?.ComandoEstado == true ? 1 : 0); + AddOrAppendSerie("Leitura", "", rele?.LeituraEstado == true ? 1 : 0); + break; + + case S_Code.sSRV: + var servoSen = rover.Sensoriamento?.Servos?.FirstOrDefault(x => x.ID == item.ModuleID); + AddOrAppendSerie("Comando", "°", servoSen?.ComandoAngulo); + AddOrAppendSerie("Leitura", "°", servoSen?.LeituraAngulo); + break; + } + break; + + case T_Code.Atu: + switch (item.ModuleSubCode) + { + case S_Code.sBIC: + var bico = rover.Atuador?.Bicos?.FirstOrDefault(x => x.ID == item.ModuleID); + AddOrAppendSerie("Cmd", "", bico?.ComandoEstado ?? false ? 100 : 0); + AddOrAppendSerie("Vazão", "mL/s", bico?.VazaoInstantaneaMLs); + break; + + case S_Code.sBMB: + var bomba = rover.Atuador?.Bombas?.FirstOrDefault(x => x.ID == item.ModuleID); + AddOrAppendSerie("Cmd", "", bomba?.ComandoEstado ?? false ? 100 : 0); + AddOrAppendSerie("Potência", "%", bomba?.LeituraPotencia); + AddOrAppendSerie("Pressão", "psi", bomba?.ComandoPressao); + break; + + case S_Code.sPRS: + AddOrAppendSerie("Pressão", "psi", rover.Atuador?.PressaoLinhaPsi); + break; + + case S_Code.sFLX: + AddOrAppendSerie("Fluxo", "mL/s", rover.Atuador?.VazaoInstantaneaMLs); + AddOrAppendSerie("Média", "mL/s", rover.Atuador?.VazaoMediaMLs); + break; + + case S_Code.sMAS: + AddOrAppendSerie("Volume", "L", rover.Atuador?.VolumeReservatorioL); + AddOrAppendSerie("Massa", "Kg", rover.Atuador?.MassaReservatorioKg); + AddOrAppendSerie("Percentual", "%", rover.Atuador?.PercentualReservatorio); + break; + } + break; + + case T_Code.Mov: + var mov = rover.Movimentacao?.Modulos?.FirstOrDefault(x => x.Modulo_ID == item.ModuleID); + AddOrAppendSerie("Tensão", "V", mov?.Tensao); + AddOrAppendSerie("Corrente M", "A", mov?.CorrenteMotor); + AddOrAppendSerie("Corrente B", "A", mov?.CorrenteBarramento); + AddOrAppendSerie("Ciclo", "%", mov?.CicloTrabalho); + AddOrAppendSerie("Temperatura", "°C", mov?.TemperaturaDriver); + AddOrAppendSerie("RPM", "", mov?.RPM_Roda); + break; + + case T_Code.Npc: + var npc = rover.PerformanceNcp; + AddOrAppendSerie("GPU %", "%", npc?.GPU_load); + AddOrAppendSerie("GPU °C", "°C", npc?.GPU_temp); + AddOrAppendSerie("CPU %", "%", npc?.CPU_load); + AddOrAppendSerie("CPU °C", "°C", npc?.CPU_temp); + AddOrAppendSerie("RAM", "MB", npc?.RAM_usage); + break; + + case T_Code.Ipb: + var conexao = rover.ModulosSaude?.FirstOrDefault(x => x.modulo == T_Code.Ipb); + AddOrAppendSerie("Latência", "ms", conexao?.detalhes?["avg_rtt"]?.Value()); + AddOrAppendSerie("Jitter", "ms", conexao?.detalhes?["jitter"]?.Value()); + AddOrAppendSerie("Timeout", "%", conexao?.detalhes?["tmout_pct"]?.Value()); + AddOrAppendSerie("Perda", "%", conexao?.detalhes?["loss_pct"]?.Value()); + AddOrAppendSerie("Banda", "%", conexao?.detalhes?["bw_util_pct"]?.Value()); + break; + + case T_Code.Gps: + var gps = rover.Gnss; + AddOrAppendSerie("Precisão", "cm", gps?.PrecisaoCm); + AddOrAppendSerie("Altitude", "m", gps?.Altitude); + AddOrAppendSerie("Idade", "s", gps?.IdadeCorrecao); + AddOrAppendSerie("Satélites", "", gps?.NumeroSatelites); + break; + + case T_Code.Bat: + var bat = rover.Bateria; + AddOrAppendSerie("Tensão", "V", bat?.TensaoInstantanea); + AddOrAppendSerie("Corrente", "A", bat?.CorrenteInstantanea); + AddOrAppendSerie("Temperatura", "°C", bat?.Temperatura); + break; + + case T_Code.Imu: + var imu = rover.Imu; + AddOrAppendSerie("Movimento", "", imu?.IndiceMovimento); + AddOrAppendSerie("Estabilidade", "", imu?.IndiceEstabilidade); + AddOrAppendSerie("Rugosidade", "", imu?.IndiceRugosidade); + AddOrAppendSerie("Impacto", "", imu?.IndiceImpacto); + break; + } + } + + } + + + + } diff --git a/AgroBase/AgroBase/Forms/IHM/frmMenu.Designer.cs b/AgroBase/AgroBase/Forms/IHM/frmMenu.Designer.cs index c1598d608..773971d3b 100644 --- a/AgroBase/AgroBase/Forms/IHM/frmMenu.Designer.cs +++ b/AgroBase/AgroBase/Forms/IHM/frmMenu.Designer.cs @@ -56,7 +56,7 @@ this.lblTituloAtualizacoes = new System.Windows.Forms.Label(); this.picWifi = new System.Windows.Forms.PictureBox(); this.lblAtualizacaoResumo = new System.Windows.Forms.Label(); - this.pgbAtualizacaoArquivos = new System.Windows.Forms.ProgressBar(); + this.pgbAtualizacaoArquivos = new Controls.Operacao.HmiProgressBar(); this.lblProgressoAtualizacao = new System.Windows.Forms.Label(); this.pnlFooter = new System.Windows.Forms.Panel(); this.footerLayout = new System.Windows.Forms.TableLayoutPanel(); @@ -168,7 +168,6 @@ this.lblTitulo.Size = new System.Drawing.Size(531, 31); this.lblTitulo.TabIndex = 0; this.lblTitulo.Text = "MENU DO EQUIPAMENTO"; - this.lblTitulo.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; // // lblStatus // @@ -183,7 +182,7 @@ this.lblStatus.Size = new System.Drawing.Size(531, 19); this.lblStatus.TabIndex = 1; this.lblStatus.Text = "Acesso rápido para operação em campo"; - this.lblStatus.TextAlign = System.Drawing.ContentAlignment.MiddleLeft; + this.lblStatus.TextAlign = System.Drawing.ContentAlignment.BottomLeft; // // pnlRoverStatus // @@ -727,7 +726,6 @@ this.pgbAtualizacaoArquivos.Margin = new System.Windows.Forms.Padding(5, 3, 5, 2); this.pgbAtualizacaoArquivos.Name = "pgbAtualizacaoArquivos"; this.pgbAtualizacaoArquivos.Size = new System.Drawing.Size(154, 11); - this.pgbAtualizacaoArquivos.Style = System.Windows.Forms.ProgressBarStyle.Continuous; this.pgbAtualizacaoArquivos.TabIndex = 3; // // lblProgressoAtualizacao @@ -875,7 +873,7 @@ private System.Windows.Forms.Label lblTituloAtualizacoes; private System.Windows.Forms.PictureBox picWifi; private System.Windows.Forms.Label lblAtualizacaoResumo; - public System.Windows.Forms.ProgressBar pgbAtualizacaoArquivos; + public new Controls.Operacao.HmiProgressBar pgbAtualizacaoArquivos; public System.Windows.Forms.Label lblProgressoAtualizacao; private System.Windows.Forms.Panel pnlFooter; private System.Windows.Forms.TableLayoutPanel footerLayout; diff --git a/AgroBase/AgroBase/Forms/IHM/frmMenu.cs b/AgroBase/AgroBase/Forms/IHM/frmMenu.cs index 4b9dd0d19..407b09b16 100644 --- a/AgroBase/AgroBase/Forms/IHM/frmMenu.cs +++ b/AgroBase/AgroBase/Forms/IHM/frmMenu.cs @@ -96,8 +96,9 @@ namespace AgroBase.Forms.IHM tileDiagnosticos.SetStatus(existeFalha ? "Existe uma falha ativa" : "Saúde geral normal", existeFalha ? HmiTheme.Warning : HmiTheme.Info); tileDiagnosticos.AccentColor = existeFalha ? HmiTheme.Warning : HmiTheme.Info; - bool pronto = operacaoLiberada && mqttConectado && iaConectada; + bool pronto = operacaoLiberada; + lblRoverNome.Text = $"ROVER {VariaveisEquipamento.Parametros.serial_number}"; lblRoverProntidao.Text = pronto ? "Pronto para operação" : "Aguardando condições"; lblRoverProntidao.ForeColor = pronto ? HmiTheme.Success : HmiTheme.Warning; lblRoverDot.ForeColor = pronto ? HmiTheme.Success : HmiTheme.Warning; diff --git a/AgroBase/AgroBase/Forms/IHM/frmOperacao.cs b/AgroBase/AgroBase/Forms/IHM/frmOperacao.cs index 2d4e4eeab..f2e6a8688 100644 --- a/AgroBase/AgroBase/Forms/IHM/frmOperacao.cs +++ b/AgroBase/AgroBase/Forms/IHM/frmOperacao.cs @@ -1,5 +1,4 @@ - -using AgroBase.Forms.IHM.Controls; +using AgroBase.Forms.IHM.Controls; using AgroBase.Forms.IHM.Operacao; using AgroBase.Models; using System; @@ -55,6 +54,8 @@ namespace AgroBase.Forms.IHM lblStatusOperacao.Text = op_liberada ? "Operação Liberada" : "Operação Bloqueada"; lblStatusOperacao.ForeColor = op_liberada ? HmiTheme.Success : HmiTheme.Warning; + lblModoValor.Text = (op?.Parametros?.Modo ?? Enums.ModoOperacao.NaoDefinido).ToString(); + switch (_abaAtual) { case AbaOperacaoIHM.Movimentacao: diff --git a/AgroBase/AgroBase/Models/Variaveis.cs b/AgroBase/AgroBase/Models/Variaveis.cs index c48e4a97c..34fd351ad 100644 --- a/AgroBase/AgroBase/Models/Variaveis.cs +++ b/AgroBase/AgroBase/Models/Variaveis.cs @@ -22,6 +22,7 @@ using Newtonsoft.Json; using AgroMonitor; using System.Net; using System.Net.Sockets; +using AgroBase.Forms.IHM.Controls.Operacao; namespace AgroBase.Models { @@ -1419,6 +1420,15 @@ namespace AgroBase.Models Valor > pgb.Maximum ? pgb.Value = pgb.Maximum : pgb.Minimum; } + + public static void PreencheValorProgressBar(HmiProgressBar pgb, double Valor) + { + pgb.Value = + Valor >= pgb.Minimum && Valor <= pgb.Maximum ? pgb.Value = Convert.ToInt32(Valor) : + Valor < pgb.Minimum ? pgb.Value = pgb.Minimum : + Valor > pgb.Maximum ? pgb.Value = pgb.Maximum : + pgb.Minimum; + } public static void PreencheValorTrackBar(TrackBar tkb, double Valor) { diff --git a/AgroBase/AgroBase/bin/x64/Debug/Python/Scripts/workers/health_worker/modulos/imu.py b/AgroBase/AgroBase/bin/x64/Debug/Python/Scripts/workers/health_worker/modulos/imu.py index c58aa301d..350c2b2a8 100644 --- a/AgroBase/AgroBase/bin/x64/Debug/Python/Scripts/workers/health_worker/modulos/imu.py +++ b/AgroBase/AgroBase/bin/x64/Debug/Python/Scripts/workers/health_worker/modulos/imu.py @@ -1487,12 +1487,11 @@ class CameraIMU(ModuloDiagnosticoBase): sensors_count = int(data.get("sensors_count", 0) or 0) sensors_valid_count = int(data.get("sensors_valid_count", 0) or 0) sensors_ignored_count = int(data.get("sensors_ignored_count", 0) or 0) + fontes_count = len(data.get("fontes", [])) if sensors_count <= 0: - motivos.append( - "Nenhum dos módulos IMU configurados foi detectado" - ) - elif sensors_valid_count <= 0 and sensors_ignored_count > 0: + motivos.append("Nenhum dos módulos IMU configurados foi detectado") + elif sensors_valid_count <= 0 and sensors_ignored_count > 0 and fontes_count > 0: motivos.append("Câmeras detectadas, mas nenhuma IMU válida") else: motivos.append("Nenhuma IMU válida disponível") @@ -1553,9 +1552,13 @@ class CameraIMU(ModuloDiagnosticoBase): saude = int(max(0, min(100, saude))) + modo = data.get("modo", "sem_imu") + status = StatusModulo.OPERANTE if not conectado: status = StatusModulo.DESCONECTADO + elif modo == "sem_imu": + status = StatusModulo.DESCONECTADO elif not valido: status = StatusModulo.FALHA elif saude <= 45: