private void ConsolePrint(int iSess, AW.Color color, bool bold, bool italics, string msg) { m_bot.Attributes.ConsoleColor = color; m_bot.Attributes.ConsoleBold = bold; m_bot.Attributes.ConsoleItalics = italics; m_bot.Attributes.ConsoleMessage = " " + msg; var rc = m_bot.ConsoleMessage(iSess); if (rc != AW.Result.Success) { Console.WriteLine(rc); } }
/// <summary> /// Casts the color. /// </summary> /// <param name="awColor">Color of the aw.</param> /// <returns></returns> internal static System.Drawing.Color CastColor(AW.Color awColor) { return(System.Drawing.Color.FromArgb(awColor.R, awColor.G, awColor.B)); }