Example #1
0
 /// <summary>
 /// Handle updating of console
 /// </summary>
 void All_ConsoleUpdated(object sender, UpdatedConsoleEventArgs e)
 {
     if (e != null && e.MessageOutput != null && e.MessageColor != null)
     {
         UpdateConsole(e.MessageOutput, e.MessageColor);
     }
 }
Example #2
0
        /// <summary>
        /// Update the console on the main form using event, choose color
        /// </summary>
        /// <param name="consoleMessage">Message to output to console</param>
        /// <param name="messageColor">Color from list of: yel, grn, blu, red, whi</param>
        public void UpdateConsole(string consoleMessage, string messageColor)
        {
            UpdatedConsoleEventArgs ucea = new UpdatedConsoleEventArgs
            {
                MessageOutput = consoleMessage,
                MessageColor  = messageColor
            };

            OnConsoleUpdated(ucea);
        }
Example #3
0
 protected virtual void OnConsoleUpdated(UpdatedConsoleEventArgs e)
 {
     ConsoleUpdated?.Invoke(this, e);
 }