public CategoryScale() { this.LabelDefinition.Format = (string)null; this._binder = (ICategoryBinder) new CategoryScale.DefaultBinder(this); this._treeSource = (ITreeSource) new CategoryScale.DefaultTreeSource(this); ((CategoryScale.DefaultTreeSource) this._treeSource).TreeChanged += new EventHandler <TreeChangedEventArgs>(this.TreeChanged); }
public TreeListsBinding(ITreeSource treeSource, TreeListBox directoryTreeListBox, TreeListBox directoryContentListBox) { Verify.Argument.IsNotNull(treeSource, "treeSource"); Verify.Argument.IsNotNull(directoryTreeListBox, "directoryTreeListBox"); Verify.Argument.IsNotNull(directoryContentListBox, "directoryContentListBox"); _treeSource = treeSource; _directoryTreeListBox = directoryTreeListBox; _directoryContentListBox = directoryContentListBox; Progress = directoryTreeListBox.ProgressMonitor; }
public TreeListsBinding(ITreeSource treeSource, TreeListBox directoryTreeListBox, TreeListBox directoryContentListBox) { Verify.Argument.IsNotNull(treeSource, nameof(treeSource)); Verify.Argument.IsNotNull(directoryTreeListBox, nameof(directoryTreeListBox)); Verify.Argument.IsNotNull(directoryContentListBox, nameof(directoryContentListBox)); TreeSource = treeSource; DirectoryTreeListBox = directoryTreeListBox; DirectoryContentListBox = directoryContentListBox; Progress = directoryTreeListBox.ProgressMonitor; }
public TreeEntryMenu(ITreeSource treeSource, TreeItem treeItem) { if(treeSource == null) throw new ArgumentNullException("treeSource"); if(treeItem == null) throw new ArgumentNullException("treeItem"); _treeSource = treeSource; _treeItem = treeItem; // save as // checkout Items.Add(GuiItemFactory.GetCheckoutPathItem<ToolStripMenuItem>(treeSource, treeItem.RelativePath)); }
protected override void DetachViewModel(object viewModel) { base.DetachViewModel(viewModel); var vm = viewModel as TreeViewModel; if (vm != null) { _treeSource = null; Text = Resources.StrTree; DataSource = null; } }
public TreeMenu(ITreeSource treeSource, TreeDirectoryListItem item) { Verify.Argument.IsNotNull(item, "item"); Items.Add(GuiItemFactory.GetExpandAllItem <ToolStripMenuItem>(item)); Items.Add(GuiItemFactory.GetCollapseAllItem <ToolStripMenuItem>(item)); if (treeSource != null) { Items.Add(new ToolStripSeparator()); Items.Add(GuiItemFactory.GetPathHistoryItem <ToolStripMenuItem>(treeSource.Revision, item.DataContext)); Items.Add(new ToolStripSeparator()); Items.Add(GuiItemFactory.GetCheckoutPathItem <ToolStripMenuItem>(treeSource.Revision, item.DataContext)); } }
public TreeEntryMenu(ITreeSource treeSource, TreeItem treeItem) { if (treeSource == null) { throw new ArgumentNullException("treeSource"); } if (treeItem == null) { throw new ArgumentNullException("treeItem"); } _treeSource = treeSource; _treeItem = treeItem; // save as // checkout Items.Add(GuiItemFactory.GetCheckoutPathItem <ToolStripMenuItem>(treeSource, treeItem.RelativePath)); }
protected override void AttachViewModel(object viewModel) { base.AttachViewModel(viewModel); var vm = viewModel as TreeViewModel; if (vm != null) { _treeSource = vm.TreeSource; if (_treeSource != null) { Text = Resources.StrTree + " " + _treeSource.DisplayName; DataSource = new TreeListsBinding(_treeSource, _directoryTree, _treeContent); } else { Text = Resources.StrTree; DataSource = null; } } }
public TreeViewModel(ITreeSource treeSource) { _treeSource = treeSource; }
public TreeViewModel(ITreeSource treeSource) { _treeSource = treeSource; }