public CreateLeafViewModel(IWordLogicHandler wordLogicHandler, MainDashboardViewModel mainDashboard, string parentTreeName) { _wordLogicHandler = wordLogicHandler; _mainDashboard = mainDashboard; ParentTreeName = parentTreeName; CreateLeafCommand = new CreateLeafCommand(this); }
public ViewTreeViewModel(IWordLogicHandler wordLogicHandler, string selectedTree) { _wordLogicHandler = wordLogicHandler; TreeName = selectedTree; StatsButtonEnabled = true; LoadingMessage = ""; UpdateStatisticsCommand = new UpdateStatisticsCommand(this); }
public MainDashboardViewModel(IWindowManager windowManager, IFolderLogicHandler folderLogicHandler, IWordLogicHandler wordLogicHandler, IFileSystem fileSystem) { _windowManager = windowManager; _folderLogicHandler = folderLogicHandler; _wordLogicHandler = wordLogicHandler; _fileSystem = fileSystem; DeleteTreeCommand = new DeleteTreeCommand(this); ViewTreeCommand = new ViewTreeCommand(this); DeleteLeafCommand = new DeleteLeafCommand(this); ViewLeafCommand = new ViewLeafCommand(this); UpdateTreesList(); UpdateLeavesList(); }