private async void UserControl_Loaded(object sender, RoutedEventArgs e) {//load try { HelpClass.StartAwait(grid_main); requiredControlList = new List <string> { "" }; if (MainWindow.lang.Equals("en")) { MainWindow.resourcemanager = new ResourceManager("AdministratorApp.en_file", Assembly.GetExecutingAssembly()); grid_main.FlowDirection = FlowDirection.LeftToRight; } else { MainWindow.resourcemanager = new ResourceManager("AdministratorApp.ar_file", Assembly.GetExecutingAssembly()); grid_main.FlowDirection = FlowDirection.RightToLeft; } translate(); await FillCombo.fillAgent(cb_agent); await FillCombo.fillCustomer(cb_customer); //Keyboard.Focus(tb_code); await Search(); Clear(); HelpClass.EndAwait(grid_main); } catch (Exception ex) { HelpClass.EndAwait(grid_main); HelpClass.ExceptionMessage(ex, this); } }