コード例 #1
0
 public MainScreenManager(MainScreen control)
 {
     Control = control;
     // control is set, create the other managers
     FileManager     = new FileManager(this, Control.GridViewControl);
     LibraryManager  = new LibraryManager(this, Control.LibraryPanelControl);
     MetadataManager = new MetadataManager(this, Control.MetadataViewControl);
     SearchManager   = new SearchManager(this, Control.BasicSearchControl);
     // set them to their respective controls
     Control.BasicSearchControl.Manager  = SearchManager;
     Control.GridViewControl.Manager     = FileManager;
     Control.LibraryPanelControl.Manager = LibraryManager;
     Control.MetadataViewControl.Manager = MetadataManager;
 }
コード例 #2
0
 public MainScreenManager(MainScreen control)
 {
     Control = control;
     // control is set, create the other managers
     FileManager = new FileManager(this, Control.GridViewControl);
     LibraryManager = new LibraryManager(this, Control.LibraryPanelControl);
     MetadataManager = new MetadataManager(this, Control.MetadataViewControl);
     SearchManager = new SearchManager(this, Control.BasicSearchControl);
     // set them to their respective controls
     Control.BasicSearchControl.Manager = SearchManager;
     Control.GridViewControl.Manager = FileManager;
     Control.LibraryPanelControl.Manager = LibraryManager;
     Control.MetadataViewControl.Manager = MetadataManager;
 }