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