internal log_hook_info(delegate_log func, object v) { _func = func; _user_data = v; _h = GCHandle.Alloc(this); }
public void log(string s, bool clear = false) { if (textbox.InvokeRequired) { delegate_log delegatedMethod = log; Invoke(delegatedMethod, s, clear); return; } if (clear) { textbox.Text = ""; } if (textbox.Text.Length > 1) { textbox.Text += "\r\n"; } textbox.Text += s.Replace("\n", "\r\n"); // to properly display in textbox }
private void log(string s, bool clear = false) { if (s == null) { return; } if (textbox.InvokeRequired) { delegate_log delegatedMethod = log; Invoke(delegatedMethod, s, clear); return; } if (clear) { textbox.Text = ""; } textbox.AppendText((textbox.Text.Length > 1 ? "\r\n" : "") + s.Replace("\n", "\r\n")); // to properly display in textbox // logging textBoxLog.AppendText((textBoxLog.Text.Length > 1 ? "\r\n" : "") + s.Replace("\n", "\r\n")); // to properly display in textbox }
int ISQLite3Provider.sqlite3_config_log(delegate_log func, object v) { throw new Exception(GRIPE); }
public log_hook_info(delegate_log func, object v) { _func = func; _user_data = v; }
static public void sqlite3_config_log(delegate_log f, object v) { _imp.sqlite3_config_log(f, v); }
public int sqlite3_config_log(delegate_log func, object v) => throw new NotImplementedException();
internal void free() { _func = null; _user_data = null; _h.Free(); }