public override void AwakeFromNib() { base.AwakeFromNib(); m_colorBackground = GuiUtils.ConvertColor(Colors.LightChartBackground); m_colorGrid = GuiUtils.ConvertColor(Colors.LightChartGrid); m_colorAxis = GuiUtils.ConvertColor(Colors.LightChartAxis); m_colorMouse = GuiUtils.ConvertColor(Colors.LightChartMouse); m_colorDownloadGraph = GuiUtils.ConvertColor(Colors.LightChartLineDownload); m_colorDownloadLine = GuiUtils.ConvertColor(Colors.LightChartLineDownload); m_colorUploadGraph = GuiUtils.ConvertColor(Colors.LightChartLineUpload); m_colorUploadLine = GuiUtils.ConvertColor(Colors.LightChartLineUpload); //m_colorLegendText = GuiUtils.ConvertColor(Colors.LightChartLegend); m_colorDownloadText = GuiUtils.ConvertColor(Colors.LightChartLineDownload); m_colorUploadText = GuiUtils.ConvertColor(Colors.LightChartLineUpload); m_font = NSFont.FromFontName("Menlo", 10); m_chart = Engine.Instance.Stats.Charts.ChartsList[m_chartIndex]; Engine.Instance.Stats.Charts.UpdateEvent += new Core.UI.Charts.UpdateHandler(Charts_UpdateEvent); }