public PhotoAlbum() { this.InitializeComponent(); EmptyTextPA = EmptyText; PAPageName = PhotoAlbumViewer; gv = FileList; progressBar = ProgBar; gridContext = GridRightClickContextMenu; Clipboard.ContentChanged += Clipboard_ContentChanged; Frame rootFrame = Window.Current.Content as Frame; InstanceTabsView instanceTabsView = rootFrame.Content as InstanceTabsView; instanceTabsView.TabStrip_SelectionChanged(null, null); tabInstance = App.selectedTabInstance; if (tabInstance.instanceViewModel == null && tabInstance.instanceInteraction == null) { tabInstance.instanceViewModel = new ItemViewModel(); tabInstance.instanceInteraction = new Interaction(); } viewModelInstance = tabInstance.instanceViewModel; FileList.DoubleTapped += tabInstance.instanceInteraction.List_ItemClick; SidebarPinItem.Click += tabInstance.instanceInteraction.PinItem_Click; OpenTerminal.Click += tabInstance.instanceInteraction.OpenDirectoryInTerminal; OpenInNewWindowItem.Click += tabInstance.instanceInteraction.OpenInNewWindowItem_Click; OpenInNewTab.Click += tabInstance.instanceInteraction.OpenDirectoryInNewTab_Click; NewFolder.Click += tabInstance.instanceInteraction.NewFolder_Click; NewBitmapImage.Click += tabInstance.instanceInteraction.NewBitmapImage_Click; NewTextDocument.Click += tabInstance.instanceInteraction.NewTextDocument_Click; UnzipItem.Click += tabInstance.instanceInteraction.ExtractItems_Click; }
public GenericFileBrowser() { this.InitializeComponent(); GFBPageName = GenericItemView; emptyTextGFB = EmptyText; progressBar = progBar; progressBar.Visibility = Visibility.Collapsed; data = AllView; context = RightClickContextMenu; HeaderContextMenu = HeaderRightClickMenu; grid = RootGrid; Clipboard.ContentChanged += Clipboard_ContentChanged; RefreshEmptySpace.Click += NavigationActions.Refresh_Click; tabInstance = App.selectedTabInstance; viewModelInstance = tabInstance.instanceViewModel; PasteEmptySpace.Click += tabInstance.instanceInteraction.PasteItem_ClickAsync; OpenItem.Click += tabInstance.instanceInteraction.OpenItem_Click; ShareItem.Click += tabInstance.instanceInteraction.ShareItem_Click; DeleteItem.Click += tabInstance.instanceInteraction.DeleteItem_Click; RenameItem.Click += tabInstance.instanceInteraction.RenameItem_Click; CutItem.Click += tabInstance.instanceInteraction.CutItem_Click; CopyItem.Click += tabInstance.instanceInteraction.CopyItem_ClickAsync; SidebarPinItem.Click += tabInstance.instanceInteraction.PinItem_Click; AllView.RightTapped += tabInstance.instanceInteraction.AllView_RightTapped; AllView.DoubleTapped += tabInstance.instanceInteraction.List_ItemClick; OpenTerminal.Click += tabInstance.instanceInteraction.OpenDirectoryInTerminal; PropertiesItem.Click += tabInstance.ShowPropertiesButton_Click; }
public PhotoAlbum() { this.InitializeComponent(); EmptyTextPA = EmptyText; PAPageName = PhotoAlbumViewer; gv = FileList; progressBar = ProgBar; gridContext = GridRightClickContextMenu; Clipboard.ContentChanged += Clipboard_ContentChanged; tabInstance = App.selectedTabInstance; viewModelInstance = tabInstance.instanceViewModel; FileList.DoubleTapped += tabInstance.instanceInteraction.List_ItemClick; SidebarPinItem.Click += tabInstance.instanceInteraction.PinItem_Click; OpenTerminal.Click += tabInstance.instanceInteraction.OpenDirectoryInTerminal; }
public GenericFileBrowser() { this.InitializeComponent(); GFBPageName = GenericItemView; emptyTextGFB = EmptyText; progressBar = progBar; progressBar.Visibility = Visibility.Collapsed; data = AllView; context = RightClickContextMenu; HeaderContextMenu = HeaderRightClickMenu; grid = RootGrid; Clipboard.ContentChanged += Clipboard_ContentChanged; RefreshEmptySpace.Click += NavigationActions.Refresh_Click; Frame rootFrame = Window.Current.Content as Frame; InstanceTabsView instanceTabsView = rootFrame.Content as InstanceTabsView; instanceTabsView.TabStrip_SelectionChanged(null, null); tabInstance = App.selectedTabInstance; if (tabInstance.instanceViewModel == null && tabInstance.instanceInteraction == null) { tabInstance.instanceViewModel = new ItemViewModel(); tabInstance.instanceInteraction = new Interaction(); } viewModelInstance = tabInstance.instanceViewModel; PasteEmptySpace.Click += tabInstance.instanceInteraction.PasteItem_ClickAsync; OpenItem.Click += tabInstance.instanceInteraction.OpenItem_Click; ShareItem.Click += tabInstance.instanceInteraction.ShareItem_Click; DeleteItem.Click += tabInstance.instanceInteraction.DeleteItem_Click; RenameItem.Click += tabInstance.instanceInteraction.RenameItem_Click; CutItem.Click += tabInstance.instanceInteraction.CutItem_Click; CopyItem.Click += tabInstance.instanceInteraction.CopyItem_ClickAsync; SidebarPinItem.Click += tabInstance.instanceInteraction.PinItem_Click; OpenInNewTab.Click += tabInstance.instanceInteraction.OpenDirectoryInNewTab_Click; AllView.RightTapped += tabInstance.instanceInteraction.AllView_RightTapped; AllView.DoubleTapped += tabInstance.instanceInteraction.List_ItemClick; OpenTerminal.Click += tabInstance.instanceInteraction.OpenDirectoryInTerminal; NewFolder.Click += tabInstance.instanceInteraction.NewFolder_Click; NewBitmapImage.Click += tabInstance.instanceInteraction.NewBitmapImage_Click; NewTextDocument.Click += tabInstance.instanceInteraction.NewTextDocument_Click; PropertiesItem.Click += tabInstance.ShowPropertiesButton_Click; OpenInNewWindowItem.Click += tabInstance.instanceInteraction.OpenInNewWindowItem_Click; }