Exemplo n.º 1
0
 public ListUserControl(string title, bool menu, string result, string message)
 {
     InitializeComponent();
     InitializeColors();
     this.menu.Visible = menu;
     window.Text       = title;
     if (result.ToLower().Trim().Contains("oscar"))
     {
         var list   = MovieController.GetByOscar();
         var thread = new Thread(() => FillListView(list, message));
         thread.Start();
     }
     else
     {
         var thread = new Thread(() => FillListView(SearchController.CreateIndexFolder(result), message));
         thread.Start();
     }
 }