Exemplo n.º 1
0
 public DecompilerAppSettingsTab(IDecompilerSettingsTab[] settings, DecompilerAppSettingsTabSettings decompilerAppSettingsTabSettings)
 {
     this.settings = settings;
     this.decompilerAppSettingsTabSettings = decompilerAppSettingsTabSettings;
     this.selectedLanguageSetting = settings.FirstOrDefault(a => StringComparer.Ordinal.Equals(a.Name, decompilerAppSettingsTabSettings.LastSelectedSettingsName));
     if (this.selectedLanguageSetting == null)
         this.selectedLanguageSetting = settings.Length == 0 ? null : settings[0];
 }
Exemplo n.º 2
0
 public DecompilerAppSettingsTab(IDecompilerSettingsTab[] settings, DecompilerAppSettingsTabSettings decompilerAppSettingsTabSettings)
 {
     this.settings = settings;
     this.decompilerAppSettingsTabSettings = decompilerAppSettingsTabSettings;
     this.selectedLanguageSetting          = settings.FirstOrDefault(a => StringComparer.Ordinal.Equals(a.Name, decompilerAppSettingsTabSettings.LastSelectedSettingsName));
     if (this.selectedLanguageSetting == null)
     {
         this.selectedLanguageSetting = settings.Length == 0 ? null : settings[0];
     }
 }
Exemplo n.º 3
0
 DecompilerAppSettingsTabProvider([ImportMany] IEnumerable <Lazy <IDecompilerSettingsTabProvider> > decompilerSettingsTabProviders)
 {
     this.decompilerSettingsTabProviders   = decompilerSettingsTabProviders.ToArray();
     this.decompilerAppSettingsTabSettings = new DecompilerAppSettingsTabSettings();
 }
Exemplo n.º 4
0
 DecompilerAppSettingsTabCreator([ImportMany] IEnumerable<Lazy<IDecompilerSettingsTabCreator>> creators)
 {
     this.creators = creators.ToArray();
     this.decompilerAppSettingsTabSettings = new DecompilerAppSettingsTabSettings();
 }
Exemplo n.º 5
0
 DecompilerAppSettingsTabCreator([ImportMany] IEnumerable <Lazy <IDecompilerSettingsTabCreator> > creators)
 {
     this.creators = creators.ToArray();
     this.decompilerAppSettingsTabSettings = new DecompilerAppSettingsTabSettings();
 }