/// <summary> /// GetFolders() Completed result /// </summary> /// <param name="action"></param> private void OnGetNewFolderCompleted(WorkspaceItemResult <WorkspaceItem> action) { if (action.Item == null) { return; } var workspace = action.Item; var workspacelist = WorkspaceListItem.ToList(); workspacelist.Add(workspace); WorkspaceListItem = workspacelist; NewFolderString.Add(workspace.ItemTitle); EventBroker.RaiseGetFolderString(new LoadDetailViewEventArgs { NewFolderString = NewFolderString }); EventBroker.RaiseLoadDetailView(new LoadDetailViewEventArgs { ListItem = WorkspaceListItem }); }
/// <summary> /// /// </summary> /// <param name="item"></param> private void agtOnAddFolderCompleted(WorkspaceItem item)//private void agtAddFolderCompleted(object sender, WorkspaceItemsEventArgs e) { var workspace = new WorkspaceItem(); workspace = item; var workspacelist = new List <WorkspaceItem>(); workspacelist = WorkspaceListItem.ToList(); workspacelist.Add(workspace); WorkspaceListItem = workspacelist; NewFolderString.Add(workspace.ItemTitle); EventBroker.RaiseGetFolderString(new LoadDetailViewEventArgs() { NewFolderString = NewFolderString }); EventBroker.RaiseLoadDetailView(new LoadDetailViewEventArgs() { ListItem = WorkspaceListItem }); }
/// <summary> /// /// </summary> /// <param name="item"></param> private void agtOnGetNewFolderCompleted(WorkspaceItem item)//private void agtOnGetNewFolderCompleted(object sender, WorkspaceItemsEventArgs e) { var workspace = new WorkspaceItem(); workspace = item; var workspacelist = new List <WorkspaceItem>(); workspacelist = ListItem.ToList(); workspacelist.Add(workspace); workspace.ParentId = ListItem.ToList()[0].ParentId; workspace.ParentTitle = ListItem.ToList()[0].ParentTitle; workspace.IsFolder = true; workspace.DateModified = DateTime.Now.Date; //Due to error in service // CreateAgent().RegisterWorkspaceAsync(workspace); ListItem = workspacelist; NewFolderString.Add(workspace.ItemTitle); EventBroker.RaiseGetFolderString(new LoadDetailViewEventArgs() { NewFolderString = NewFolderString }); }