Esempio n. 1
0
 internal FontOverallConfiguration(ExplorerTreeViewModel explorerTreeVM, IConfiguration configuration)
 {
     this.ExplorerTreeVM             = explorerTreeVM;
     this.DriveFontConfiguration     = configuration.Drive.Font;
     this.DirectoryFontConfiguration = configuration.Directory.Font;
     this.FileFontConfiguration      = configuration.File.Font;
 }
Esempio n. 2
0
 internal IconOverallConfiguration(ExplorerTreeViewModel explorerTreeViewModel, IConfiguration configuration)
 {
     this.ExplorerTreeVM             = explorerTreeViewModel;
     this.DriveIconConfiguration     = configuration.Drive.Icon;
     this.DirectoryIconConfiguration = configuration.Directory.Icon;
     this.FileIconConfiguration      = configuration.File.Icon;
 }
        public void DriveIconConfiguration_DefaultInitialisation_PropertyExplorerTreeVMIsInitialised()
        {
            ExplorerTreeViewModel  mockExplorerTreeVM     = CreateFakeExplorerTreeVM();
            DriveIconConfiguration driveIconConfiguration = new DriveIconConfiguration(mockExplorerTreeVM);

            Assert.AreEqual(mockExplorerTreeVM, driveIconConfiguration.ExplorerTreeVM);
        }
Esempio n. 4
0
 public DriveFontConfiguration(ExplorerTreeViewModel explorerTreeVM)
 {
     this.ExplorerTreeVM = explorerTreeVM;
     this.fontFamily     = new System.Windows.Media.FontFamily("Times New Roman");
     this.fontSize       = 12;
     this.fontStrech     = FontStretches.Normal;
     this.fontStyle      = FontStyles.Normal;
     this.fontWeight     = FontWeights.Normal;
 }
Esempio n. 5
0
 internal ExplorerTree(IConfiguration configuration         = null, ExplorerTreeViewModel explorerTreeViewModel = null,
                       IPresentationLogic presentationLogic = null, ISelectedExplorerTreeItemAPI selectedExplorerTreeItemAPI = null)
 {
     this.configuration     = configuration ?? new Configuration.Configuration();
     this.PresentationLogic = presentationLogic ?? PresentationLogicFactory.CreatePresentationLogic(configuration);
     this.explorerTreeVM    = explorerTreeViewModel ?? new ExplorerTreeViewModel((this as IExplorerTree).Configuration, this.PresentationLogic);
     this.PresentationLogic.ExplorerTreeVM = this.explorerTreeVM;
     (this as IExplorerTree).Configuration.Initialisation((this as IExplorerTree).ExplorerTreeVM);
     this.selectedItemAPI = selectedExplorerTreeItemAPI ?? new SelectedExplorerTreeItemAPI(this.explorerTreeVM);
     this.explorerTreeVM.LoadAllDriveItemViewModels();
 }
Esempio n. 6
0
        private void Init(ExplorerTreeViewModel explorerTreeVM)
        {
            this.ExplorerTreeVM = explorerTreeVM;

            this.Directory = new DirectoryConfiguration(this.ExplorerTreeVM);
            this.Drive     = new DriveConfiguration(this.ExplorerTreeVM);
            this.File      = new FileConfiguration(this.ExplorerTreeVM);

            this.FontOverall            = new FontOverallConfiguration(this.ExplorerTreeVM, this);
            this.IconOverall            = new IconOverallConfiguration(this.ExplorerTreeVM, this);
            this.HiddenOverall          = new HiddenOverallConfiguration(this.ExplorerTreeVM);
            this.SelectionConfiguration = new SelectionConfiguration.SelectionConfiguration();
        }
Esempio n. 7
0
        /// <summary>
        ///
        /// </summary>
        /// <param name="explorerTreeVM"></param>
        protected AExplorerTreeChildItemFontConfiguration(ExplorerTreeViewModel explorerTreeVM)
        {
            this.ExplorerTreeVM = explorerTreeVM;



            // don't use property for initialisation!!!
            // because property calls -> UpdateCurrentlyLoadedFontVMsOfTheExplorerTree()
            // and this uses ExplorerTreeVM -> and this could be null!!!!
            // I did not want a zero check, because for these no reasonable error
            // handling would be possible. Or would a log make sense here?
            this.fontFamily = new System.Windows.Media.FontFamily("Times New Roman");
            this.fontSize   = 12;
            this.fontStrech = FontStretches.Normal;
            this.fontStyle  = FontStyles.Normal;
            this.fontWeight = FontWeights.Normal;
        }
 public DirectoryFontConfiguration(ExplorerTreeViewModel explorerTreeVM) : base(explorerTreeVM)
 {
 }
Esempio n. 9
0
 internal Configuration(ExplorerTreeViewModel explorerTreeVM)
 {
     this.Init(explorerTreeVM);
 }
Esempio n. 10
0
 public FileIconConfiguration(ExplorerTreeViewModel explorerTreeVM) : base(explorerTreeVM)
 {
 }
Esempio n. 11
0
 internal SelectedExplorerTreeItemAPI(ExplorerTreeViewModel explorerTreeVM)
 {
     this.ExplorerTreeVM = explorerTreeVM;
 }
Esempio n. 12
0
 public DriveIconConfiguration(ExplorerTreeViewModel explorerTreeVM)
 {
     this.ExplorerTreeVM  = explorerTreeVM;
     this.ActiveIconState = IconStates.SmallIcon;
 }
Esempio n. 13
0
 public FileConfiguration(ExplorerTreeViewModel explorerTreeVM)
 {
     this.Font = new FileFontConfiguration(explorerTreeVM);
     this.Icon = new FileIconConfiguration(explorerTreeVM);
 }
Esempio n. 14
0
 public DriveConfiguration(ExplorerTreeViewModel explorerTreeVM)
 {
     this.Availability = new DriveAvailabilityConfiguration(explorerTreeVM);
     this.Font         = new DriveFontConfiguration(explorerTreeVM);
     this.Icon         = new DriveIconConfiguration(explorerTreeVM);
 }
Esempio n. 15
0
 public void Initialisation(ExplorerTreeViewModel explorerTreeVM)
 {
     this.Init(explorerTreeVM);
 }
Esempio n. 16
0
 public DirectoryConfiguration(ExplorerTreeViewModel explorerTreeVM)
 {
     this.Font = new DirectoryFontConfiguration(explorerTreeVM);
     this.Icon = new DirectoryIconConfiguration(explorerTreeVM);
 }
Esempio n. 17
0
 internal HiddenOverallConfiguration(ExplorerTreeViewModel explorerTreeVM)
 {
     this.ExplorerTreeVM     = explorerTreeVM;
     this.ShowHiddenElements = false;
 }
 internal DriveAvailabilityConfiguration(ExplorerTreeViewModel explorerTreeVM)
 {
     this.ExplorerTreeVM = explorerTreeVM;
     this.InitActivatableDriveTypes();
 }
Esempio n. 19
0
 protected AExplorerTreeChildItemIconConfiguration(ExplorerTreeViewModel explorerTreeVM)
 {
     this.ActiveIconState = IconStates.SmallIcon;
     this.ExplorerTreeVM  = explorerTreeVM;
 }