public DebugLogForm() { InitializeComponent(); singleton = DebugLogSingleton.GetInstance(); singleton.OnEntry += SingletonOnOnEntry; richTextBox1.Text += singleton.ToString(); comboBox1.Items.AddRange(singleton.DebugLogs.Select(x => x.Pattern).Distinct().ToArray()); }
public static DebugLogSingleton GetInstance() { return(_instance ?? (_instance = new DebugLogSingleton())); }