public static HostsWriter GetInstance() { if (HostsWriter.instance == null) { HostsWriter.instance = new HostsWriter(); } return(HostsWriter.instance); }
private void fooToolStripMenuItem_Click(object sender, EventArgs e) { //HostsWriter.GetInstance().AddEntry("123.123.123.123", "google.de", "#test"); HostsWriter.GetInstance().CheckLastEntry(); }
public static HostsWriter GetInstance() { if (HostsWriter.instance == null) HostsWriter.instance = new HostsWriter(); return HostsWriter.instance; }