Exemplo n.º 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);
     }
 }
Exemplo n.º 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);
        }
Exemplo n.º 3
0
 protected virtual void OnConsoleUpdated(UpdatedConsoleEventArgs e)
 {
     ConsoleUpdated?.Invoke(this, e);
 }