Example #1
0
        /// <summary>
        /// Initializes a new instance of the <see cref="GACManagerViewModel"/> class.
        /// </summary>
        public GACManagerViewModel()
        {
            InitCommands();

            //  Update Gac Util Status info.
            GacUtilStatusInfo = GacUtil.CanFindExecutable() ? Resources.Msg_GacUtilFound :
                                Resources.Msg_GacUtilNotFound;
        }
        /// <summary>
        /// Initializes a new instance of the <see cref="GACManagerViewModel"/> class.
        /// </summary>
        public GACManagerViewModel()
        {
            //  Create the refresh assemblies command.
            RefreshAssembliesCommand    = new AsynchronousCommand(DoRefreshAssembliesCommand, true);
            CopyDisplayNameCommand      = new Command(DoCopyDisplayNameCommand, false);
            ShowFilePropertiesCommand   = new Command(DoShowFilePropertiesCommand, false);
            UninstallAssemblyCommand    = new Command(() => { }, false);
            OpenAssemblyLocationCommand = new Command(() => {}, false);
            InstallAssemblyCommand      = new Command(() => {});
            HelpCommand = new Command(() => {});
            ShowAssemblyDetailsCommand = new Command(DoShowAssemblyDetailsCommand, false);

            //  Update Gac Util Status info.
            GacUtilStatusInfo = GacUtil.CanFindExecutable() ? "GacUtil is installed" :
                                "Cannot find GacUtil";
        }
Example #3
0
 public void CanFindExecutableTest()
 {
     //  We are running in Visual Studio, therefore we should be able to find
     //  the GacUtil.
     Assert.AreEqual(GacUtil.CanFindExecutable(), true, "Unable to successfully find the gacutil executable.");
 }