public void btn_Install() { btn_InstallIsVisible = "Hidden"; if (PickedInstallerList.Count > 0) { InstallRunner.InstallPrograms(PickedInstallerList); } AvailableFiles.Clear(); GetAllInstaller(); PickedInstallerList.Clear(); }
public void btn_RemoveAllInstaller() { try { foreach (Installer installer in PickedInstallerList) { AvailableFiles.Add(installer); LogHelper.WriteToLog($"{installer.Filename} is removed from installation list", LogState.Info); } PickedInstallerList.Clear(); btn_InstallIsVisible = CheckList(PickedInstallerList); btn_AddInstallerIsVisible = CheckList(AvailableFiles); btn_AddAllInstallerIsVisible = CheckList(AvailableFiles); btn_RemoveInstallerIsVisible = CheckList(PickedInstallerList); btn_RemoveAllInstallerIsVisible = CheckList(PickedInstallerList); } catch (Exception e) { LogHelper.WriteToLog(e.Message + "\r\n" + e.StackTrace, LogState.Error); } }