private void ShowDetails()
        {
            ItemDetails newDetailsWindow = new ItemDetails();
            Item        selectedItem     = new Item();;

            selectedItem = SearchResultListBox.SelectedItem as Item;
            newDetailsWindow.SetItem(selectedItem.Path);
            newDetailsWindow.Show();
        }
Beispiel #2
0
        private void ShowDetails()
        {
            ItemDetails newDetailsWindow = new ItemDetails();
            Item        selectedItem     = new Item();;

            if (activePanel == -1)
            {
                selectedItem = leftDirectory.SelectedItem as Item;
            }
            else if (activePanel == 1)
            {
                selectedItem = rightDirectory.SelectedItem as Item;
            }
            if (isFTP)
            {
                newDetailsWindow.SetItem(client.Host + "/" + selectedItem.Path);
            }
            else
            {
                newDetailsWindow.SetItem(selectedItem.Path);
            }
            newDetailsWindow.Show();
        }