public void Move() { var categoryPaths = this.dataSet.ExtendedProperties[CremaSchema.TypeDirectory] as string[]; var dialog = new MoveViewModel(this.categoryPath, categoryPaths); if (dialog.ShowDialog() != true) { return; } //await this.UnlockAsync(comment); //if (this.selector != null) // this.ExpandAncestors(); }
public void Move() { var dataSet = this.dataTable.DataSet; var categoryPaths = CategoryTreeViewItemViewModel.GetAllCategoryPaths(this); var dialog = new MoveViewModel(this.dataTable.CategoryPath + this.dataTable.Name, categoryPaths); if (dialog.ShowDialog() != true) { return; } var targetViewModel = FindCategory(dialog.TargetPath); this.Parent = null; this.Parent = targetViewModel; if (this.selector != null) { this.ExpandAncestors(); } }
public void Move() { var dataSet = this.dataType.DataSet; var categoryPaths = dataSet.ExtendedProperties[CremaSchema.TypeDirectory] as string[]; var dialog = new MoveViewModel(this.dataType.CategoryPath + this.dataType.Name, categoryPaths); if (dialog.ShowDialog() != true) { return; } var targetViewModel = FindCategory(dialog.TargetPath); this.Parent = null; this.Parent = targetViewModel; if (this.selector != null) { this.ExpandAncestors(); } }