예제 #1
0
        public void AddLog(string message)
        {
            if (LogBox.InvokeRequired)
            {
                UpdateAddLogDelegate update = new UpdateAddLogDelegate(AddLog);
                LogBox.Invoke(update, message);
            }
            else
            {
                LogBox.Items.Add(message);

                // Make sure the last item is made visible
                LogBox.SelectedIndex = LogBox.Items.Count - 1;
                LogBox.ClearSelected();
            }
        }