ComparisonUtility.MigrationUtility.ShowUpdateMessage C# (CSharp) Метод

ShowUpdateMessage() приватный Метод

private ShowUpdateMessage ( string message ) : void
message string
Результат void
        private void ShowUpdateMessage(string message, params object[] args)
        {
            if (m_formClosing)
                return;

            if (InvokeRequired)
            {
                BeginInvoke(new Action<string, object[]>(ShowUpdateMessage), message, args);
            }
            else
            {
                StringBuilder outputText = new StringBuilder();

                outputText.AppendFormat(message, args);
                outputText.AppendLine();

                lock (textBoxMessageOutput)
                    textBoxMessageOutput.AppendText(outputText.ToString());
            }
        }

Usage Example

            protected virtual void Dispose(bool disposing)
            {
                if (!m_disposed)
                {
                    try
                    {
                        if ((object)m_server != null)
                        {
                            m_server.Dispose();
                            m_server = null;
                        }

                        if ((object)m_logSubscriber != null)
                        {
                            m_logSubscriber.NewLogMessage -= m_logSubscriber_Log;
                            m_logSubscriber = null;
                        }

                        m_parent.ShowUpdateMessage("[SnapDB] Engine terminated");
                        {
                        }
                    }
                    finally
                    {
                        m_disposed = true;  // Prevent duplicate dispose.
                    }
                }
            }
All Usage Examples Of ComparisonUtility.MigrationUtility::ShowUpdateMessage