/// <summary> /// 选择器控制中心 /// </summary> /// <param name="Item"></param> /// <param name="callBackType"></param> protected void ItemsSelectedEventCallBack(NavicateListView listView, SpaceListViewItem Item, CallBackType callBackType) { try { if (!listView.Items.Contains(Item)) { return; } switch (callBackType) { case CallBackType.OpenItem: this.OpenItemWith(Item, callBackType); break; case CallBackType.One_Selected: this.SelectedDealWith(Item); break; case CallBackType.One_UnSelected: this.UnselectedDealWith(Item); break; case CallBackType.KeDown: this.KedownDealWidth(Item); break; case CallBackType.Share: this.ShareDealWidth(Item); break; case CallBackType.Download: this.DownloadWidth(Item); break; case CallBackType.Delete: this.DeleteWidth(Item, callBackType); break; case CallBackType.ReName: this.ReNameWidth(Item); break; default: break; } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
protected void ViewSetting(viewType view_Type, NavicateListView listView) { try { ViewType = view_Type; switch (view_Type) { case viewType.PictureView: listView.Orientation = Orientation.Horizontal; foreach (var item in this.ListViewCollection) { item.SettingStyle(ViewType); } if (this.SpaceListViewItemList.Count <= 0) { } this.DisplayPanelVisibility = vy.Collapsed; this.FirstColumnTitle = string.Empty; break; case viewType.ListView: listView.Orientation = Orientation.Vertical; foreach (var item in this.ListViewCollection) { item.SettingStyle(ViewType); } this.DisplayPanelVisibility = vy.Visible; this.FirstColumnTitle = Defalut_FileTitlFlg; break; default: break; } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
void NavicateListView1_Naivcate_SelectionChanged(NavicateListView listView, NavicateListViewItem listViewItem) { try { PageMode pageMode = null; switch (listViewItem.NavicateType) { case NavicateType.None: return; case NavicateType.MainNavicate_All: pageMode = new PageMode(); pageMode.SpaceInit(); this.borContent.Child = pageMode; this.Selected_PageViewBase = pageMode; return; case NavicateType.MainNavicate_Recycle: this.borContent.Child = null; return; default: Page_FileMode page_FileMode = new Page_FileMode(listViewItem.NavicateType); page_FileMode.SpaceInit(); this.borContent.Child = page_FileMode; this.Selected_PageViewBase = page_FileMode; return; } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }
void NavicateListView1_Naivcate_SelectionChanged(NavicateListView listView, NavicateListViewItem listViewItem) { try { if (listView.SelectedIndex == -1) { return; } switch (listViewItem.NavicateType) { case NavicateType.Resource_Upload: this.Resource_Upload(this.ShowTip, this.LoadFolderCenter); this.SpaceInit(); break; case NavicateType.Resource_Share: this.Resource_Share(); break; case NavicateType.Resource_DownLoad: this.Resource_DownLoad(); break; case NavicateType.Resource_Delete: this.Resource_Delete(this.ShowTip, null); this.SpaceInit(); break; case NavicateType.Resource_Remove: break; case NavicateType.Resource_Rename: if (SpaceListViewItemList.Count > 0) { SpaceListViewItem item = SpaceListViewItemList[SpaceListViewItemList.Count - 1]; item.IsRenameState = true; } break; case NavicateType.List_View: this.Item_ListView.BG_Brush = this.Item_ListView.BG_SelectBrush; this.Item_PcitureView.BG_Brush = this.Item_PcitureView.BG_UnSelectBrush; this.ViewSetting(viewType.ListView, this.listView); break; case NavicateType.Picture_View: this.Item_PcitureView.BG_Brush = this.Item_PcitureView.BG_SelectBrush; this.Item_ListView.BG_Brush = this.Item_ListView.BG_UnSelectBrush; this.ViewSetting(viewType.PictureView, this.listView); break; default: break; } switch (listView.AreaType) { case AreaType.NormalButton: listView.SelectedIndex = -1; break; case AreaType.NavicateType: break; default: break; } } catch (Exception ex) { LogManage.WriteLog(this.GetType(), ex); } finally { } }