private void Import() { var openFileDialog = new OpenFileDialog() { Filter = "Registry files|*.reg", }; if (openFileDialog.ShowDialog(Application.Current.MainWindow).Value) { RegistryServices.ImportReg(openFileDialog.FileName); this.UnsubscribeEvents(); IsWaitingDisplayed.Instance.Publish(true); this.Applications.ClearItems(); this.Applications.AddRange(RegistryServices.GetApplications(this.RegistryKey)); IsWaitingDisplayed.Instance.Publish(false); this.SubscribeEvents(); } }