コード例 #1
0
        private void NewButton_Click(object sender, RoutedEventArgs e)
        {
            NewSystemWindow preWindow = new NewSystemWindow();

            preWindow.ShowDialog();

            blockNum = preWindow._blockNum;

            if (blockNum != -1)
            {
                FolderShow mainWindow = new FolderShow(blockNum);
                mainWindow.Show();
                this.Hide();
            }
        }
コード例 #2
0
        private void LoadButton_Click(object sender, RoutedEventArgs e)
        {
            string _systemPath = "";
            FolderBrowserDialog folderBrowser = new FolderBrowserDialog();

            folderBrowser.RootFolder = Environment.SpecialFolder.Desktop;

            if (folderBrowser.ShowDialog() == System.Windows.Forms.DialogResult.OK)
            {
                _systemPath = folderBrowser.SelectedPath;
            }

            FolderShow mainWindow = new FolderShow(_systemPath);

            mainWindow.Show();
            this.Hide();
        }