private void Window_Loaded(object sender, RoutedEventArgs e) {//load try { HelpClass.StartAwait(grid_main); requiredControlList = new List <string> { "type" }; #region translate 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; } translat(); #endregion PackageUser pu = packageUser; FillCombo.fillOfflineActivation(cb_type); HelpClass.EndAwait(grid_main); } catch (Exception ex) { HelpClass.EndAwait(grid_main); HelpClass.ExceptionMessage(ex, this); } }