private void Window_Loaded(object sender, RoutedEventArgs e) { cr.LoadAllAreaForAvailableProduct(); cr.LoadAllGroupForAvailableProduct(); textBlock1.Text = @"Replace a product in selected display homes."; this.loadingimage.Image = global::SQSAdmin_WpfCustomControlLibrary.Properties.Resources.processingImage; SearchAvailableProducts_MultiThread(); SearchNewProducts(); }