Ejemplo n.º 1
0
        private void OnCreateImgArchiveClick(object sender, EventArgs e)
        {
            NewArchiveWindow window = new NewArchiveWindow();

            window.OnPathSet += (s, ee) =>
            {
                ArchiveFile file = ArchiveFile.Create(Path.Combine(currentDir.FullPath, ee.Path));
                OpenArchive(file);
            };

            window.ShowDialog();
        }
Ejemplo n.º 2
0
        private void Pack_Click(object sender, RoutedEventArgs e)
        {
            if (FocusedTabControl != null)
            {
                ListViewView listView = FocusedTabControl.SelectedContent as ListViewView;

                if (listView != null)
                {
                    NewArchiveWindow archiveWindow = new NewArchiveWindow(listView);
                    archiveWindow.ShowDialog();
                    RefreshTabs();
                }
            }
        }