internal FontOverallConfiguration(ExplorerTreeViewModel explorerTreeVM, IConfiguration configuration) { this.ExplorerTreeVM = explorerTreeVM; this.DriveFontConfiguration = configuration.Drive.Font; this.DirectoryFontConfiguration = configuration.Directory.Font; this.FileFontConfiguration = configuration.File.Font; }
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); }
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; }
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(); }
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(); }
/// <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) { }
internal Configuration(ExplorerTreeViewModel explorerTreeVM) { this.Init(explorerTreeVM); }
public FileIconConfiguration(ExplorerTreeViewModel explorerTreeVM) : base(explorerTreeVM) { }
internal SelectedExplorerTreeItemAPI(ExplorerTreeViewModel explorerTreeVM) { this.ExplorerTreeVM = explorerTreeVM; }
public DriveIconConfiguration(ExplorerTreeViewModel explorerTreeVM) { this.ExplorerTreeVM = explorerTreeVM; this.ActiveIconState = IconStates.SmallIcon; }
public FileConfiguration(ExplorerTreeViewModel explorerTreeVM) { this.Font = new FileFontConfiguration(explorerTreeVM); this.Icon = new FileIconConfiguration(explorerTreeVM); }
public DriveConfiguration(ExplorerTreeViewModel explorerTreeVM) { this.Availability = new DriveAvailabilityConfiguration(explorerTreeVM); this.Font = new DriveFontConfiguration(explorerTreeVM); this.Icon = new DriveIconConfiguration(explorerTreeVM); }
public void Initialisation(ExplorerTreeViewModel explorerTreeVM) { this.Init(explorerTreeVM); }
public DirectoryConfiguration(ExplorerTreeViewModel explorerTreeVM) { this.Font = new DirectoryFontConfiguration(explorerTreeVM); this.Icon = new DirectoryIconConfiguration(explorerTreeVM); }
internal HiddenOverallConfiguration(ExplorerTreeViewModel explorerTreeVM) { this.ExplorerTreeVM = explorerTreeVM; this.ShowHiddenElements = false; }
internal DriveAvailabilityConfiguration(ExplorerTreeViewModel explorerTreeVM) { this.ExplorerTreeVM = explorerTreeVM; this.InitActivatableDriveTypes(); }
protected AExplorerTreeChildItemIconConfiguration(ExplorerTreeViewModel explorerTreeVM) { this.ActiveIconState = IconStates.SmallIcon; this.ExplorerTreeVM = explorerTreeVM; }