Exemple #1
0
 public static void Present(IView view)
 {
     // fast bit do synchronous...
     mView = view;
     String cs;
     List<String> css = new List<string>();
     if(File.Exists(csf)) css.AddRange(File.ReadAllLines(csf));
     cs = view.GetConnectionString(css.ToArray());
     if (!css.Contains(cs) && !string.IsNullOrEmpty(cs)) css.Add(cs);
     File.WriteAllLines(csf, css.ToArray());
     view.loading = true;
     ThreadPool.QueueUserWorkItem(InitData, cs);
 }