public void StoreAndFillPersonalSettingsSteward(IPersonalUserSettingsSteward personalSettingsSteward)
 {
     this.SettingsSteward = personalSettingsSteward;
       this.RootFolderPathSetting = personalSettingsSteward.DeclareStringSetting(FolderBasePathSettingName, FolderBasePathSettingName, @"C:\ISSUES");
       this.FolderNameLimitSetting = personalSettingsSteward.DeclareIntSetting(FolderNameLengthLimiSettingName, FolderNameLengthLimiSettingName, 65);
       this.ListenClipboardSetting = personalSettingsSteward.DeclareBoolSetting(ListenClipboardSettingName, ListenClipboardSettingName, true);
 }
示例#2
0
 public void StoreAndFillPersonalSettingsSteward(IPersonalUserSettingsSteward personalSettingsSteward)
 {
     this.SettingsSteward        = personalSettingsSteward;
     this.RootFolderPathSetting  = personalSettingsSteward.DeclareStringSetting(FolderBasePathSettingName, FolderBasePathSettingName, @"C:\ISSUES");
     this.FolderNameLimitSetting = personalSettingsSteward.DeclareIntSetting(FolderNameLengthLimiSettingName, FolderNameLengthLimiSettingName, 65);
     this.ListenClipboardSetting = personalSettingsSteward.DeclareBoolSetting(ListenClipboardSettingName, ListenClipboardSettingName, true);
 }
示例#3
0
 public void StoreAndFillPersonalSettingsSteward(IPersonalUserSettingsSteward personalSettingsSteward)
 {
     IStringUserSetting userSetting = personalSettingsSteward.DeclareStringSetting(
     "Path to Small Apps folder",
     "Path to Small Apps folder",
     @"C:\Apps");
       var folderInfo = new DirectoryInfo(userSetting.Value);
       this.Applications = new Dictionary<string, string>();
       if (folderInfo.Exists)
       {
     foreach (FileInfo app in folderInfo.GetFiles("*.exe"))
     {
       this.Applications.Add(app.Name, app.FullName);
     }
       }
 }
        public void StoreAndFillPersonalSettingsSteward(IPersonalUserSettingsSteward personalSettingsSteward)
        {
            IStringUserSetting userSetting = personalSettingsSteward.DeclareStringSetting(
                "Path to Small Apps folder",
                "Path to Small Apps folder",
                @"C:\Apps");
            var folderInfo = new DirectoryInfo(userSetting.Value);

            this.Applications = new Dictionary <string, string>();
            if (folderInfo.Exists)
            {
                foreach (FileInfo app in folderInfo.GetFiles("*.exe"))
                {
                    this.Applications.Add(app.Name, app.FullName);
                }
            }
        }