Exemple #1
0
        public bool UpdatePanelDisplay(InstrumentPanel panel)
        {
            try
            {
                var lineStrings = new List <string>();
                panel.InstrumentLines.ForEach(l =>
                {
                    try
                    {
                        lineStrings.Add(l.ToString());
                    }
                    catch (Exception)
                    {
                        lineStrings.Add(string.Empty);
                    }
                });

                G13Device.Display.UpdateDisplay(lineStrings);
                return(true);
            }
            catch (Exception)
            {
                return(false);
            }
        }
Exemple #2
0
 public bool UpdateInstrumentPanelData(InstrumentPanel panel, int i)
 {
     try
     {
         foreach (var line in panel.InstrumentLines)
         {
             for (int counter = 0; counter < line.Data.Count; counter++)
             {
                 line.Data[counter] = i;
             }
         }
         return(true);
     }
     catch (Exception)
     {
         return(false);
     }
 }