Beispiel #1
0
 public void SetRecentFiles(RecentFiles recentXsltFiles)
 {
     _xsltFiles = recentXsltFiles;
     if (recentXsltFiles != null)
     {
         _recentFilesCombo = new RecentFilesComboBox(recentXsltFiles, this.SourceFileName);
         recentXsltFiles.RecentFileSelected += OnRecentFileSelected;
     }
 }
Beispiel #2
0
 public RecentFilesComboBox(RecentFiles files, ComboBox location)
 {
     this._files = files;
     files.RecentFilesChanged            += OnRecentFilesChanged;
     this._location                       = location;
     this._location.SelectedIndexChanged += new EventHandler(OnSelectedIndexChanged);
     this._location.KeyDown              += new KeyEventHandler(OnLocationKeyDown);
     this._location.AutoCompleteMode      = AutoCompleteMode.SuggestAppend;
     this._location.AutoCompleteSource    = AutoCompleteSource.CustomSource;
 }
Beispiel #3
0
 public RecentFilesMenu(RecentFiles files, ToolStripMenuItem parent)
 {
     this._parent              = parent;
     this._files               = files;
     files.RecentFilesChanged += OnRecentFilesChanged;
 }