private void controller_ConfigChanged(object sender, EventArgs e)
        {
            List <string> list = (List <string>)((object[])sender)[0];

            if (list.Contains("All") || list.Contains(this.Name))
            {
                if (this.InvokeRequired)
                {
                    delegateConfigChanged adelegateConfigChanged = new delegateConfigChanged(controller_ConfigChanged);
                    this.Invoke(adelegateConfigChanged, new object[] { sender, e });
                    return;
                }
                LoadCurrentConfiguration();
            }
        }
        private void LogForm_Load(object sender, EventArgs e)
        {
            List <string> list = null;

            if (sender.GetType() == typeof(List <string>))
            {
                list = (List <string>)((object[])sender)[0];
            }
            if (list == null || list.Contains("All") || list.Contains(this.Name))
            {
                if (this.InvokeRequired)
                {
                    delegateConfigChanged adelegateConfigChanged = new delegateConfigChanged(LogForm_Load);
                    this.Invoke(adelegateConfigChanged, new object[] { sender, e });
                    return;
                }

                if (controller.GetCurrentConfiguration().enableLogging)
                {
                    if (enabled)
                    {
                        enabled        = false;
                        _currentOffset = 0;
                        tbLog.Clear();
                        tbLog.AppendText("Logging is enabled." + System.Environment.NewLine);
                        ReadLog();
                        refreshTimer.Start();
                    }
                }
                else
                {
                    if (!enabled)
                    {
                        enabled = true;
                        refreshTimer.Stop();
                        tbLog.Clear();
                        tbLog.AppendText("Logging is disabled, go to [Option Settings] to enable it." + System.Environment.NewLine);
                    }
                }
            }
        }