Ejemplo n.º 1
0
        private async void InstallFromDbItem_OnClick(object sender, RoutedEventArgs e)
        {
            if (this.AssembliesDBDataGrid.SelectedItems.Count == 0)
            {
                return;
            }

            foreach (var result in this.AssembliesDBDataGrid.SelectedItems.Cast <AssemblyEntry>())
            {
                if (this.Config.SelectedProfile.InstalledAssemblies.Any(a => a.Name == result.Name.WebDecode()))
                {
                    await this.ShowMessageAsync("Installer", $"{result.Name} is already installed");

                    continue;
                }

                await InstallerWindow.InstallAssembly(result, false);
            }
        }
Ejemplo n.º 2
0
        private async void InstallFromDbItem_OnClick(object sender, RoutedEventArgs e)
        {
            if (this.AssembliesDBDataGrid.SelectedItems.Count == 0)
            {
                return;
            }

            foreach (var result in this.AssembliesDBDataGrid.SelectedItems.Cast <AssemblyEntry>())
            {
                if (this.Config.SelectedProfile.InstalledAssemblies.Any(a => a.Name == HttpUtility.UrlDecode(result.Name)))
                {
                    await this.ShowMessageAsync("Installer", $"{result.Name} is already installed");

                    continue;
                }

                await InstallerWindow.InstallAssembly(result, false);

                //await Application.Current.Dispatcher.InvokeAsync(() => InstallerWindow.InstallAssembly(result, false));
            }
        }