/// <summary> /// Initializes a new instance of the <see cref="Lcdisplay"/> class. /// </summary> private Lcdisplay() { m_defaultFont = FontFactory.GetFont("Microsoft Sans Serif", 13.5f, FontStyle.Regular, GraphicsUnit.Point); m_bmpLCD = new Bitmap(G15Width, G15Height, PixelFormat.Format24bppRgb); m_bmpLCD.SetResolution(G15DpiX, G15DpiY); m_lcdCanvas = Graphics.FromImage(m_bmpLCD); m_lcdCanvas.TextRenderingHint = TextRenderingHint.SingleBitPerPixelGridFit; m_bmpLCDX = new Bitmap(G15Width, G15Height, PixelFormat.Format24bppRgb); m_bmpLCDX.SetResolution(G15DpiX, G15DpiY); m_lcdOverlay = Graphics.FromImage(m_bmpLCDX); m_lcdOverlay.TextRenderingHint = TextRenderingHint.SingleBitPerPixelGridFit; m_buttonStateHld = DateTime.Now; m_cycleTime = DateTime.Now.AddSeconds(10); m_cycleQueueInfoTime = DateTime.Now.AddSeconds(5); m_showingCycledQueueInfo = false; Cycle = false; ShowSystemTime = false; CycleSkillQueueTime = false; FirstSkillCompletionRemaingTime = TimeSpan.FromTicks(DateTime.Now.Ticks); m_buttonDelegate = new ButtonDelegate(OnButtonsPressed); LCDInterface.AssignButtonDelegate(m_buttonDelegate); LCDInterface.Open("EVEMon", false); }
private Lcdisplay() { m_defaultFont = FontFactory.GetFont("Microsoft Sans Serif", 13.5f, FontStyle.Regular, GraphicsUnit.Point); m_bufferOut = new byte[6880]; // using standard brushes in a multithreaded app is bad mkay ? m_defBrush = new SolidBrush(Color.Black); m_backColor = Color.White; m_defPen = new Pen(m_defBrush); m_bmpLCD = new Bitmap(160, 43, PixelFormat.Format24bppRgb); m_bmpLCD.SetResolution(46f, 46f); m_lcdGraphics = Graphics.FromImage(m_bmpLCD); m_lcdGraphics.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit; m_bmpLCDX = new Bitmap(160, 43, PixelFormat.Format24bppRgb); m_bmpLCDX.SetResolution(46f, 46f); m_lcdGraphicsX = Graphics.FromImage(m_bmpLCDX); m_lcdGraphicsX.TextRenderingHint = System.Drawing.Text.TextRenderingHint.SingleBitPerPixelGridFit; m_lines = new string[3] { "", "", "" }; m_formatStringConverted = FORMAT_CHAR_SKILL_TIME_STRING.Replace("[c]", "{0}").Replace("[s]", "{1}").Replace("[t]", "{2}"); using (Stream strm = System.Reflection.Assembly.GetExecutingAssembly().GetManifestResourceStream("EVEMon.LogitechG15.EVEMon-all.ico")) { m_EVEMonSplash = new Icon(strm); } m_lcd = new LCDInterface(); m_buttonDelegate = new ButtonDelegate(this.OnButtonsPressed); m_lcd.AssignButtonDelegate(m_buttonDelegate); m_lcd.Open("EVEMon", false); m_buttonStateHld = DateTime.Now; m_cycleTime = DateTime.Now.AddSeconds(10); m_cycleCompletionTimeTime = DateTime.Now.AddSeconds(5); m_cycle = false; m_showTime = false; m_cycleCompletionTime = false; m_showingCompletionTime = false; m_completionString = "Hotaru Nakayoshi\nhas finished learning skill\nHull Upgrades V"; m_leasttime = TimeSpan.FromTicks(DateTime.Now.Ticks); }
public void SetButtonDelegateImplementation(ButtonDelegate bDelegate) { lcd.AssignButtonDelegate(bDelegate); }