public void AddOrModifyUserMonitoredApplication(string userName, 
			Application application,
			int totalAllowedMinutes, 
			int remainingSecondsToday)
        {
            RegistryKey userAppMonitor = this.mProgramMonitorRoot.CreateSubKey(string.Format(USER_ROOT, userName));

            if (userAppMonitor != null)
            {
                RegistryKey app = userAppMonitor.CreateSubKey(application.Executable);

                app.SetValue(DISPLAY_NAME_VALUE, application.DisplayName);
                app.SetValue(INSTALLED_LOCATION_VALUE, application.InstalledLocation);

                if (application.AllUsers)
                    app.SetValue(INSTALLED_FOR_USER_VALUE, "(All Users)");
                else
                    app.SetValue(INSTALLED_FOR_USER_VALUE, application.InstalledForUser);

                this.UpdateTimeAllowed(app, totalAllowedMinutes);
                this.UpdateTimeRemaining(app, remainingSecondsToday);
            }
        }
 public void AddInstalledApplication(Application installedApp, bool isMonitored)
 {
     this.mListView.AddInstalledApplication(installedApp, isMonitored);
 }